Keil Logo Arm Logo

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
C AC F0 RS1 RS0 OV   P
Bytes 1
Cycles 4
Encoding
10100100
Operation
MUL AB
BA = A * B
Example
MUL AB

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.