# HG changeset patch # User Mike Pavone # Date 1367632216 25200 # Node ID eec7072189a14f5f3711223730d46e465f2bcfc2 # Parent 1a7d0a964ad2f334d887c938d49f2f2aa88c61d2 Fix crash bug in Z80 interrupt support diff -r 1a7d0a964ad2 -r eec7072189a1 blastem.c --- a/blastem.c Fri May 03 18:49:48 2013 -0700 +++ b/blastem.c Fri May 03 18:50:16 2013 -0700 @@ -133,7 +133,7 @@ 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 -r 1a7d0a964ad2 -r eec7072189a1 zruntime.S --- a/zruntime.S Fri May 03 18:49:48 2013 -0700 +++ b/zruntime.S Fri May 03 18:50:16 2013 -0700 @@ -38,6 +38,7 @@ 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