Question: Arm assembly Please answer in arm assembly only Exercise 6.32 Consider the following ARM assembly language snippet. The numbers to the left of each instruction
Please answer in arm assembly only Exercise 6.32 Consider the following ARM assembly language snippet. The numbers to the left of each instruction indicate the instruction address x000A0028 FUNC 0x000A0020 0x000A0030 0x000A0034 MOV R4. R ADD RS, R3, R5. LSR #2 UB R4. RO.R3.ROR R4 BL FUNCZ x000A0038 FUNC2 x0004003 LDR R2. [R0.14] TR R2.R -R2] Exercises 0x000A0040 0x000A0044 0x000A0048 x000A004C ELSE x000A0050 CMP R3, #0 BNE ELSE MOV PC.L UB R3, R3. 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
