Back to new WRTMAIN/WRTAUX. Fixed //e bug that prevented this.

This commit is contained in:
Bobbi Webber-Manners 2022-09-24 14:50:30 -04:00
parent 6609426f8a
commit 216ba57305
3 changed files with 8 additions and 7 deletions

Binary file not shown.

View File

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

View File

@ -364,12 +364,14 @@ PRCHR4 JSR CHARADDR ; Find character address
>>> WRTMAIN >>> WRTMAIN
STA [VDUADDR],Y STA [VDUADDR],Y
>>> WRTAUX >>> WRTAUX
BRA PRCHR8 BRA PRCHR7
PRCHR5 BCC PRCHR6 ; Aux memory PRCHR5 BCC PRCHR6 ; Aux memory
>>> WRTMAIN >>> WRTMAIN
PRCHR6 STA (VDUADDR),Y ; Store it STA (VDUADDR),Y ; Store in main
PRCHR7 >>> WRTAUX >>> WRTAUX
PRCHR8 PLA BRA PRCHR7
PRCHR6 STA (VDUADDR),Y ; Store in aux
PRCHR7 PLA
BIT VDUSCREEN BIT VDUSCREEN
BPL GETCHROK BPL GETCHROK
JMP PRCHRSOFT ; Write character to graphics JMP PRCHRSOFT ; Write character to graphics