Partial revert of ce2e0a94f4.

Jump instruction offsets are relative to start of instruction.
This commit is contained in:
Daniel Beer 2013-03-13 10:40:43 +13:00
parent 9bbe525776
commit da3b7e31a2
1 changed files with 1 additions and 1 deletions

View File

@ -413,7 +413,7 @@ static int decode_jump(const uint8_t *code, address_t offset,
insn->op = op & 0xfc00;
insn->itype = MSP430_ITYPE_JUMP;
insn->dst_addr = offset + 4 + tgtrel * 2;
insn->dst_addr = offset + 2 + tgtrel * 2;
insn->dst_mode = MSP430_AMODE_SYMBOLIC;
insn->dst_reg = MSP430_REG_PC;