]> git.sur5r.net Git - cc65/commitdiff
Better stick to the "high level" errno helpers as done everywhere else.
authorol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 10 Oct 2012 20:51:10 +0000 (20:51 +0000)
committerol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 10 Oct 2012 20:51:10 +0000 (20:51 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@5845 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/cbm/devicedir.s

index c4cda7f0012de50811af99f0baa342f8eccab258..bb38345799d84ccee9b83b4ca87e9e12044befd3 100644 (file)
@@ -75,12 +75,13 @@ close:  pha
         bcs     okay            ; Buf >= 3
 
 erange: lda     #<ERANGE
-        bne     errno           ; Branch always
+        jsr     __directerrno
+        bne     fail            ; Branch always
 
-oserr:  jsr     __osmaperrno
+oserr:  jsr     __mappederrno
 
-errno:  jsr     __seterrno      ; Returns 0 in A
-        tax                     ; Return NULL
+fail:   lda     #0              ; Return NULL
+        tax
         rts
 
 ; Copy device string representation into buf