Question: Write ARM code that decodes the immediate value in an instruction - takes the last 12 bits and turns it into the value it
Write ARM code that decodes the immediate value in an instruction - takes the last 12 bits and turns it into the value it represents. a. Start by loading r1 with the value E3A01CFA (machine code for a move immediate into register) b. Isolate bits 0-7 (the rightmost 8 bits) - the 8-bit binary number - into r2 C. Isolate bits 8-11 (the four bits left of 0-7) - 4 bits indicating the rotation - into r3 d. Multiply r3 by 2 to get the actual rotation amount e. Rotate r2 to the right by that many bits. Place your answer in r4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
