Question: 4. For the program below, how many times is FunctionA called? Start loop MOV R0, #15 SUB RO, 1 BL FunctionA CMP RO, 1 BNE

 4. For the program below, how many times is FunctionA called?

4. For the program below, how many times is FunctionA called? Start loop MOV R0, #15 SUB RO, 1 BL FunctionA CMP RO, 1 BNE loop 5. At the end of this sequence, what are the contents of RO, Rl and R2? Start MOV R0 ,#0x33 MOV R1 , #0x77 MOV R2, #0x22 AND RO, 0xOF EOR R1, 0x87 ORR R2, 0x11 6. Write a function "SortDescending" that will take two values in R4 and R5 as inputs, and store the larger value in R4 and the smaller one in R5 when called. If you need to use other CPU registers, restore their content such that the calling function does not notice any changes. 4. For the program below, how many times is FunctionA called? Start loop MOV R0, #15 SUB RO, 1 BL FunctionA CMP RO, 1 BNE loop 5. At the end of this sequence, what are the contents of RO, Rl and R2? Start MOV R0 ,#0x33 MOV R1 , #0x77 MOV R2, #0x22 AND RO, 0xOF EOR R1, 0x87 ORR R2, 0x11 6. Write a function "SortDescending" that will take two values in R4 and R5 as inputs, and store the larger value in R4 and the smaller one in R5 when called. If you need to use other CPU registers, restore their content such that the calling function does not notice any changes

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!