2. (10 points) Consider the following ARM program. Assume the instructions are p
ID: 3909336 • Letter: 2
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 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 codeExplanation / Answer
Just add 16 to the beginning address for each instruction.
c. Use assembly guide to the encoding
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.