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.
This commit is contained in:
shazz 2018-12-28 10:31:15 -05:00 committed by GitHub
parent 770854975c
commit dfe92c86ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 0 deletions

View File

@ -726,6 +726,18 @@ jsr CHROUT
!if clearscrena = 1 { !if clearscrena = 1 {
jsr CLEARSCREEN 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 { !if target = 20 & forecolor2 <> 1 & forecolor2 < 8 {
;Set foreground char color if not white (NOT REQUIRED FOR C64) ;Set foreground char color if not white (NOT REQUIRED FOR C64)