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.