]> git.sur5r.net Git - cc65/blobdiff - libsrc/runtime/land.s
no TGI_ERR_NO_MEM or TGI_ERR_NO_IOCB anymore: replaced by TGI_ERR_NO_RES
[cc65] / libsrc / runtime / land.s
index 1ee2a296dd816851f19eb8550801c2383ee96add..1e66039e2af25b14ac73a865921acaa04ca6adca 100644 (file)
@@ -4,10 +4,16 @@
 ; CC65 runtime: and on longs
 ;
 
-       .export         tosandeax
+       .export         tosand0ax, tosandeax
        .import         addysp1
        .importzp       sp, sreg, tmp1
 
+                                   
+tosand0ax:
+        ldy     #$00
+        sty     sreg
+        sty     sreg+1
+
 tosandeax:
                ldy     #0
                and     (sp),y          ; byte 0