]> git.sur5r.net Git - cc65/blobdiff - libsrc/common/fopen.s
The spans do now contain the size of a span, no longer the end offset.
[cc65] / libsrc / common / fopen.s
index 791dfcff59b58bbfaad1a4f399295689aa023389..d4d94acee18d96780a08649e3bdf5bfec91b76ea 100644 (file)
@@ -36,9 +36,7 @@
 ; Failed to allocate a file stream
 
         lda     #EMFILE
-        sta     __errno
-        lda     #0
-        sta     __errno+1
+        jsr     __seterrno      ; Set __errno, will return 0 in A
         tax
         rts                     ; Return zero