Question: 7. (5 pts) Consider the following program: ADD X0, X31, X31 ADDI X7, X31, #5 Loop: ADD X1, X3, X31 LDUR X0, [X1, #20]
7. (5 pts) Consider the following program: ADD X0, X31, X31 ADDI X7, X31, #5 Loop: ADD X1, X3, X31 LDUR X0, [X1, #20] SUB X2, X1, XO STUR X2, [X1, #8] STUR X2, [X1, # 16] SUBI X7, X7, #1 CBNZ X7, Loop How many instructions will be executed? (Hint: you can find the number of iterations from the 3 instructions in bold)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
