all repos — mgba @ cbb522a702051cb0c39d73889a5affaeabfa97bc

mGBA Game Boy Advance Emulator

Fix *mull, *mlal instructions in disassembler
Jeffrey Pfau jeffrey@endrift.com
Wed, 23 Jul 2014 23:12:54 -0700
commit

cbb522a702051cb0c39d73889a5affaeabfa97bc

parent

5477c891c5e235601b00601425df1fa8673a7929

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M src/arm/decoder.csrc/arm/decoder.c

@@ -332,6 +332,10 @@ } else if (info->operandFormat & ARM_OPERAND_REGISTER_3) {

written = _decodeRegister(info->op3.reg, buffer, blen); ADVANCE(written); } + if (info->operandFormat & ARM_OPERAND_4) { + strncpy(buffer, ", ", blen - 1); + ADVANCE(2); + } if (info->operandFormat & ARM_OPERAND_IMMEDIATE_4) { written = snprintf(buffer, blen - 1, "#%i", info->op4.immediate); ADVANCE(written);