Question: Use the LC 3 Tutor simulator to run the machine code program below: 0 0 0 1 1 0 1 1 0 1 0 0

Use the LC3 Tutor simulator to run the machine code program below:
0001101101000001
0001100100111111
0000101111111101
1111000000100101
First, set up the LC3 Tutor simulator by doing the following:
1. Copy and paste the code above into the LC3 Tutor RAW editor.
2. Use the editor to add as the first line the binary value for \(0\times 3000\), which specifies the machine code's starting address.
3. Press "Process". If you get the red "Oh no!" message, make the suggested correction(s) and try "Process" again.
4. If you get the green "Awesome!" message. Press "Load into simulator".
5. Set a breakpoint at address 0x3002.
6. Change the values in the registers to the contents shown below:
Next, follow the steps below to answer the questions below.
(Enter your 16-bit answers in hex like the following example: 0x0A3F)
Click Run.
A.) When execution pauses, what is the value in register R5?
B.) What is the value in the PC ?
Click Run, briefly wait, click Run again, briefly wait, click Run one more time.
C.) When execution pauses, what is the value in register R5?
D.) What is the value in the PC?
E.) What is the value in register R4?
Clear the breakpoint at address 0x3002 and click Run.
F.) When execution pauses, what is the value in register R5?
G.) What is the value in register R4?
Use the LC 3 Tutor simulator to run the machine

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!