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:
@@ -69,10 +69,8 @@
|
||||
|
||||
invmode:
|
||||
lda #EINVAL
|
||||
sta __errno
|
||||
lda #0
|
||||
sta __errno+1
|
||||
tax
|
||||
jsr __seterrno ; Set __errno, returns zero in A
|
||||
tax ; a/x = 0
|
||||
jmp incsp4
|
||||
|
||||
; Mode string successfully parsed. Store the binary mode onto the stack in
|
||||
|
||||
Reference in New Issue
Block a user