aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2009-12-14 19:53:10 -0800
committerDavid Brownell <dbrownell@users.sourceforge.net>2009-12-14 19:53:10 -0800
commit27b13e3377f546e9441291d3f1c3b6cc1438430b (patch)
tree3bcb6135eba032a6f771e1a809818619071c9661 /src
parentc86a64dff7e9ebe8ab87e353f5b4156f830a0de7 (diff)
ARM: disassemble STM correctly
There is no "STMMIDA" instruction. There is however "STMDAMI". Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src')
-rw-r--r--src/target/arm_disassembler.c7
1 files changed, 5 insertions, 2 deletions
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;