Make use of the new common __directerrno and __mappederrno function.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4720 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
ol.sc
2010-06-15 20:38:05 +00:00
parent 8806c31e4a
commit 155c5629a9
9 changed files with 21 additions and 44 deletions

View File

@@ -6,7 +6,6 @@
.export _write
.import rwprolog, rwcommon, rwepilog
.import errnoexit, oserrexit
.import COUT
.include "zeropage.inc"
@@ -106,9 +105,9 @@ done: jmp rwepilog
; Load errno code
einval: lda #EINVAL
; Return errno
errno: jmp errnoexit
; Set __errno
errno: jmp __directerrno
; Return oserror
oserr: jmp oserrexit
; Set __oserror
oserr: jmp __mappederrno