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: 3857876 • 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

Before we start let us first translate the hexadecimal to binary,
   so 0x0C000000 =
0000 1100 0000 0000 0000 0000 0000 0000

a) So in two's complement:
   Since the first digit is 0, we know that it is a +ve number whose value =
    226 * 227 = 67108864 + 134217728
   = 201326592

b) Same goes for unsigned number.

c) The 32 bit MIPS instruction 0x0C000000 appears to be the jal jump and link instruction. because in binary
000011 00000000000000000000000000
opcode target
When executed, it will cause the program to jump to the address 00000000000000000000000000

d) in single precision floating point number:

0-> Sign bit
00011000 -> Normalized Exponet
00000000000000000000000 -> Mantisa

So actual exponet = 24 - 127 = -103
So the value = +2-103

So is it clear now?