Question: Please answer in arm assembly only Exercise 6.32 Consider the following ARM assembly language snippet. The numbers to the left of each instruction i te
Exercise 6.32 Consider the following ARM assembly language snippet. The numbers to the left of each instruction i te the instruction address. 0x000A0028 FUNC1 0x000A0020 0x000A0030 0x000A0034 MOV R4. R1 ADD R5, R3. R5. LSR #2 SUB R4. RO. R3. ROR R4 BL FUNC2 0x000A0038 FUNC2 0x000A0030 LDR R2" [R0.94] STR R2. [R1. -R2] Exercises 0x000A0040 0x000A0044 0x000A0048 0x000A004C ELSE x000A0050 CMP R3, #0 BNE ELSE MOV PC, LR SUB R3, R3. 8 FUNC2 (a) Translate the instruction sequence into machine code. Write the machine code instructions in hexadecimal. (b) List the addressing mode used at each line of code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
