Write an LC – 3 program to accomplish the following: If(R0 + R1 > R2)

Programming

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

R4 = 3

Your program should begin at location x3000.

Write an LC – 3 program to accomplish the following: If(R0 + R1 > R2)
Scroll to top