Question

Given the following C Code segment convert it to ARM assembly. Assume the following register assignment have been made before

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Solution:-

mov r1,#0

mov r2,#0

mov r3,#0

mov r10,#0

second:  

mov r11,#0

add r3,r1,r2

first:

mul r4,r11,r10

cmp r10,#100

bgt r1,#1

add r5,r11,r10

cmp r5,#15

bge r2,#1

inc r11

cmp r11,#20

jb first

inc r10

cmp r10,#10

jb second

Thanking you.

Add a comment
Know the answer?
Add Answer to:
Given the following C Code segment convert it to ARM assembly. Assume the following register assignment...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT