Question: The table below contains ARM assembly code. In the following problems, you will translate ARM assembly code to MIPS. For the table above, translate this
The table below contains ARM assembly code. In the following problems, you will translate ARM assembly code to MIPS.
For the table above, translate this ARM assembly code to MIPS assembly code. Assume that ARM registers r0, r1, and r2 hold the same values as MIPS registers $s0, $s1, and $s2, respectively. Use MIPS temporary registers ($t0, etc.) where necessary.
a. b. ADD ADC r0, r1, r2 r0, rl, r2 CMP r0, #4 ADDNE rl, rl, r0 ;ro :ro = r1 r2. r1 + r2 + Carrybit ;if (r0 != 4) { ;rl +=r0 )
Step by Step Solution
3.52 Rating (155 Votes )
There are 3 Steps involved in it
To translate the given ARM assembly code to MIPS assembly code well perform the following translatio... View full answer
Get step-by-step solutions from verified subject matter experts
