# HG changeset patch # User Mike Pavone # Date 1370234298 25200 # Node ID 134ffb72d7a108d49e692e330c253b6e899b07e9 # Parent d42a8a3e48942c8641f75e8b6d5b0ec05b17786f Clear IFF1 and IFF2 when an interrupt is taken on the Z80 diff -r d42a8a3e4894 -r 134ffb72d7a1 zruntime.S --- a/zruntime.S Sun Jun 02 21:12:43 2013 -0700 +++ b/zruntime.S Sun Jun 02 21:38:18 2013 -0700 @@ -38,7 +38,11 @@ cmp 116(%rsi), %ebp jb zskip_int mov 112(%rsi), %ebp /* set cycle limit to sync cycle */ + /* not sure this is really necessary now that IFF1 and IFF2 are geting cleared */ movl $0xFFFFFFFF, 116(%rsi) /* make sure the interrupt doesn't fire more than once */ + /* disable interrupts */ + movb $0, 96(%rsi) + movb $0, 97(%rsi) add $7, %ebp sub $2, %r9w mov %r9w, %r14w