]> git.sur5r.net Git - cc65/blobdiff - libsrc/runtime/lxor.s
no TGI_ERR_NO_MEM or TGI_ERR_NO_IOCB anymore: replaced by TGI_ERR_NO_RES
[cc65] / libsrc / runtime / lxor.s
index f772ebb899a13f09150813e9d1adf6fe64749f38..46086fbc4853c2135bf920293e67a994d8be4a8d 100644 (file)
@@ -4,11 +4,16 @@
 ; CC65 runtime: xor on longs
 ;
 
-       .export         tosxoreax
+       .export         tosxor0ax, tosxoreax
        .import         addysp1
        .importzp       sp, sreg, tmp1
 
-tosxoreax:
+tosxor0ax:
+        ldy     #$00
+        sty     sreg
+        sty     sreg+1
+
+tosxoreax:                         
                ldy     #0
                eor     (sp),y          ; byte 0
        sta     tmp1