for X16, replace ink-pot with x16-ink-pot which holds PETSCII codes

instead of color codes for pen and background, removing the dependency
on Kernal variable BkgPenCol
This commit is contained in:
Philip Zembrod 2024-07-01 02:24:18 +02:00
parent 616b408732
commit 423ecea908

View File

@ -69,11 +69,9 @@ include vf-sys-cbm.fth
\ ... continued \ ... continued
8f fthpage 8f fthpage
Create ink-pot Create x16-ink-pot
\ border bkgnd pen 0 \ border bkgnd-color-petscii pen-color-petscii
6 c, 6 c, 3 c, 0 c, \ Forth 6 c, $1f c, $9f c, \ Forth
0E c, 6 c, 3 c, 0 c, \ Edi
6 c, 6 c, 3 c, 0 c, \ User
\ *** Block No. 144, Hexblock 90 \ *** Block No. 144, Hexblock 90
@ -99,10 +97,10 @@ Label first-init
sei cld sei cld
RomBank lda $f8 # and RomBank sta \ map in KERNAL ROM RomBank lda $f8 # and RomBank sta \ map in KERNAL ROM
IOINIT jsr CINT jsr RESTOR jsr \ init. and set I/O-Vectors IOINIT jsr CINT jsr RESTOR jsr \ init. and set I/O-Vectors
ink-pot lda BrdCol sta \ border x16-ink-pot lda BrdCol sta \ border
ink-pot 1+ lda x16-ink-pot 1+ lda ConOut jsr \ backgrnd
.a asl .a asl .a asl .a asl \ backgrnd 1 # lda ConOut jsr \ swap backgrnd <-> pen
ink-pot 2+ ora BkgPenCol sta \ pen x16-ink-pot 2+ lda ConOut jsr \ pen
$0e # lda ConOut jsr \ lower/uppercase $0e # lda ConOut jsr \ lower/uppercase
cli rts end-code cli rts end-code
first-init dup bootsystem 1+ ! first-init dup bootsystem 1+ !