Question: Write an LC-3 program to accomplish the following: If (R0 + R1 > R2) Then R0=R0+2 R1=R1+3 Else R0=R0-1 R1=R1-2 Endif Your program should begin

Write an LC-3 program to accomplish the following:

If (R0 + R1 > R2)

Then

R0=R0+2

R1=R1+3

Else

R0=R0-1

R1=R1-2

Endif

Your program should begin at location x3000. Please include the hex for each line of code.

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 Databases Questions!