In a Von Neumann architecture, groups of bits have no intrinsic meanings by them
ID: 3688934 • Letter: I
Question
In a Von Neumann architecture, groups of bits have no intrinsic meanings by themselves. What a bit pattern represents depends entirely on how it is used. As an example, let us look at 0x0C000000.
a) As a two’s complement integer, what decimal value does this represent?
b) As an unsigned integer, what decimal value does this represent?
c) Interpreted as an instruction, exactly what instruction is this?
d) As a single-precision floating point number, what decimal value does this represent (express as a decimal number … with one digit to the left of the decimal place … times 2 to some decimal power).
Explanation / Answer
a) 11110100 is the value whose 2' complement value is 00001011(0XC0000)
and its decimal value is 244...
b)12 is the decimal value for 0XC0000
c)0X0C instruction 0X08 (Display On/Off) plus 0X04(to turn LCD ON)
d) (-1)^s *(1+fraction)*s ^ exponent-base
by using this formula where s is sign bit
and value is 2^-103.