Write one line of assembly instruction for the following cal

Write one line of assembly instruction for the following calculation: Apply Arithmetic Shift Right on the content of R2, then add the contents of R1 and R2 and store the result in R0.

Solution

Ans) The instruction is as follows

ADD R0, R1, R2, ASR #1

------------------

Where ASR #1 do shifts right the content of R2 and ADD adds the Content of R1 and modified R2 and result is stored in R0

 Write one line of assembly instruction for the following calculation: Apply Arithmetic Shift Right on the content of R2, then add the contents of R1 and R2 and

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site