Question: ARM v7 cortex-m assembly language question. 5. When an 8-bit or 16-bit data is loaded from the data memory into a 32-bit register, LDRSB (load

 ARM v7 cortex-m assembly language question. 5. When an 8-bit or

ARM v7 cortex-m assembly language question.

5. When an 8-bit or 16-bit data is loaded from the data memory into a 32-bit register, LDRSB (load register with signed byte) LDRSH loads a signed byte and LDRB LDRSH (load register with signed halfword) and LDRH (load register with whether sign extension or zero extension is performed depends on the data's sign (load register with byte) for an unsigned byte. halfword) read load a 16-bit signed and unsigned number from memory into a register, respectively What is the value in register r1 in the following instructions if r0 = 0x20008000? Assume the system is little endian. (1) LDRSB r1, [ro] (2) LDRSH r1, [re] (3) LDRB r1, [r] (4) LDRH r1, [re] Memory addressData 0xA1 0xB2 0x20008002 0x20008001 0x20008000 0x20007FFF 0x20007FFE 0xD4 0xE5

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!