Disable interrupts around native 816 code.

This commit is contained in:
Bobbi Webber-Manners 2022-12-22 23:16:39 -05:00
parent 015b96a79a
commit cb74f75ad0
2 changed files with 4 additions and 1 deletions

Binary file not shown.

View File

@ -104,7 +104,9 @@ SHRCLREOL
* VDU16 (CLG) clears the whole SHR screen right now
SHRCLEAR CLC ; 816 native mode
SHRCLEAR PHP ; Disable interrupts
SEI
CLC ; 816 native mode
XCE
REP #$10 ; 16 bit index
MX %10 ; Tell Merlin
@ -118,6 +120,7 @@ SHRCLEAR CLC ; 816 native mode
MX %11 ; Tell Merlin
SEC ; Back to 6502 emu mode
XCE
PLP ; Normal service resumed
RTS