armips icon indicating copy to clipboard operation
armips copied to clipboard

missing ARM addressing modes for LDRH

Open sehugg opened this issue 3 years ago • 0 comments

The following ARM addressing modes work for LDR (and LDRB):

    ldr    r3, [r2, #1]
    ldr    r3, [r2, #-1]
    ldr    r3, [r2, r1]
    ldr    r3, [r2, -r1]
    ldr    r3, [r2, #1]!
    ldr    r3, [r2, #-1]!
    ldr    r3, [r2, r1]!
    ldr    r3, [r2, -r1]!
    ldr    r3, [r2], #1
    ldr    r3, [r2], #-1
    ldr    r3, [r2], r1
    ldr    r3, [r2], -r1

I believe LDRH should support all of the above, but currently only the following work:

    ldrh    r3, [r2, #1]
    ldrh    r3, [r2, #-1]
    ldrh    r3, [r2, r1]
    ldrh    r3, [r2], #1
    ldrh    r3, [r2], #-1

sehugg avatar Jun 14 '21 00:06 sehugg