about summary refs log tree commit diff stats
path: root/miasm2/arch/msp430/jit.py
diff options
context:
space:
mode:
authorCamille Mougey <commial@gmail.com>2018-11-11 14:55:58 +0100
committerGitHub <noreply@github.com>2018-11-11 14:55:58 +0100
commitea9faf29639542b219b0343e2a87de3a81c9df4b (patch)
tree19ed391598d9e6a9098279f2f736abebc5a1e5b9 /miasm2/arch/msp430/jit.py
parent8d0f34b3049e31a9b789491d468cee0b72bfe24e (diff)
parent329f058141844a2e499140d61887324c824a2d5e (diff)
downloadmiasm-ea9faf29639542b219b0343e2a87de3a81c9df4b.tar.gz
miasm-ea9faf29639542b219b0343e2a87de3a81c9df4b.zip
Merge pull request #867 from serpilliere/vm_get_int
Vm get int
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):