-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Description
Is the difference in TBH arm thumb instruction introduced in capstone 4.0 correct?
On 3.0.5:
$ LD_PRELOAD=../libcapstone.so ./cstool -h | head -n1
Cstool for Capstone Disassembler Engine v3.0.5
$ LD_PRELOAD=../libcapstone.so ./cstool -d thumb "d0 e8 11 f0"
0 d0 e8 11 f0 tbh [r0, r1, lsl #1]
op_count: 1
operands[0].type: MEM
operands[0].mem.base: REG = r0
operands[0].mem.index: REG = r1
Shift: 2 = 1
Groups: thumb2 jump
On 4.0:
$ ./cstool -h | head -n1
Cstool for Capstone Disassembler Engine v4.0.0
$ ./cstool -d thumb "d0 e8 11 f0"
0 d0 e8 11 f0 tbh [r0, r1, lsl #1]
op_count: 1
operands[0].type: MEM
operands[0].mem.base: REG = r0
operands[0].mem.index: REG = r1
operands[0].mem.lshift: 0x1
operands[0].access: READ
Registers read: r0 r1
Groups: thumb2 jump
Metadata
Metadata
Assignees
Labels
No labels