Bug fix: recognise DEC and DECD emulated instructions.

This commit is contained in:
Daniel Beer 2010-03-18 19:13:31 +13:00
parent fe01853335
commit 144e000333
1 changed files with 3 additions and 3 deletions

6
dis.c
View File

@ -343,11 +343,11 @@ static void find_emulated_ops(struct msp430_instruction *insn)
break;
case MSP430_OP_SUB:
if (insn->dst_mode == MSP430_AMODE_IMMEDIATE) {
if (insn->dst_addr == 1) {
if (insn->src_mode == MSP430_AMODE_IMMEDIATE) {
if (insn->src_addr == 1) {
insn->op = MSP430_OP_DEC;
insn->itype = MSP430_ITYPE_SINGLE;
} else if (insn->dst_addr == 2) {
} else if (insn->src_addr == 2) {
insn->op = MSP430_OP_DECD;
insn->itype = MSP430_ITYPE_SINGLE;
}