Académique Documents
Professionnel Documents
Culture Documents
Submitted to:
Ms Narinder kaur
Submitted
by:
Tarun
Baveja
MCA(hon
s)
Roll No. A3803
B28
Reg. No.
10807675
PART A
Q1. How is I bit useful in determining
the type of instruction.
Sol
I bit plays important role to determine type of
instruction.
We have three types of instruction.
1. Memory reference instruction.
2. Register reference instruction.
3. Input-Output instruction
15 14 12 11
0
I Oppcode Address
Instruction format
• When I=0 then it will be direct memory reference
instruction.
• When I=1 , it will be indirect memory reference
instruction.
Qn
Qn+1
Complement and parallel adder
AC register
Hardware for QR
Booth algorithm.
register
PART-B
Q4 Show the contents of E, A, Q and
SC during the process of division of
two binary numbers, 10100011 by
1011.
Sol
The below explained procedure shows the
contents of E, A, Q and SC during the process
of division.
E A Q SC
Dividend in AQ - - - - 0 1010 0011 100
shl EAQ - - - - - 1 0100 0110
add B + 1,suppress carry 0101
E = 1, set Qto 1 - - - - 1 1001 0111 011
N
shl EAQ - - - - - - 1 0010 1110
add B + 1,suppress carry 0101
E = 1, set Q to 1 - - - - 1 0111 1111 010
shl EAQ - - - - - - 0 1111 1110
add B + 1, carry to E - - 0101
BCD ADDITION
Carry bit 1 11
1
1254 0001 00 0101 0100
10
+456 0000 01 0101 0110
00
1710 0001 0 1011( 1010(>
111 >9) 9)
0110 0110
0001 0000
Sum 1 1 0
7
BCD SUBTRACTION
1254 0001 0010 0101 0100
-456 0000 0100 0101 0110
798 1101 1111 1110(>9
)
0110 0110 0110
0000 0111 1001 1000
Sum 0 7 9 8