about summary refs log tree commit diff stats
path: root/miasm2/arch/msp430/jit.py
diff options
context:
space:
mode:
Diffstat (limited to 'miasm2/arch/msp430/jit.py')
-rw-r--r--miasm2/arch/msp430/jit.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/miasm2/arch/msp430/jit.py b/miasm2/arch/msp430/jit.py
index 9fbbc639..e4d04f9f 100644
--- a/miasm2/arch/msp430/jit.py
+++ b/miasm2/arch/msp430/jit.py
@@ -26,14 +26,14 @@ class jitter_msp430(Jitter):
 
     def pop_uint16_t(self):
         regs = self.cpu.get_gpreg()
-        value = upck16(self.vm.get_mem(regs['SP'], 2))
+        value = self.vm.get_u16(regs['SP'])
         regs['SP'] += 2
         self.cpu.set_gpreg(regs)
         return value
 
     def get_stack_arg(self, index):
         regs = self.cpu.get_gpreg()
-        value = upck16(self.vm.get_mem(regs['SP'] + 2 * index, 2))
+        value = self.vm.get_u16(regs['SP'] + 2 * index)
         return value
 
     def init_run(self, *args, **kwargs):