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
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