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:
@@ -52,11 +52,9 @@
|
||||
|
||||
@L1: ldy sreg+1
|
||||
bpl @L2
|
||||
|
||||
lda #$00
|
||||
sta __errno+1
|
||||
|
||||
lda #ENOSYS ; Function not implemented
|
||||
sta __errno
|
||||
jsr __seterrno ; Set __errno
|
||||
|
||||
; Reload the low byte of the result and return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user