]> git.sur5r.net Git - cc65/commitdiff
Call __seterrno instead of assigning to _errno and save a few bytes.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 3 Jun 2010 21:26:52 +0000 (21:26 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 3 Jun 2010 21:26:52 +0000 (21:26 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@4701 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/common/signal.s

index 5d2b7ebc1bcf15be8687bf8332b4e884f8fd2e7b..9327ca89c33f55d820d5192a85c06d71279d1141 100644 (file)
@@ -61,9 +61,7 @@ __sig_ign:
 
 invalidsig:
         lda     #<EINVAL
-        sta     __errno
-        lda     #>EINVAL        ; A = 0
-        sta     __errno+1
+        jsr     __seterrno      ; Returns 0 in A
         tax                     ; A/X = 0
 __sig_dfl:
         rts