Question

Translate the following LEGv8 assembly into C, assuming that: X19 = f, X20 = g, X21...

Translate the following LEGv8 assembly into C, assuming that:

X19 = f, X20 = g, X21 = h, X22 = &a

SUB X9, X20, X21

CBZ X9, ELSE

LSL X9, X20, #3

ADD X9, X22, X9

LDUR X19, [X9, #0]

B END

ELSE: LDUR X19, [X22, #0]

END: SUB X21, X19, X20

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

Groncn to Else / temp =。 8eND ELSE; LDUR 19じ 2-2 1.9 ラh ln c eise

Add a comment
Know the answer?
Add Answer to:
Translate the following LEGv8 assembly into C, assuming that: X19 = f, X20 = g, X21...
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
ADVERTISEMENT