Description

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

Note – The answer should be in hex code

Your program should begin at location x3000. I need the simulator AND a text file of the hex code for the answer .The program will be tested several times. I want to see the program execute the “if” part,and then I will test the “else” part. The program should also contain only 1 HALT instruction which should also correspond to the breakpoint in the program. Multiple HALTs or breakpoints have not correctly implemented above on the question