c65 target: conio accesses all color RAM in 80x25 text mode
This commit is contained in:
@@ -18,8 +18,19 @@ _cpeekcolor:
|
|||||||
lda SCREEN_PTR
|
lda SCREEN_PTR
|
||||||
sta ptr1
|
sta ptr1
|
||||||
|
|
||||||
|
php
|
||||||
|
sei
|
||||||
|
lda $d030
|
||||||
|
ora #$01
|
||||||
|
sta $d030
|
||||||
ldy #0
|
ldy #0
|
||||||
lda (ptr1),y
|
lda (ptr1),y
|
||||||
|
tay
|
||||||
|
lda $d030
|
||||||
|
and #$fe
|
||||||
|
sta $d030
|
||||||
|
plp
|
||||||
|
tya
|
||||||
|
|
||||||
ldx #>$0000
|
ldx #>$0000
|
||||||
rts
|
rts
|
||||||
|
|||||||
@@ -116,7 +116,16 @@ putchar:
|
|||||||
adc #>$d000
|
adc #>$d000
|
||||||
sta ptr4 + 1
|
sta ptr4 + 1
|
||||||
|
|
||||||
|
php
|
||||||
|
sei
|
||||||
|
lda $d030
|
||||||
|
ora #$01
|
||||||
|
sta $d030
|
||||||
lda CHARCOLOR
|
lda CHARCOLOR
|
||||||
sta (ptr4),y ; Set color
|
sta (ptr4),y ; Set color
|
||||||
|
lda $d030
|
||||||
|
and #$fe
|
||||||
|
sta $d030
|
||||||
|
plp
|
||||||
|
|
||||||
rts
|
rts
|
||||||
|
|||||||
Reference in New Issue
Block a user