# routine to destructively divide array representation of a bignum by
# remainder = dodiv(top,bottom)
# where *bottom is the address of the biggning of the array, *top is
# r1 & r2 = 64bit temporary
clrl r0 #no carry to begin.
movl 8(ap),r3 #get pointer to array.
loop: emul $0x40000000,r0,(r3),r1
ediv $1000000000,r1,(r3),r0