Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing ARM addressing modes for LDRH #208

Open
sehugg opened this issue Jun 14, 2021 · 0 comments
Open

missing ARM addressing modes for LDRH #208

sehugg opened this issue Jun 14, 2021 · 0 comments

Comments

@sehugg
Copy link

sehugg commented Jun 14, 2021

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant