From dfe92c86ff93da75c39dec41963a71a0f310d4f2 Mon Sep 17 00:00:00 2001 From: shazz Date: Fri, 28 Dec 2018 10:31:15 -0500 Subject: [PATCH] Kernal v2 patch from Ray The patch was simple I just took the screen clear routine from the v3 KERNAL ROM and incorporated that into FB64 so that screen RAM is filled with the foreground color no matter which KERNAL version you actually have. --- CBM-FileBrowser_v1.6/sources/CBM-FileBrowser.asm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CBM-FileBrowser_v1.6/sources/CBM-FileBrowser.asm b/CBM-FileBrowser_v1.6/sources/CBM-FileBrowser.asm index 95c24c2..f561a86 100644 --- a/CBM-FileBrowser_v1.6/sources/CBM-FileBrowser.asm +++ b/CBM-FileBrowser_v1.6/sources/CBM-FileBrowser.asm @@ -726,6 +726,18 @@ jsr CHROUT !if clearscrena = 1 { jsr CLEARSCREEN +; Set text color for C64 with V2 KERNAL +!if target = 64 { + lda #forecolor2 + ldx #$00 +loop + sta color,x + sta color+256,x + sta color+512,x + sta color+768,x + dex + bne loop +} !if target = 20 & forecolor2 <> 1 & forecolor2 < 8 { ;Set foreground char color if not white (NOT REQUIRED FOR C64)