Question: 2. (10 points) Consider the following ARM program. Assume the instructions are placed starting at memory address Ox8400 and that L1 is at the 156th

 2. (10 points) Consider the following ARM program. Assume the instructions

2. (10 points) Consider the following ARM program. Assume the instructions are placed starting at memory address Ox8400 and that L1 is at the 156th word of the program. ; ARM assembly code MAIN PUSH (LR) LDR R2,-11 LDR RO, (R2) LOR R1, (R2, 14) DL DIFI POP (LR) MOV PC, LR ; This instruction means STR R14,[R13,#4)! ;-L1 means PC relative. Use E59F2C18 to code this line in binary ; LDR R14,[R13],#4 DiFF SUB RO, RO, RI MOV PC, LR L1 a. Show the instruction address next to each assembly instruction. b. List the address of each of the labels. e. Convert all instructions into machine code 2. (10 points) Consider the following ARM program. Assume the instructions are placed starting at memory address Ox8400 and that L1 is at the 156th word of the program. ; ARM assembly code MAIN PUSH (LR) LDR R2,-11 LDR RO, (R2) LOR R1, (R2, 14) DL DIFI POP (LR) MOV PC, LR ; This instruction means STR R14,[R13,#4)! ;-L1 means PC relative. Use E59F2C18 to code this line in binary ; LDR R14,[R13],#4 DiFF SUB RO, RO, RI MOV PC, LR L1 a. Show the instruction address next to each assembly instruction. b. List the address of each of the labels. e. Convert all instructions into machine code

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!