move __do_oserror and __inviocb into their own source files
git-svn-id: svn://svn.cc65.org/cc65/trunk@4487 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
.include "atari.inc"
|
||||
.include "errno.inc"
|
||||
.import popax
|
||||
.import __oserror
|
||||
.import fdtoiocb
|
||||
|
||||
.export __rwsetup
|
||||
@@ -42,23 +41,3 @@ iocberr:pla
|
||||
ldx #$FF ; indicate error + clear ZF
|
||||
rts
|
||||
|
||||
;
|
||||
; this routine updates errno. do a JMP here right after calling
|
||||
; CIOV. we expect status in Y.
|
||||
;
|
||||
.export __do_oserror,__inviocb
|
||||
__do_oserror:
|
||||
sty __oserror ; save os dependent error code
|
||||
retminus:
|
||||
lda #$FF
|
||||
tax ; return -1
|
||||
rts
|
||||
|
||||
;
|
||||
; sets EINVAL error code and returns -1
|
||||
;
|
||||
|
||||
__inviocb:
|
||||
lda #<EINVAL
|
||||
jsr __seterrno
|
||||
jmp retminus ; return -1
|
||||
|
||||
Reference in New Issue
Block a user