]> git.sur5r.net Git - cc65/blobdiff - libsrc/atari/do_oserr.s
Add "joystick mouse" driver and default mouse callback routine (not
[cc65] / libsrc / atari / do_oserr.s
index 6744b005898c25a855b04d3e4e6938b8609bbe92..eb19dd9d10cd706a6eac3845f6d0f16719dee5eb 100644 (file)
@@ -1,15 +1,12 @@
 ;
-; this routine updates errno.  do a JMP here right after calling
-; CIOV.         we expect status in Y.
-; __retminus is a routine with returns AX with $FFFF
+; __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.
 ;
-       .include "errno.inc"
+        .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