]> git.sur5r.net Git - cc65/blobdiff - libsrc/runtime/lumod.s
Another small change in OptJumpTarget3.
[cc65] / libsrc / runtime / lumod.s
index 00f5e7353361fdd4b318250a4b7d09f946e290be..3128bc078afd2eb1ddd27f2f890a8ef5a28e7fd9 100644 (file)
@@ -4,10 +4,15 @@
 ; CC65 runtime: modulo operation for long unsigned ints
 ;
 
-               .export         tosumodeax
+               .export         tosumod0ax, tosumodeax
                .import         getlop, udiv32
                .importzp       sreg, tmp3, tmp4, ptr2
 
+tosumod0ax:                          
+        ldy     #$00
+        sty     sreg
+        sty     sreg+1
+
 tosumodeax:
        jsr     getlop          ; Get the paramameters
        jsr     udiv32          ; Do the division