Blob Blame Raw
From cceffbdb8c5f90302d0a89f6524fe71dd5489001 Mon Sep 17 00:00:00 2001
From: jede <jede@oric.org>
Date: Sun, 21 Jul 2019 18:38:17 +0200
Subject: [PATCH 29/29] Fix bug $FF

---
 libsrc/telestrat/clrscr.s | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/libsrc/telestrat/clrscr.s b/libsrc/telestrat/clrscr.s
index aa2eae68..39c2f772 100644
--- a/libsrc/telestrat/clrscr.s
+++ b/libsrc/telestrat/clrscr.s
@@ -34,9 +34,11 @@
     dex
     stx     SCRX
     
+    ; At this step X is equal to $00
     dex
-    sta     OLD_BGCOLOR
-    sta     OLD_CHARCOLOR
+    ; At this step X is equal to $FF
+    stx     OLD_BGCOLOR
+    stx     OLD_CHARCOLOR
 
     rts
 .endproc
-- 
2.21.0