Question: 5) Consider the following LEGv8 loop: LOOP: SUBIS X1, X1, #0 B.LE DONE SUBI X1, X1, #1 ADDI X0, X0, #2 B LOOP DONE: Assume
5) Consider the following LEGv8 loop:
LOOP: SUBIS X1, X1, #0
B.LE DONE
SUBI X1, X1, #1
ADDI X0, X0, #2
B LOOP
DONE:
Assume that the register X1 is initialized to the value 10. what is the final value in register X0 assuming X0 is initially Zero?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
