c65 target: conio accesses all color RAM in 80x25 text mode

This commit is contained in:
Dan Sanderson
2025-11-18 00:36:10 -08:00
parent 640206696f
commit 18e9c6f6a0
2 changed files with 20 additions and 0 deletions

View File

@@ -18,8 +18,19 @@ _cpeekcolor:
lda SCREEN_PTR
sta ptr1
php
sei
lda $d030
ora #$01
sta $d030
ldy #0
lda (ptr1),y
tay
lda $d030
and #$fe
sta $d030
plp
tya
ldx #>$0000
rts

View File

@@ -116,7 +116,16 @@ putchar:
adc #>$d000
sta ptr4 + 1
php
sei
lda $d030
ora #$01
sta $d030
lda CHARCOLOR
sta (ptr4),y ; Set color
lda $d030
and #$fe
sta $d030
plp
rts