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:
cuz
2004-05-13 21:09:08 +00:00
parent 7a9cabe279
commit 8f7b91eea6
9 changed files with 36 additions and 27 deletions

View File

@@ -38,10 +38,8 @@
; Error, no space left
@Error: lda #ENOSPC ; No space left
sta __errno
ldx #$00
stx __errno+1
dex ; Make return value -1
jsr __seterrno
ldx #$FF ; Return -1
txa
rts