Preserve OSLPTR when loading ROMs

This commit is contained in:
Bobbi Webber-Manners 2021-10-25 20:06:16 -04:00
parent 96b94ab03b
commit e03d1d2a04
2 changed files with 8 additions and 0 deletions

Binary file not shown.

View File

@ -346,8 +346,16 @@ ROMSELECT CPX $F4
STA OSFILECB+3
LDX #<OSFILECB
LDY #>OSFILECB
LDA OSLPTR+0 ; Preserve OSLPTR
PHA
LDA OSLPTR+1
PHA
LDA #$FF ; Means 'LOAD'
JSR OSFILE
PLA
STA OSLPTR+1
PLA
STA OSLPTR+0
PLY
PLX
PLA