mul
multiply
Code: F6
Description: Multiply Areg by Breg, with checking for overflow but no carry.
Definition:
Areg′ ← low_word (prod)
if (prod > MostPos)
{
if (Status′underflo w ≠ set )
Status′overflow ← set
}
else if (prod < MostNeg)
{
if (Status′overflow ≠ set )
Status′underflo w ← set
}
Breg′ ← Creg
Creg′ ← Areg
where
prod = Areg × Breg
– the value of prod is calculated to unlimited precision
Status Register:
Overflow or underflow bit may be set.
Comments:
Secondary instruction.
See also: add mac
section 4.4.
128/205
®