Arm/increment align
From ASMBits
arm/load_alignPrevious
Nextarm/declword
Write a function that increments a 32-bit word located in memory. The location to modify is passed as the first parameter to the function. Note that this pointer is not necessarily 4-byte aligned, but your routine must only do properly aligned accesses.
void inc (int* p);
Expected solution length: Around 20 lines.
Sample Input
Pointer: .word 1234
Sample Output
(memory changed to 1235)
arm/load_alignPrevious
Nextarm/declword