]> git.sur5r.net Git - cc65/commitdiff
Clear _oserror on success.
authorol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 7 Oct 2012 20:20:54 +0000 (20:20 +0000)
committerol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 7 Oct 2012 20:20:54 +0000 (20:20 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@5841 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/cbm/devicedir.s

index 93e1845c0be2ca3e4f79297d0ae561dd881cc900..c4cda7f0012de50811af99f0baa342f8eccab258 100644 (file)
@@ -86,7 +86,8 @@ errno:  jsr     __seterrno      ; Returns 0 in A
 ; Copy device string representation into buf
 
 okay:   lda     fnunit
-        jsr     devicestr
+        jsr     devicestr       ; Returns 0 in A
+        sta     __oserror       ; Clear _oserror
 
 ; Success, return buf