cpeekcolor: don't stash and restore I flag or CRAM2K

This commit is contained in:
Dan Sanderson
2025-11-20 18:03:38 -08:00
parent d2f91a8116
commit c14f2b7252

View File

@@ -18,18 +18,17 @@ _cpeekcolor:
lda SCREEN_PTR lda SCREEN_PTR
sta ptr1 sta ptr1
php
sei sei
lda $D030 lda $D030
pha
ora #$01 ora #$01
sta $D030 sta $D030
ldy #0 ldy #0
lda (ptr1),y lda (ptr1),y
tay tay
pla lda $D030
and #$FE
sta $D030 sta $D030
plp cli
tya tya
ldx #>$0000 ldx #>$0000