diff zruntime.S @ 335:14a937097c2b

Some Z80 interrupt fixes
author Mike Pavone <pavone@retrodev.com>
date Tue, 14 May 2013 21:59:56 -0700
parents 171f97e70d85
children fa7ea48be9a9
line wrap: on
line diff
--- a/zruntime.S	Tue May 14 00:46:34 2013 -0700
+++ b/zruntime.S	Tue May 14 21:59:56 2013 -0700
@@ -38,6 +38,7 @@
 	cmp 116(%rsi), %ebp
 	jb zskip_int
 	mov 112(%rsi), %ebp /* set cycle limit to sync cycle */
+	movl $0xFFFFFFFF, 116(%rsi) /* make sure the interrupt doesn't fire more than once */
 	add $7, %ebp
 	sub $2, %r9w
 	mov %r9w, %r14w