From ASMBits


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 4 lines.

Sample Input

r4=Data, r5=1

Sample Output


Write your solution here

Upload a source file...