Merge pull request #58 from peterferrie/master

swap in ProDOS before creating RAM file
This commit is contained in:
4am 2018-08-09 15:34:40 -04:00 committed by GitHub
commit fe8d073c99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -501,6 +501,7 @@ CreateRAMFile
;no, create a new one ;no, create a new one
jsr SwapProDOS
lda OnlineReturn lda OnlineReturn
tay tay
clc clc
@ -546,7 +547,7 @@ CreateRAMFile
php php
jsr SaveGlobal jsr SaveGlobal
plp plp
bcc .done bcc .restore
lda gRAMDiskRef lda gRAMDiskRef
jsr CloseFile jsr CloseFile
@ -561,6 +562,13 @@ CreateRAMFile
ldx #FALSE ldx #FALSE
stx gUsingRAMDisk stx gUsingRAMDisk
.restore
php
pha
jsr SwapProDOS
pla
plp
.done .done
rts rts