Arm/loaddecl4

From ASMBits

Consider the assembly code snippet below:

ldr r2, =Data
ldr r3, [r2]
ldr r4, [r3, #1]
ldr r5, [r4, #2]


Declare some data in memory such that the result of running the code is:
  • r5 equals r2
  • r2, r3, and r4 are all different


Sample Input

[None]

Sample Output

r2=r5

Your .word declarations can contain simple arithmetic operations.

Write your solution here

Upload a source file...