Arm/loaddecl2

From ASMBits

Consider the assembly code snippet below:

ldr r0, =Data
ldr r1, [r0]
add r0, r0, r1
ldr r1, [r0]
add r0, r0, r1
ldr r2, [r0]


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

  • r2 = 0x1234


Sample Input

[None]

Sample Output

r2=0x1234

Write your solution here

Upload a source file...