mirror of
https://github.com/a2-4am/passport.git
synced 2024-12-22 19:30:50 +00:00
Merge pull request #58 from peterferrie/master
swap in ProDOS before creating RAM file
This commit is contained in:
commit
fe8d073c99
10
src/mli.a
10
src/mli.a
@ -501,6 +501,7 @@ CreateRAMFile
|
||||
|
||||
;no, create a new one
|
||||
|
||||
jsr SwapProDOS
|
||||
lda OnlineReturn
|
||||
tay
|
||||
clc
|
||||
@ -546,7 +547,7 @@ CreateRAMFile
|
||||
php
|
||||
jsr SaveGlobal
|
||||
plp
|
||||
bcc .done
|
||||
bcc .restore
|
||||
|
||||
lda gRAMDiskRef
|
||||
jsr CloseFile
|
||||
@ -561,6 +562,13 @@ CreateRAMFile
|
||||
ldx #FALSE
|
||||
stx gUsingRAMDisk
|
||||
|
||||
.restore
|
||||
php
|
||||
pha
|
||||
jsr SwapProDOS
|
||||
pla
|
||||
plp
|
||||
|
||||
.done
|
||||
rts
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user