Question: In the following problems, you will compare code written using the ARM and MIPS instruction sets. The following table shows code written in the ARM
In the following problems, you will compare code written using the ARM and MIPS instruction sets. The following table shows code written in the ARM instruction set.
For the ARM assembly code above, write an equivalent MIPS assembly code routine.
29 b. MOV r0. #10 r0, rl r0, 1 LOOP LOOP: ADD SUBS BNE ADD ADC r0, rl r2, r3 init loop counter to 10 ; add r1 to r0 ;decrement counter if Z-0 repeat loop :ro r0 + r1 :r2 = r2 r3 carry
Step by Step Solution
3.42 Rating (155 Votes )
There are 3 Steps involved in it
Heres the equivalent MIPS assembly code ... View full answer
Get step-by-step solutions from verified subject matter experts
