Tutorial 5 (SimARM)
Q1) Explain the key components and functions of SimARM's architecture.
Q2) Encode the following instructions to SimARM machine code:
a) ADD R1, R2, R3
b) ADD R0, R1, #5
c) SUB R1, R0, R3
Q3) Given the following SimARM machine instruction, identify the corresponding assembly instruction:
a) 0001 110 101 010 011
b) 0001 110000 001 011
c) 0110 100000 010 001
Q4) How do you load data from memory into a register and store data from a register into memory in
SimARM? Provide an example.
Q5) Explain how does the following instruction work. Assume R3 = address Y where 32-bit data y is
available in memory location Y.
ldr R1, [R3]