summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/msp430/src/lift.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/msp430/src/lift.rs b/arch/msp430/src/lift.rs
index 85d204e1..880f201d 100644
--- a/arch/msp430/src/lift.rs
+++ b/arch/msp430/src/lift.rs
@@ -73,6 +73,7 @@ macro_rules! one_operand {
)
.append()
}
+ Operand::Constant(val) => $il.store(2, $il.const_int(2, *val as u64), $op).append(),
_ => {
unreachable!()
}
@@ -222,7 +223,7 @@ pub(crate) fn lift_instruction(inst: &Instruction, addr: u64, il: &Lifter<Msp430
None => 2,
};
let src = lift_source_operand(inst.source(), size, il);
- il.push(2, src).append();
+ il.push(size, src).append();
auto_increment!(inst.source(), il);
}
Instruction::Call(inst) => {