From ASMBits

Consider the assembly code snippet below:

movia r5, Data
ldw  r2, 4(r5)
ldhu r3, 8(r5)
ldbu r4, 11(r5)

Declare some data in memory such that the result of running the code is:
  • r2 = 0x1234
  • r3 = 0x5678
  • r4 = 0x90

Sample Input


Sample Output

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

Write your solution here

Upload a source file...