]> git.sur5r.net Git - cc65/blobdiff - libsrc/atari/do_oserr.s
The spans do now contain the size of a span, no longer the end offset.
[cc65] / libsrc / atari / do_oserr.s
index 7782ac868e09212bb80b622d9784a0354d82ffe9..534ba2e78c62374f113214999a5d40c1433e14bf 100644 (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