Arm/loaddecl2
From ASMBits
arm/loaddecl1Previous
Nextarm/loaddecl3
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
arm/loaddecl1Previous
Nextarm/loaddecl3