mirror of
https://github.com/cc65/cc65.git
synced 2024-10-01 15:54:59 +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:
parent
300817702f
commit
3ca0ddb1b0
@ -75,12 +75,13 @@ close: pha
|
|||||||
bcs okay ; Buf >= 3
|
bcs okay ; Buf >= 3
|
||||||
|
|
||||||
erange: lda #<ERANGE
|
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
|
fail: lda #0 ; Return NULL
|
||||||
tax ; Return NULL
|
tax
|
||||||
rts
|
rts
|
||||||
|
|
||||||
; Copy device string representation into buf
|
; Copy device string representation into buf
|
||||||
|
Loading…
Reference in New Issue
Block a user