arm-js icon indicating copy to clipboard operation
arm-js copied to clipboard

The LDR instruction doesn't function correctly unless the address is a multiple of 4.

Open fkuzume opened this issue 2 months ago • 0 comments

        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.

fkuzume avatar May 05 '24 05:05 fkuzume