combine error conditions for open and read

This commit is contained in:
4am 2018-01-08 10:51:53 -05:00
parent c644c8b0c7
commit bc30b62afd

View File

@ -59,9 +59,8 @@ CodeStart
Open
!byte kMLIOpen ; stack-based params for Open MLI call
!word mliParamForOpen
bcs Quit ; file not found or other error? quit immediately
jsr Read1 ; read first half of graphic (belongs in auxmem)
bcs Close ; read error? close & quit
bcs Close ; error during open or read? close & quit
;DHGRCopy
sta $C00A
sta $C000