Nios/load2

From ASMBits

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

Sample Input

r4=Data, r5=1

Sample Output

r2=0x124

Write your solution here

Upload a source file...