Sei sulla pagina 1di 2

Answers 1:

a)

i)   +/- 64 32 16 8 4 2 1
56 0 0 1 1 1 0 0 0
1's complement   1 1 0 0 0 1 1 1
2's Complement -56 1 1 0 0 1 0 0 0
+ 38 0 0 1 0 0 1 1 0
No Overflow -18 1 1 1 0 1 1 1 0

ii)   +/- 64 32 16 8 4 2 1
100 0 1 1 0 0 1 0 0
1's Complement   1 0 0 1 1 0 1 1
2's Complement -100 1 0 0 1 1 1 0 0
+ -28 0 0 1 1 1 1 0 0
No Overflow -128 1 0 0 0 0 0 0 0

iii)   +/- 64 32 16 8 4 2 1
69 0 1 0 0 0 1 0 1
+ 75 0 1 0 0 1 0 1 1
-112 1 0 0 1 0 0 0 0

There is an Overflow. Addition of 69 and 75 is -112 instead of


144

b)

Converting ABCDEF decimals to binary


A B C D E F
Decimal
values 10 11 12 13 14 15
Binary Values 1 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 1 1 1 0 1 1 1 1

Converting Binary of ABCDEF to Octal (in groups of 3 from right)

Groups of 3 1 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 1 1 1 0 1 1 1 1
5 2 7 4 6 7 5 7

Octal value of ABCDEF = (52746757)8

Binary presentation of 55.5 is : 110111.1


C)

String ASCII Code


" 34
H 72
a 97
v 118
e 101
32
a 97
32
n 110
i 105
c 99
e 101
32
d 100
a 97
y 121
" 32

d)

e)

f) Normalise 110111.1 = (1.101111 x 25)

Mantissa - 23 Bit 10111100000000000000000

Exponent - 8 Bit

5+127(bias of 8 bit) = 132

132 = 10000100

Sign - 1 Bit (0 as the no. is positive)

(Sign Bit+Exponent+Mantissa) = 32 Bit

0 10000100 10111100000000000000000

Potrebbero piacerti anche