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

[ARM Disassembler] Flawed display of ALU instructions with a shift-rotate by r0 #3412

Closed
lunasorcery opened this issue Feb 8, 2025 · 0 comments

Comments

@lunasorcery
Copy link

Observed at 0.10.4 (6c2da7b)

ARM-mode ALU instructions with a shift-rotate by r0 will mistakenly render as rrx, the special-case for rotate-by-immediate-zero.

Given the following assembly:

mov r2, r3, rrx      ; opcode E1A02063
mov r2, r3, ror #1   ; opcode E1A020E3
mov r2, r3, ror r0   ; opcode E1A02073
mov r2, r3, ror r1   ; opcode E1A02173

mGBA will disassemble as:

mov r2, r3, rrx
mov r2, r3, ror #1
mov r2, r3, rrx
mov r2, r3, ror r1
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