From: David Brownell Date: Tue, 15 Dec 2009 03:53:10 +0000 (-0800) Subject: ARM: disassemble STM correctly X-Git-Tag: v0.4.0-rc1~42 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=27b13e3377f546e9441291d3f1c3b6cc1438430b;p=openocd ARM: disassemble STM correctly There is no "STMMIDA" instruction. There is however "STMDAMI". Signed-off-by: David Brownell --- diff --git a/src/target/arm_disassembler.c b/src/target/arm_disassembler.c index 770c5e9c..912e37cf 100644 --- a/src/target/arm_disassembler.c +++ b/src/target/arm_disassembler.c @@ -1097,8 +1097,11 @@ static int evaluate_ldm_stm(uint32_t opcode, } } - snprintf(instruction->text, 128, "0x%8.8" PRIx32 "\t0x%8.8" PRIx32 "\t%s%s%s r%i%s, {%s}%s", - address, opcode, mnemonic, COND(opcode), addressing_mode, + snprintf(instruction->text, 128, + "0x%8.8" PRIx32 "\t0x%8.8" PRIx32 + "\t%s%s%s r%i%s, {%s}%s", + address, opcode, + mnemonic, addressing_mode, COND(opcode), Rn, (W) ? "!" : "", reg_list, (S) ? "^" : ""); return ERROR_OK;