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 Thumb instruction RSB detials operands issue #2382

Open
yakamoz423 opened this issue Jun 5, 2024 · 0 comments
Open

ARM Thumb instruction RSB detials operands issue #2382

yakamoz423 opened this issue Jun 5, 2024 · 0 comments
Labels
Milestone

Comments

@yakamoz423
Copy link

Work environment

Questions Answers
OS/arch/bits Windows x64
Architecture armv8
Source of Capstone git clone
Version/git commit next 1a6921f

Instruction bytes giving faulty results

0x4240

Steps to get the wrong result

With cstool:

cstool -dr thumbbe 4240

 0  42 40  rsbs r0, r0, #0
        ID: 352 (rsb)
        op_count: 3
                operands[0].type: REG = r0
                operands[0].access: WRITE
                operands[1].type: IMM = 0x0
                operands[1].access: READ
                operands[2].type: REG = r0
                operands[2].access: READ
        Update-flags: True
        Registers read: r0
        Registers modified: cpsr r0
        Groups: IsThumb

You can see the order of the operands[1] and [2] is reversed.

@Rot127 Rot127 added ARM Arch bug labels Jun 5, 2024
@Rot127 Rot127 added this to the v6 milestone Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

2 participants