Safer interrupt handling in macros.

This commit is contained in:
Bobbi Webber-Manners 2022-09-23 02:21:30 -04:00
parent 1aa49a8014
commit 5b9657ef64
2 changed files with 2 additions and 1 deletions

Binary file not shown.

View File

@ -149,6 +149,7 @@ IENTMAIN MAC
* Enable writing to main memory (for code running in aux)
WRTMAIN MAC
PHP
SEI ; Keeps IRQ handler easy
STA $C004 ; Write to main memory
EOM
@ -156,7 +157,7 @@ WRTMAIN MAC
* Go back to writing to aux (for code running in aux)
WRTAUX MAC
STA $C005 ; Write to aux memory
CLI ; Normal service resumed
PLP ; Normal service resumed
EOM
* Manually enable AltZP (for code running in main)