Question: Identify all control transfers (branches) in this code, places where we will (or might) go to a line of code other than the next one,

-
Identify all control transfers (branches) in this code, places where we will (or might) go to a line of code other than the next one, and fill in a table like below. (Depending on the details of how you choose to do this, you should identify 6 to 8 branches.)
From line To line Under what condition (if any) -
6 Write and test ARM code in VisUAL equivalent to the code shown above. Some test cases:
- R1 = 0, R2 = 10: at the end, R0 should be 45
- R1 = 10, R2 = 0: at the end, R0 should be 45
- R1 = -8, R2 = 17: at the end, R0 should be 100
- R1 = 20, R2 = -100: at the end, R0 should be -4860
= 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 R1 = something; R2 something; if (R1 R2) { R3 = R2; while (R3 R2) { R3 = R2; while (R3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
