Give the correct ARM assembly instruction to perform the following operations. E
ID: 2318459 • Letter: G
Question
Give the correct ARM assembly instruction to perform the following operations. Each operating will be one load or store instruction. Read a 16-bit signed number into Register R8, assuming R0 already points to the memory location from which we wish to read. Read an 8-bit unsigned number into Register R9, assuming R1 already points to the memory location from which we wish to read. After the data is read, R1 will point to the next byte in the memory. Write an 8-bit number from Register R10 to memory, assuming R2 already points to the memory location to which we wish to write.Explanation / Answer
a)for this we need use instruction LDRSB, s indicates sign bits. we need to store the value R8 from meory, the value of this stored in [ R1]
LDRSB R8,[R1]
b)
LDRH R9,[R1]+1
c)
STRH R10,[R2]
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.