8051 Instruction Set Manual

MUL

The MUL instruction multiplies the unsigned 8-bit integer in the accumulator and the unsigned 8-bit integer in the B register producing a 16-bit product. The low-order byte of the product is returned in the accumulator. The high-order byte of the product is returned in the B register. The OV flag is set if the product is greater than 255 (0FFh), otherwise it is cleared. The carry flag is always cleared.

See Also: DIV

MUL AB
CACF0RS1RS0OV P
Bytes1
Cycles4
Encoding
10100100
Operation
MUL AB
BA = A * B
Example
MUL AB