mirror of
https://github.com/cc65/cc65.git
synced 2026-04-24 14:17:23 +00:00
Use a subroutine to set errno to save some space.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3032 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -31,11 +31,9 @@
|
||||
; File is not open
|
||||
|
||||
lda #EINVAL
|
||||
sta __errno
|
||||
ldx #0
|
||||
stx __errno+1
|
||||
dex
|
||||
txa
|
||||
jsr __seterrno
|
||||
lda #$FF ; Return -1
|
||||
tax
|
||||
rts
|
||||
|
||||
; File is open. Reset the flags and close the file.
|
||||
|
||||
Reference in New Issue
Block a user