mirror of
https://github.com/bobbimanners/Applecorn.git
synced 2025-01-08 08:30:01 +00:00
Trap *CAT file (ie: not directory) as an error.
This commit is contained in:
parent
60f6c45057
commit
0832187cf6
BIN
applecorn.po
BIN
applecorn.po
Binary file not shown.
@ -917,7 +917,12 @@ CATALOG >>> ENTMAIN
|
|||||||
LDA MOSFILE ; Length of pathname
|
LDA MOSFILE ; Length of pathname
|
||||||
BEQ :NOPATH ; If zero use prefix
|
BEQ :NOPATH ; If zero use prefix
|
||||||
JSR PREPATH ; Preprocess pathname
|
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
|
STA OPENPL+1
|
||||||
LDA #>MOSFILE
|
LDA #>MOSFILE
|
||||||
STA OPENPL+2
|
STA OPENPL+2
|
||||||
|
Loading…
Reference in New Issue
Block a user