Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

consider a 32- bit hexidecimal number stored in memory as follows: address;100,1

ID: 3534454 • Letter: C

Question

consider a 32- bit hexidecimal number stored in memory as follows:

address;100,101,102,103

Value ; 2A, C2 , 08, 1B


A. if the machine is big endian and uses 2's complements representation for integers, write the 32 bit integer number stored at address 100.( you may write the number in hexidecimal)


B. if the machine is big endian and the number is an IEEE single precision floating point value, is the number positive or negative?


C. if the machine is big endian and the number is an IEEE single precision floating point value, determine the decimal equivalent of the number stored at address 100.(you may leave your answer in scientific notation form, as a number times a power of two)


Explanation / Answer

Number stored at 100 = 2A Converting into binary, we get 0010 1010 A - We know that 2's complement for a number is sum of one and its ones complement hence, 0010 1010 0000 0001 ---------------------------------------- 0010 1011 B - For floating point, value would be positive as sign bit (1st bit in 2's complement is 0) is positive C - Decimal equivalent is given as 0010 1010