1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-28 06:30:16 +00:00

Better stick to the "high level" errno helpers as done everywhere else.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5845 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
ol.sc 2012-10-10 20:51:10 +00:00
parent 300817702f
commit 3ca0ddb1b0

View File

@ -75,12 +75,13 @@ close: pha
bcs okay ; Buf >= 3
erange: lda #<ERANGE
bne errno ; Branch always
jsr __directerrno
bne fail ; Branch always
oserr: jsr __osmaperrno
oserr: jsr __mappederrno
errno: jsr __seterrno ; Returns 0 in A
tax ; Return NULL
fail: lda #0 ; Return NULL
tax
rts
; Copy device string representation into buf