4 ; Various routines of a division-related nature (MDW/TMA)
9 ;----- Overview -------------------------------------------------------------
16 [ :LNOT::DEF:divide__dfn
21 ; On entry: R0 == dividend
24 ; On exit: R0 == quotient
27 ; Use: A standard divide routine. Fairly speedy, hopefully.
28 ; The results are always such that
30 ; |quotient| <= |(divisor/dividend)|,
32 ; |remainder| < |divisor|
36 ; quotient * divisor + remainder == dividend
40 ; --- div_unsigned ---
42 ; On entry: R0 == dividend
45 ; On exit: R0 == quotient
48 ; Use: As for divide, except that it considers its operands to be
55 ;----- That's all, folks ----------------------------------------------------