Question: The ARM processor has an interesting way of supporting immediate constants. This exercise investigates those differences. The following table contains ARM instructions. If the register
The ARM processor has an interesting way of supporting immediate constants. This exercise investigates those differences. The following table contains ARM instructions.
If the register R1 had the constant value of 8, rewrite your MIPS code to minimize the number of MIPS assembly instructions needed.
a. b. ADD, r3, r2, rl, LSR #4 ADD, r3, r2. r2 :r3 = r2 + (rl >> 4) ; r3 r2 r1
Step by Step Solution
3.53 Rating (153 Votes )
There are 3 Steps involved in it
Based on the image provided there are two ARM instructions given a ADD r3 r2 r1 LSR 4 r3 r2 r1 4 b ADD r3 r2 r2 r3 r2 r1 Lets look at these instructio... View full answer
Get step-by-step solutions from verified subject matter experts
