Question: For the below ARM assembly code, trace the values as it executes that will be placed into the registers PC, R0, R1, and R2. MOV

For the below ARM assembly code, trace the values as it executes that will be placed into the registers PC, R0, R1, and R2.

MOV R0, #0 ; at addr 0 MOV R1, #5 ADD R0, R0, R1 SUB R1, R1, #1

CMP R0, #10 ; at addr 16 MOVGT PC, #28 MOV PC, #8 MOV R2, #1

halt B halt ; at addr 32

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