Nios/loaddecl2

From ASMBits

Consider the assembly code snippet below:

movia r2, Data
ldw r3, 0(r2)
add r2, r2, r3
ldw r3, 0(r2)
add r2, r2, r3
ldw r4, 0(r2)


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

  • r4 = 0x1234


Sample Input

[None]

Sample Output

r4=0x1234

Write your solution here

Upload a source file...