Question: Problem 2 [LC-3 Programl (10 points) (a) Suppose the following LC-3 program is loaded into memory starting at location x30FF x30FF x3100 x3101 x3102 1110

Problem 2 [LC-3 Programl (10 points) (a) Suppose the following LC-3 program is loaded into memory starting at location x30FF x30FF x3100 x3101 x3102 1110 0010 0000 0001 0110 0100 0100 0010 0001 0100 0100 0001 0001 0100 1000 0010 If the program is completely executed, what is the value in R2? [3 points] (b) The following memory locations contain values as shown below: x3050: x70A2: x70A3: x70A4: x70A4 x70A3 x123B Now, the following three LC-3 instructions are being executed, causing one value to be loaded into register R6. Initially, program counter (PC) contains x3010 x3010 x3011: x3012 0110 1000 1100 0000 0110 1101 0000 0000 (i) What is the loaded value? (ii) The execution of the above three LC-3 instructions can be replaced by one instruction. [3 points] What is it? 4 points]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
