Fix cmp and related opcodes in disassembler
Jeffrey Pfau jeffrey@endrift.com
Wed, 23 Jul 2014 23:12:28 -0700
1 files changed,
3 insertions(+),
1 deletions(-)
jump to
M
src/arm/decoder-arm.c
→
src/arm/decoder-arm.c
@@ -103,7 +103,9 @@ ARM_OPERAND_REGISTER_2; \
info->affectsCPSR = S; \ SHIFTER; \ if (SKIPPED == 1) { \ - info->operandFormat &= ~ARM_OPERAND_1; \ + info->operandFormat >>= 8; \ + info->op1 = info->op2; \ + info->op2 = info->op3; \ } else if (SKIPPED == 2) { \ info->operandFormat &= ~ARM_OPERAND_2; \ } \