1
0
mirror of https://github.com/cc65/cc65.git synced 2026-04-26 13:18:31 +00:00

Improve CRAM2K flip to preserve previous value

This commit is contained in:
Dan Sanderson
2025-11-18 20:22:47 -08:00
parent cfb55a89d4
commit 6fb5934b87
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -21,13 +21,13 @@ _cpeekcolor:
php
sei
lda $D030
pha
ora #$01
sta $D030
ldy #0
lda (ptr1),y
tay
lda $D030
and #$FE
pla
sta $D030
plp
tya
+2 -2
View File
@@ -119,12 +119,12 @@ putchar:
php
sei
lda $D030
pha
ora #$01
sta $D030
lda CHARCOLOR
sta (ptr4),y ; Set color
lda $D030
and #$FE
pla
sta $D030
plp