diff --git a/emulator/firmware-decomp/emu_main.py b/emulator/firmware-decomp/emu_main.py index adb8d8f..fb8f06a 100644 --- a/emulator/firmware-decomp/emu_main.py +++ b/emulator/firmware-decomp/emu_main.py @@ -103,6 +103,7 @@ class MainRunner: if m['putchar']: self.hooks[m['putchar']] = self.h_console if m['chain']: self.hooks[m['chain']] = self.h_chainfix if m.get('intdiv'): self.hooks[m['intdiv']] = self.h_intdiv + self.heap = [0x08010000, 0x0c010000] # bump allocator over the DRAM banks def h_intdiv(self, cpu): # Runtime integer divide (r22 = r22/r23, result via ftrunc+fxfr): the @@ -116,7 +117,6 @@ class MainRunner: cpu.wr(22, q & 0xffffffff) cpu.pc = cpu.rd(1) return True - self.heap = [0x08010000, 0x0c010000] # bump allocator over the DRAM banks # ---- hook helpers: emulate a called function returning ---- def h_ret(self, cpu, ret=None):