Question: Consider this LEGv 8 loop: Loop: SUBIS X 1 , X 1 , # 1 B . LE DONE SUBI X 1 , X 1

Consider this LEGv8 loop:
Loop: SUBIS X1, X1, #1
B.LE DONE
SUBI X1, X1, #1
ADDI X0, X0, #4
B LOOP
DONE:
If register X 1 is initialized to the value 0 what is the final value in register XO ,
assuming XO is initially 0?
80
40
20
10
Consider this LEGv 8 loop: Loop: SUBIS X 1 , X 1

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 Programming Questions!