Fix operation size error in instruction decoding.

This commit is contained in:
Daniel Beer 2019-03-28 14:26:28 +13:00
parent d59fb64ac2
commit 4f6a845fb4
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,7 @@ static int decode_single(const uint8_t *code, address_t offset,
insn->itype = MSP430_ITYPE_SINGLE; insn->itype = MSP430_ITYPE_SINGLE;
insn->op = op & 0xff80; insn->op = op & 0xff80;
insn->dsize = (op & 0x0400) ? MSP430_DSIZE_BYTE : MSP430_DSIZE_WORD; insn->dsize = (op & 0x0040) ? MSP430_DSIZE_BYTE : MSP430_DSIZE_WORD;
insn->dst_mode = (op >> 4) & 0x3; insn->dst_mode = (op >> 4) & 0x3;
insn->dst_reg = op & 0xf; insn->dst_reg = op & 0xf;