all repos — mgba @ 5477c891c5e235601b00601425df1fa8673a7929

mGBA Game Boy Advance Emulator

Fix cmp and related opcodes in disassembler
Jeffrey Pfau jeffrey@endrift.com
Wed, 23 Jul 2014 23:12:28 -0700
commit

5477c891c5e235601b00601425df1fa8673a7929

parent

5eb729faf654e96ff6f223605af88f6b0f6dad56

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M src/arm/decoder-arm.csrc/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; \ } \