2 ; Ullrich von Bassewitz, 27.09.1998
4 ; CC65 runtime: modulo operation for long unsigned ints
7 .export tosumod0ax, tosumodeax
9 .importzp sreg, tmp3, tmp4, ptr2
17 jsr getlop ; Get the paramameters
18 jsr udiv32 ; Do the division
19 lda tmp3 ; Remainder is in ptr2:tmp3:tmp4