the following code fragment is expressed in arm assembly code fill in the blanks so 5188112

The following code fragment is expressed in arm assembly code. Fill in the blanks, so that it is equivalent to the following C code.

int counter;

int x = 5;

int y = 6;

for (counter =10; counter >0;counter–)

IF(X==Y)

Y = Y + 1 ;

ELSE

Y = Y + 2}

Fill in the blanks in the following code:

MOV__________ ;loop counter into r0-ten times round the loop

MOV__________ ;Value of y loaded into r1

MOV__________ ;Value of x loaded into r2

Next CMP ____________ ;assume r1 contains y and r2 contains x: compare them

BNE ____________ ;if not equel then branch to the else part

ADD ____________ ;if equal fall through to here and add one to y

B _____________ ;now skip past the else part

plus2 ______________ ;ELSE part add 2 to y

counter ______________ ;decrement loop counter

BNE _____________ ;continue until all done

"Get 15% discount on your first 3 orders with us"
Use the following coupon
FIRST15

Order Now