Question: 1. For the two 16 bit values shown below, show what the value truncated to 8 bits would be. Also, for each truncated bit pattern,

1. For the two 16 bit values shown below, show what the value truncated to 8 bits would be. Also, for each truncated bit pattern, say whether the value of the original 16 bit representation is preserved or not, and explain how you determined your answer.

a. 0000 0000 1100 0011 (unsigned, that is, interpreted as B2U) i. 8 bit truncated value: ii. Does the value change when truncated to 8 bits? iii. How did you decide?

b. 1111 1111 0011 1010 (signed, that is, interpreted as B2T) i. 8 bit truncated value: ii. Does the value change when truncated to 8 bits? iii. How did you decide?

Please provide your work.

2. Assume that each of the following five hexadecimal values is stored as a 32-bit integer value, and these 5 values are being stored sequentially in memory starting at address 0x2000 (Hex 2000). Show the hex representation of the bytes in memory for both the big endian and little endian byte addressing schemes. Be sure to extend the Address column specifying the correct address values for each byte of memory needed to store these 5 values. HINT: Assume that integers are stored in 32 bits; 32 bits is 4 bytes, so 5 values at 4 bytes each would be a total of 20 bytes of memory.

a. 0xCE3C12 b. 0xBDEA6755 c. 0x129B5 d. 0x9 e. 0x1214A9E

1. For the two 16 bit values shown below, show what the

Please provide your work

Address Big Endian Little Endian 0x2000 0x2001 0x2002 0x2003

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 Databases Questions!