Skip to content

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

Closed

Description

@lunasorcery

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

Activity

  1. added a commit that references this issue on Feb 8, 2025
    d365312
  2. added a commit that references this issue on Feb 11, 2025
    e19f35e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions