; CLARITAS TIP u32/1 - mod_u32_u32.inc
; Public: UMOD32NZ

;
; Thin unsigned remainder adapter over accepted UDIV32NZ.
;
; Precondition:
;   divisor != 0
;
; Input:
;   $15-$18  unsigned 32-bit dividend
;   $5-$8    unsigned 32-bit divisor
;
; Output:
;   $15-$18  unsigned 32-bit remainder
;
; UDIV32NZ already computes the remainder in $10-$13.  This wrapper simply
; copies that result into the conventional primary result registers.
;
; No division-by-zero check is performed.

#LIST

UMOD32NZ:
        CAL     UDIV32NZ
        LDM     $15,$10,4
        RTN
