mirror of
https://github.com/cc65/cc65.git
synced 2025-01-13 09:31:53 +00:00
Call __seterrno and save a few bytes.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4702 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
ef4a2e667d
commit
a7f392a96f
@ -53,10 +53,8 @@ loop: inc ptr2
|
||||
|
||||
overflow:
|
||||
lda #<ERANGE
|
||||
sta __errno
|
||||
lda #>ERANGE
|
||||
sta __errno+1
|
||||
tax ; High byte of ERANGE is zero, return zero
|
||||
jsr __seterrno ; Returns 0 in A
|
||||
tax ; Return zero
|
||||
rts
|
||||
|
||||
; Success, return buf
|
||||
|
Loading…
x
Reference in New Issue
Block a user