ldiv(hidividend, lodividend, divisor)
lrem(hidividend, lodividend, divisor)
concatenation of the signed
The 16-bit signed quotient is returned by
and the 16-bit signed remainder is returned by
Divide check and erroneous results
unless the magnitude of the
divisor is greater than that of the high-order
An integer division of an unsigned
dividend by a signed divisor may
quo = ldiv(0, dividend, divisor);
and similarly for the remainder operation.
Often both the quotient and the remainder are wanted.
leaves a remainder in the external cell