From 7232b49090fc648c6ee43ca7e24f193212b53435 Mon Sep 17 00:00:00 2001 From: Bobbi Webber-Manners Date: Sun, 18 Dec 2022 18:42:54 -0500 Subject: [PATCH] Use STZ in macros to set softswitches. --- applecorn.s | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/applecorn.s b/applecorn.s index 4a299a3..11fa5a6 100644 --- a/applecorn.s +++ b/applecorn.s @@ -218,12 +218,12 @@ IENTMAIN MAC WRTMAIN MAC PHP SEI ; Keeps IRQ handler easy - STA WRMAINRAM ; Write to main memory + STZ WRMAINRAM ; Write to main memory EOM * Go back to writing to aux (for code running in aux) WRTAUX MAC - STA WRCARDRAM ; Write to aux memory + STZ WRCARDRAM ; Write to aux memory PLP ; Normal service resumed EOM @@ -234,13 +234,13 @@ ALTZP MAC SEI ; Disable IRQ when AltZP on LDA LCBANK1 ; R/W LC bank 1 LDA LCBANK1 - STA SETALTZP ; Alt ZP and LC + STZ SETALTZP ; Alt ZP and LC EOM * Manually disable AltZP + Aux LC (for code running in main) * Banks ROM in MAINZP MAC - STA SETSTDZP ; Main ZP and LC + STZ SETSTDZP ; Main ZP and LC LDA ROMIN ; Bank ROM back in LDA ROMIN PLP ; Turn IRQ back on