Question: Consider the following IT (IF-THEN) block-based assembly program. CMP RO, R1 ITTEE GE SUBSGE R3, RO, R2 MOVGE RO, #25 SUBSLT R4, R2, RO

Consider the following IT (IF-THEN) block-based assembly program. CMP RO, R1 ITTEE

Consider the following IT (IF-THEN) block-based assembly program. CMP RO, R1 ITTEE GE SUBSGE R3, RO, R2 MOVGE RO, #25 SUBSLT R4, R2, RO MOVLT RO, #15 1. Write the equivalent C program. The C program variable names must be the same as the register labels. (3pts) 2. For the initial values of R0 = 20, R1 = 10, and R2 = 5, what will be the final value of RO after the execution of the above program? (0.5pt) 3. Repeat part 2 for R0 = 10, R1 = 20, and R2 = 5. (0.5pt)

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!