]> git.sur5r.net Git - cc65/blobdiff - libsrc/common/time.s
The spans do now contain the size of a span, no longer the end offset.
[cc65] / libsrc / common / time.s
index 9220b7f19edca000cf50112fed888f41c9e26c12..00171a82a2e624915046b6add0cf2db79736fa37 100644 (file)
 
 @L1:    ldy     sreg+1
         bpl     @L2
-
-        lda     #$00
-        sta     __errno+1
+                  
         lda     #ENOSYS         ; Function not implemented
-        sta     __errno
+        jsr     __seterrno      ; Set __errno
 
 ; Reload the low byte of the result and return