From cdce753a09ea815d55936b78e6a1d57849a9a175 Mon Sep 17 00:00:00 2001 From: Stefan Date: Wed, 9 May 2018 23:31:42 +0000 Subject: [PATCH] NMI friendly c64-hi Don't clear all vectors, see #639. --- libsrc/c64/tgi/c64-hi.s | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libsrc/c64/tgi/c64-hi.s b/libsrc/c64/tgi/c64-hi.s index aeb334404..fd7a25478 100644 --- a/libsrc/c64/tgi/c64-hi.s +++ b/libsrc/c64/tgi/c64-hi.s @@ -131,7 +131,7 @@ VBASE := $E000 ; Video memory base address ; INSTALL: - rts +; rts ; fall through ; ------------------------------------------------------------------------ @@ -272,9 +272,12 @@ CLEAR: ldy #$00 sta VBASE+$1C00,y sta VBASE+$1D00,y sta VBASE+$1E00,y - sta VBASE+$1F00,y iny bne @L1 +@L2: sta VBASE+$1F00,y + iny + cpy #$40 + bne @L2 rts ; ------------------------------------------------------------------------ @@ -285,7 +288,7 @@ CLEAR: ldy #$00 ; SETVIEWPAGE: - rts +; rts ; fall through ; ------------------------------------------------------------------------ ; SETDRAWPAGE: Set the drawable page. Called with the new page in A (0..n).