Documente Academic
Documente Profesional
Documente Cultură
Statement
Following Numbers are in normalized 32-bit IEEE floating Point format.
A = 010010011 10100100000000000000000 = 1.101001 x 2(1111111 – 10010011) = 1.101001 x 210100
1. Calculate X = A-B, Y = D+C and Z = X2/Y, Show all steps (use back of this paper or your own
paper), use any algorithms you like and show the results in NORMALIZED 32-bit IEEE floating
Point format
X = 1.101001 x 210100 + 1.100111 x 210100 = 1.101 x 210100
Y = - 1.011000 x 2-10100 + 1.110110 x 2-10100= - 1.111 x 2-10100
Z = - 1.101 x 210100 x 1.101x 210100 / 1.111 x 2-10100 = - (1101 x 1101) x 211000+11000 / 11 x 2-10001 = -111000 x
21000001
2. Show X, Y and Z in 2’Compliment representation
X = 1.101 x 210100 = 110100000000000000000 001011111111111111111+1 =
001100000000000000000 = 11 x 21001
Y = 1 x 2-10100 not possible
Z = 111000 x 21000001 = 111000 (65 zeroes) 00111 (65 1’s) + 1 = 01 (68 zeroes) = 1 x 21000100
3. For the following table please fill in the values after each instruction executes and also provide the
effective address. This Microprocessor has 32 GPRs. Address of Ri is equal to the binary number for
I (e.g. R0 address = 00000). Initially AC conatins 0000, R1 contains A100, R2 contains 0006 and
memory address A100 contains FFF0, FFF0 contains FFFF, A106 contains 6666
No. Instruction Addressing Mode Effective Address Values
1 MOVE R1,A100 Indirect R1 =
2 MOVE R1,A100 Direct R1 =
3 MOVE R2,A100 Displacement AC =
4 MOVE R1,R2 Register R1 =
5 MOVE R2,R1 Register Indirect R2 =