Skip to content

Fix Thumb2 conditinal branch#601

Open
Highbor wants to merge 1 commit into
keystone-engine:masterfrom
Highbor:fix/thumb2-condbranch-pc-offset
Open

Fix Thumb2 conditinal branch#601
Highbor wants to merge 1 commit into
keystone-engine:masterfrom
Highbor:fix/thumb2-condbranch-pc-offset

Conversation

@Highbor

@Highbor Highbor commented Jun 5, 2026

Copy link
Copy Markdown

kstool thumb "bne.w 0x680168E0" 0x68016578
should generate '40 F0 B2 81' which is the same as the one
from IDA-Pro "0x68016578: 40 F0 B2 81 BNE.W loc_680168E0"
or
capstone.Cs(CS_ARCH_ARM,CS_MODE_THUMB).disasm(the-generate-bytes,0x8016578) should match the raw-asm "bne.w 0x680168E0"

the bug code generate the wrong result: [ 56 f0 6e 84 ] which capstone can not disasm out the raw-asm

kstool thumb 'bne.w 0x680168E0' 0x68016578 should generate '40 F0 B2 81'

that is the same as the one from capstone/IDA-Pro '0x68016578: 40 F0 B2 81  BNE.W  loc_680168E0'
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

Successfully merging this pull request may close these issues.

1 participant