Arm/load2

From ASMBits

arm/load1Previous

Your function will be passed a pointer to the start of an array of 32-bit words, and an array index. Write a function that reads the indexth word from memory and returns it.

int load (int *pointer, int index);

Expected solution length: Around 2 lines.

Sample Input

r0=Data, r1=1

Sample Output

r0=0x124

Write your solution here

Upload a source file...