Question: Let [ a , b ] denote a pair of bytes a and b . The 1 6 - bit integer corresponding to [ a

Let [a,b] denote a pair of bytes a and b. The 16-bit integer corresponding to [a,b] using big-endian conversion is a\times 256+ b; using little-endian conversion it is a +256\times b.
(a). Find the ones-complement sum of [200,150] and [90,230] by using big-endian conversion to the respective 16-bit integers 51,350 and 23,270. Convert back to two bytes, again using big-endian conversion, at the end.
(b). Do the same using little-endian conversion, in which case the 16-bit integers are 38,600 and 58,970.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!