some more rework, second attempt on fixing the color issues. added ifdefs to disable the color voodoo alltogether for debugging purposes.

This commit is contained in:
mrdudz
2015-10-08 20:43:25 +02:00
parent 67dabb8489
commit e54ad81ce8
6 changed files with 256 additions and 234 deletions

View File

@@ -33,9 +33,14 @@ soft80_kclrscr:
inx
bne @lp3
.if SOFT80COLORVOODOO = 1
lda __bgcolor
jsr clear ; clear color ram
.endif
sei
ldy $01
lda #$34
lda #$34 ; enable RAM under I/O
sta $01
lda CHARCOLOR
@@ -43,11 +48,6 @@ soft80_kclrscr:
ora __bgcolor
jsr clear ; clear vram
inc $01 ; -> $35
lda __bgcolor
jsr clear ; clear color ram
sty $01
cli