Question: Convert the following pseudo code into ARM assembly: x = 25 y = 12 z = 7 if x == 12: z = x +

Convert the following pseudo code into ARM assembly:

x = 25

y = 12

z = 7

if x == 12:

z = x + y

if z > y:

a = 10

This is what I have so far:

AREA Homework2, CODE, READONLY

EXPORT__main

__main B start

start

MOV r0, #25 MOV r1, #12 MOV r2, #7 CMP r0, #12 ADDEQ r2, r0, r1 CMP r2, r1 MOVGT r3, #10

stop B stop

END

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!