Bug fix: recognise DEC and DECD emulated instructions.
This commit is contained in:
parent
fe01853335
commit
144e000333
6
dis.c
6
dis.c
|
@ -343,11 +343,11 @@ static void find_emulated_ops(struct msp430_instruction *insn)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MSP430_OP_SUB:
|
case MSP430_OP_SUB:
|
||||||
if (insn->dst_mode == MSP430_AMODE_IMMEDIATE) {
|
if (insn->src_mode == MSP430_AMODE_IMMEDIATE) {
|
||||||
if (insn->dst_addr == 1) {
|
if (insn->src_addr == 1) {
|
||||||
insn->op = MSP430_OP_DEC;
|
insn->op = MSP430_OP_DEC;
|
||||||
insn->itype = MSP430_ITYPE_SINGLE;
|
insn->itype = MSP430_ITYPE_SINGLE;
|
||||||
} else if (insn->dst_addr == 2) {
|
} else if (insn->src_addr == 2) {
|
||||||
insn->op = MSP430_OP_DECD;
|
insn->op = MSP430_OP_DECD;
|
||||||
insn->itype = MSP430_ITYPE_SINGLE;
|
insn->itype = MSP430_ITYPE_SINGLE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue