]> git.sur5r.net Git - cc65/blobdiff - libsrc/atari/rwcommon.s
DIO functions always set _oserror.
[cc65] / libsrc / atari / rwcommon.s
index e489634544c648c158b155701e02494e526797ed..349c7be019e2afa56efafedfa92ed06c3d93ff12 100644 (file)
@@ -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