Skip to main content

MULTIPLY

Multiply the two operands and store the product in the left operand.

OpcodeBytesCyclesFormExample
$9D38MULTIPLY B:_, {S_BYTE}MULTIPLY B:1, 123
$9E39MULTIPLY P:_, {S_BYTE}MULTIPLY P:2, 123
$9F311MULTIPLY I:_, {S_BYTE}MULTIPLY I:4, 123
$A0311MULTIPLY I:_, B:_MULTIPLY I:4, B:8
$A1311MULTIPLY I:_, P:_MULTIPLY I:4, P:8
$A2311MULTIPLY I:_, I:_MULTIPLY I:4, I:8
Condition flagOutput
zero (ZF)If the product is zero, this flag is 1; otherwise it is 0.
negative (NF)If the signed product is a negative number, this flag is 1; otherwise it is 0.
overflow (OF)If the product exceeds the register's signed range, this flag is 1; otherwise it is 0.
carry (CF)This flag is always 0.