c65 target: conio accesses all color RAM in 80x25 text mode
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user