arm-js
arm-js copied to clipboard
The LDR instruction doesn't function correctly unless the address is a multiple of 4.
mov r1, #0xff
mov r0, #32
str r0, [r11]
ldr r1, [r11, #3]
When the value of r11+3 isn't a multiple of 4, the ldr instruction doesn't function correctly.
According to the ARM Architecture Referrence Manual:
data = Memory[address,4] Rotate_Right (8 * address[1:0])
This is how it is described.