mirror of
https://github.com/a2-4am/a2fc.system.git
synced 2024-09-29 18:56:58 +00:00
combine error conditions for open and read
This commit is contained in:
parent
c644c8b0c7
commit
bc30b62afd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user