From 85fa29f181f53537d539f58e07e9b319ddeb9a7b Mon Sep 17 00:00:00 2001 From: Mike Pavone Date: Fri, 3 May 2013 18:50:16 -0700 Subject: Fix crash bug in Z80 interrupt support --- blastem.c | 2 +- zruntime.S | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/blastem.c b/blastem.c index bcca8c7..05ef5ae 100644 --- a/blastem.c +++ b/blastem.c @@ -133,7 +133,7 @@ uint8_t busreq = 0; uint8_t busack = 0; uint32_t busack_cycle = CYCLE_NEVER; uint8_t new_busack = 0; - +//#define DO_DEBUG_PRINT #ifdef DO_DEBUG_PRINT #define dprintf printf #define dputs puts diff --git a/zruntime.S b/zruntime.S index ed1b397..02f817b 100644 --- a/zruntime.S +++ b/zruntime.S @@ -38,6 +38,7 @@ z80_handle_cycle_limit_int: shr $8, %r13w call z_inccycles call z80_write_byte_noinc + pop %r14 /*dispose of return address */ /* TODO: Support interrupt mode 0 and 2 */ mov $0x38, %r13w call z80_native_addr -- cgit v1.2.3