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

Please note this question has been answered before without any explanation. Plea

ID: 3857992 • Letter: P

Question

Please note this question has been answered before without any explanation. Please show your work. Thanks

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

Von Neumann architecture :-

A) As a two's complement integer, what decimal value :-  11110100 is the value whose 2' complement value is 00001011(0XC0000) and its decimal value is 244...

B) As an unsigned integer,what decimal value :- 12 is the decimal value for 0xC0000.

C) Interpreted as an instruction :- 0X0C instruction 0X08 ( Display On/Off ) plus 0X04(to turn LCD ON ).

D) As a single-precision floating point number :- (-1)^s*(1+fraction)*s^ exponent-base by using this formula where s is sign bit and value is 2^-103.