Trap *CAT file (ie: not directory) as an error.

This commit is contained in:
Bobbi Webber-Manners 2021-09-02 21:31:18 -04:00
parent 60f6c45057
commit 0832187cf6
2 changed files with 6 additions and 1 deletions

Binary file not shown.

View File

@ -917,7 +917,12 @@ CATALOG >>> ENTMAIN
LDA MOSFILE ; Length of pathname
BEQ :NOPATH ; If zero use prefix
JSR PREPATH ; Preprocess pathname
LDA #<MOSFILE
JSR EXISTS ; See if path exists ...
CMP #$01 ; ... and is a file
BNE :NOTFILE
LDA #$46 ; Not found (TO DO: err code?)
BRA CATEXIT
:NOTFILE LDA #<MOSFILE
STA OPENPL+1
LDA #>MOSFILE
STA OPENPL+2