From 933351943fd6f7e7a915857f6af8718f000915d5 Mon Sep 17 00:00:00 2001 From: Paul Gardner-Stephen Date: Sun, 5 May 2019 15:06:09 +0930 Subject: [PATCH] move all VIC-II initialisation from IOINIT to CINT. Issue #20 --- c64/kernal/cint.s | 11 +++++++++++ c64/kernal/ioinit.s | 11 ----------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/c64/kernal/cint.s b/c64/kernal/cint.s index 97843558..fbd47056 100644 --- a/c64/kernal/cint.s +++ b/c64/kernal/cint.s @@ -7,6 +7,17 @@ cint: lda #$c8 ; 40 column etc sta $d016 + ;; Compute's Mapping the 64, p156 + ;; We use a different colour scheme of white text on all blue + lda #$06 + sta $D020 + sta $D021 + + ;; Turn off sprites + ;; (observed hanging around after running programs and resetting) + lda #$00 + sta $D015 + ;; Initialise cursor blink flags (Compute's Mapping the 64 p215) lda #$00 sta cursor_blink_disable diff --git a/c64/kernal/ioinit.s b/c64/kernal/ioinit.s index 6f49fb22..ccb70f39 100644 --- a/c64/kernal/ioinit.s +++ b/c64/kernal/ioinit.s @@ -9,17 +9,6 @@ ioinit: LDA #$27 STA $01 - ;; Compute's Mapping the 64, p156 - ;; We use a different colour scheme of white text on all blue - lda #$06 - sta $D020 - sta $D021 - - ;; Turn off sprites - ;; (observed hanging around after running programs and resetting) - lda #$00 - sta $D015 - ;; Enable CIA1 IRQ and ~50Hz timer ;; (https://csdb.dk/forums/?roomid=11&topicid=69037) lda #$7f