Fixed return code bug in LOADFILE.

This commit is contained in:
Bobbi Webber-Manners 2021-08-24 12:52:58 -04:00
parent ca72fec379
commit 76eb70bbe9
2 changed files with 2 additions and 0 deletions

Binary file not shown.

View File

@ -489,6 +489,7 @@ LOADFILE >>> ENTMAIN
PHA
BRA :EXIT
:READERR LDA #$02 ; Read error
PHA
BRA :EOF2
:EOF LDA #$00 ; Success
:EOF2 LDA OPENPL+5 ; File ref num
@ -496,6 +497,7 @@ LOADFILE >>> ENTMAIN
JSR CLSFILE
:EXIT JSR UPDFB ; Update FILEBLK
JSR COPYFB ; Copy FILEBLK to auxmem
PLA ; Get return code back
>>> XF2AUX,OSFILERET
:BLOCKS DB $00