Question: Problem 6 (3 points) The LC3 instruction set does not have an opcode for the logical function NOR. However, this can be implemented with the

Problem 6 (3 points) The LC3 instruction set does not have an opcode for the logical function NOR. However, this can be implemented with the existing instructions. Given two numbers already stored in registers R1 and R2, list down the instructions required to perform NOR on the contents of R1 and R2. Store the result in any of the other registers. Instruction Comment Assume the current value in the PC to be x4012. a. Write the BR instruction to unconditionally branch to the instruction located at an offset of xOD9 b. What will the PC point to after the BR statement in (a) is executed? Show the hexadecimal representation. c. If unconditional branching is possible using BR, why do we need the JMP instruction
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
