arks): Suppose that we need to write a RISC-style p 6] and ARR2- 13, 6, 4, 2] in
ID: 3588136 • Letter: A
Question
Explanation / Answer
For the given instructions to add Two Arrays in reverse in 3rd array, following are the missing instructions:
2. Sub SP, SP, #4 ; to create the stack
6. Add R3, R3 , #12 ;Move the pointer to last element of 2nd array
9. Add R5, R5, R6 ; addition of two arrays
12. Sub R3, R3, #4 ;decrement of pointer of 2nd array
14. Sub.s R1, R1, #1 ; decrement of counter
15. Bne Loop ; to End the loop
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.