Partial revert of ce2e0a94f4
.
Jump instruction offsets are relative to start of instruction.
This commit is contained in:
parent
9bbe525776
commit
da3b7e31a2
|
@ -413,7 +413,7 @@ static int decode_jump(const uint8_t *code, address_t offset,
|
||||||
|
|
||||||
insn->op = op & 0xfc00;
|
insn->op = op & 0xfc00;
|
||||||
insn->itype = MSP430_ITYPE_JUMP;
|
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_mode = MSP430_AMODE_SYMBOLIC;
|
||||||
insn->dst_reg = MSP430_REG_PC;
|
insn->dst_reg = MSP430_REG_PC;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue