littlePen
April 21st, 2006, 12:07 AM
There is no instruction in LC-3 to perform the OR operation. But it is possible
to implement the OR operation using 4 instruction sequence. Fill in two missing
instructions so that the 4 instructions will OR the contents of R1 and R2 and put the result into R3
(1): 1001 100 001 111111
(2):
(3): 0101 110 100 000 101
(4):
Hint: Use De Morgan theorem: (A + B)’ = A’B’
to implement the OR operation using 4 instruction sequence. Fill in two missing
instructions so that the 4 instructions will OR the contents of R1 and R2 and put the result into R3
(1): 1001 100 001 111111
(2):
(3): 0101 110 100 000 101
(4):
Hint: Use De Morgan theorem: (A + B)’ = A’B’