diff options
| author | 2023-02-11 21:24:48 +0000 | |
|---|---|---|
| committer | 2023-02-11 21:24:48 +0000 | |
| commit | b425e26ea3ff2df3f6b98b475ae870900efaf2e6 (patch) | |
| tree | d134435547ee287f23b237b4be0c14bd353d87a7 /asm/ffi.py | |
| parent | rename idiv to sdiv (diff) | |
jump tests
Diffstat (limited to 'asm/ffi.py')
| -rw-r--r-- | asm/ffi.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -120,13 +120,15 @@ class Environment: def syscall(self, sc): raise InvalidSyscallError(sc) - def __call__(self): + def __call__(self, debug=False): sc = c_size_t() ret = RunRet.CONTINUE while not ret.is_halt(): ret = RunRet(dll.creole_step(byref(self.cenv), byref(sc))) if ret == RunRet.SYSCALL: self.syscall(sc) + if debug: + print(self.cenv.reg[0]) return ret class CParseLineException(Exception): |
