adapt to new oserror/errno handling

git-svn-id: svn://svn.cc65.org/cc65/trunk@4732 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cpg
2010-07-06 22:43:19 +00:00
parent ae98a6db40
commit e673b53850
5 changed files with 20 additions and 25 deletions

View File

@@ -1,17 +1,12 @@
;
; __do_oserror updates __oserror. Do a JMP here right after calling
; CIOV. It will return with AX set to -1 ($FFFF). It expects the CIO
; __do_oserror updates __oserror and errno. Do a JMP here right after
; calling CIOV. It will return with AX set to -1 ($FFFF). It expects the CIO
; status in Y.
;
; __retminus is a routine whitch returns with AX set to -1 ($FFFF).
;
.include "errno.inc"
.export __do_oserror, __retminus
.export __do_oserror
__do_oserror:
sty __oserror ; save os dependent error code
__retminus:
lda #$FF
tax ; return -1
rts
tya
jmp __mappederrno