Arm/loaddecl1

From ASMBits

Consider the assembly code snippet below:

ldr r0, =Data
ldr r1, [r0, #4]
ldrh r2, [r0, #8]
ldrb r3, [r0, #11]


Declare some data in memory such that the result of running the code is:

  • r1 = 0x1234
  • r2 = 0x5678
  • r3 = 0x90


Sample Input

[None]

Sample Output

r1=0x1234, r2=0x5678, r3=0x90

Write your solution here

Upload a source file...