]> git.sur5r.net Git - cc65/blobdiff - libsrc/runtime/lrsub.s
no TGI_ERR_NO_MEM or TGI_ERR_NO_IOCB anymore: replaced by TGI_ERR_NO_RES
[cc65] / libsrc / runtime / lrsub.s
index 607b7fed299c477a2c8ade9ccc46c6fda5212df4..7dfe43ac5a04d17187cc300b53884d727aee3699 100644 (file)
@@ -7,11 +7,16 @@
 ;
 ; EAX = EAX - TOS
 ;
-       .export         tosrsubeax
+       .export         tosrsub0ax, tosrsubeax
        .import         addysp1
        .importzp       sp, sreg, tmp1
 
-tosrsubeax:
+tosrsub0ax:
+        ldy     #$00
+        sty     sreg
+        sty     sreg+1
+
+tosrsubeax:                         
        ldy     #0
                sec
        sbc     (sp),y          ; byte 0