Browse Source

ARM: disassemble STM correctly

There is no "STMMIDA" instruction.  There is however "STMDAMI".

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
tags/v0.4.0-rc1
David Brownell 14 years ago
parent
commit
27b13e3377
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      src/target/arm_disassembler.c

+ 5
- 2
src/target/arm_disassembler.c View File

@@ -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;


Loading…
Cancel
Save