Professional Documents
Culture Documents
REVISION QUESTION
A B C ~A (A + B) (~A + C) (A + B) . (~A + C)
0 0 0 1 0 1 0
0 0 1 1 0 1 0
0 1 0 1 1 1 1
0 1 1 1 1 1 1
1 0 0 0 1 0 0
1 0 1 0 1 1 1
1 1 0 0 0 0 0
1 1 1 0 0 1 0
(6 marks)
(4 marks)
B Y
C
Answer:
A B C B AB AB C
0 0 0 1 0 0
0 0 1 1 0 1
0 1 0 0 0 0
0 1 1 0 0 1
1 0 0 1 1 1
1 0 1 1 1 0
1 1 0 0 0 0
1 1 1 0 0 1
(6 marks)
Y= (AB + C) D
Answer:
(4 marks)
a) Convert the following numbers to the respective numbering systems. Show your work.
i) ABCDE16= 101010111100110111102=70371010
i) 1110-2510 (8 bits)
Answer:
00011001
+ 1 2nd complement
11100111
+ 00001011
11110010
Answer:
01111011 10111100
+ 1 2nd complement
10000100 01000100
+ 01011001 00011100
11011101 01100000
c) Convert the following number to IEEE single-precision format. Give the results in
hexadecimal. The number is -27/256.
Answer:
Biased = -4 +127=123
Exponent = 011110112 (1 m)
(1 m)
Hexadecimal BDD8000016 (1 m)
Answer:
Convert to binary=0010 1100 0010 1110 0000 0000 0000 0000 (0.5 m)
Mantissa =1.010111(0.5 m)
AX = 25BDh
BX = 5267h
CX = A564h
DX = 2478h
SP = FFE0h
a. Build a stack after the following instructions are executed. State the contents of registers
AX, BX, CX, DX and SP after the instructions are executed.
PUSH AX
PUSH BX
POP BX
PUSH AX
POP BX
Answer
FFDB
FFDC
FFDD 67 BD
FFDE 52 25
FFDF BD
FFE0 25
AX BX CX DX SP
25BD 5267 A564 2478
5267
25BD FFDE @
FFDF