From c14f2b7252164ccc789589d14e6775a724b50ac8 Mon Sep 17 00:00:00 2001 From: Dan Sanderson Date: Thu, 20 Nov 2025 18:03:38 -0800 Subject: [PATCH] cpeekcolor: don't stash and restore I flag or CRAM2K --- libsrc/c65/cpeekcolor.s | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libsrc/c65/cpeekcolor.s b/libsrc/c65/cpeekcolor.s index c32111b88..5737a7503 100644 --- a/libsrc/c65/cpeekcolor.s +++ b/libsrc/c65/cpeekcolor.s @@ -18,18 +18,17 @@ _cpeekcolor: lda SCREEN_PTR sta ptr1 - php sei lda $D030 - pha ora #$01 sta $D030 ldy #0 lda (ptr1),y tay - pla + lda $D030 + and #$FE sta $D030 - plp + cli tya ldx #>$0000