Math routines.

Summary
Math routines.
Functions
mulu8Multiply 2 unsigned bytes.
divu8Divide 2 unsigned bytes.
mulu16Multiply 2 unsigned words.

Functions

mulu8

Multiply 2 unsigned bytes.

Parameters

_alfirst operand.
_blsecond operand.

Return

_cx16 bits unsigned result.

divu8

Divide 2 unsigned bytes.

Parameters

_alDividend.
_blDivisor.

Return

_clResult (_al / _bl).
_dlRemainder (_al mod _bl).

mulu16

Multiply 2 unsigned words.

Parameters

_alfirst operand LSB.
_ahfirst operand MSB.
_blsecond operand LSB.
_bhsecond operand MSB.

Return _cx - result bytes 0 and 1.  _dx - result bytes 2 and 3.

Close