Question: Question 1. Assume R1 has the value 0 initially. R4 has the value 2. Describe how register Rl changes after the execution of each of
Question 1. Assume R1 has the value 0 initially. R4 has the value 2. Describe how register Rl changes after the execution of each of the following programs and what is its value in it when the program terminates. Program 0001001001101010 0001100100111111 0000001111111101 1111000000100101 Question 2. Write an LC-3 program that that compares two numbers stored in memory at locations x301E and x301F. If the numbers are equal, then R1 is set equal to 1, else RI is set equal to 0. Question 3. What does the following code do? AND R2, R2, x0 ADD R2, R2, X1 AND RO, R1, R2 BRZ ISZERO ISZERO
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
