Question: Problem 3 : Use LC - 3 Instruction to write your solution code: Assuming the BUSYNESS bit vector is stored in R 2 , we

Problem 3: Use LC-3 Instruction to write your solution code:
Assuming the BUSYNESS bit vector is stored in R2, we can use the LC-3 instruction
0101011010100001(AND R3, R2, #1)
to determine whether machine 0 is busy or not. If the result of this instruction is 0, then machine 0 is busy.
a. Write an LC-3 instruction that determines whether machine 2 is busy.
b. Write an LC-3 instruction that determines whether both machines 2 and 3 are busy.
c. Write an LC-3 instruction that indicates none of the machines are busy.
d. Write an LC-3 instruction that determines whether machine 6 is busy?
Please make sure to attach algorithms assembly language script, screenshots of the memory addresses where your algorithm code is stored, also attach screenshots of simulation results and screenshots of the stack. Please add comments where it is appropriate.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!