Nios/load align
From ASMBits
nios/chrcpyPrevious
Write a function that reads a 32-bit word from memory and returns it. The location to read is passed as the first parameter to the function. This pointer is not necessarily 4-byte aligned, but your function must emulate what an unaligned load would do, while only using properly aligned accesses,
int load (int* p);
Expected solution length: Around 15 lines.
Sample Input
Pointer: .word 1234
Sample Output
1234
nios/chrcpyPrevious