Beruflich Dokumente
Kultur Dokumente
Basic-
Architecture
15 14 12 11
0
I Opcode Address
Instruction format
• When I=0 then it will be direct memory reference
instruction.
• When I=1 , it will be indirect memory reference
instruction.
memory reference
instruction
0 100 Address of
instruction
Register reference
instruction
0 111 Address of
instruction
E A Q SC
E=1 1 1001
E=1 1 0111
E=1 1 1001
Neglect E
A: 1001
Q: 1110
PART-B
Ans:-
BCD ADDITION
Carry bit 1 11
1
1254 0001 0 0101 0100
010
+456 0000 0 0101 0110
100
1710 0001 1011( 1010(
0111 >9) >9)
0110 0110
000 0000
1
Sum 1 1 0
7
BCD SUBTRACTION
1254 0001 001 0101 0100
0
-456 0000 010 0101 0110
0
798 110 1111 1110(>
1 9)
011 0110 0110
0
0000 011 1001 1000
1
Sum 0 7 9 8
Ans:
ANSWER:
1.
If the dividend is the negative integer of largest possible
magnitude for the type and the divisor is -1, then
overflow occurs and the result is equal to the dividend.
Despite the overflow, no exception occurs.
2
We handle this by inspecting the instruction which
generated the signal and advancing ip to point to the
instruction.