You are here : assembly8051MUL

MUL - 8051

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.


Syntax

MUL AB


Example

MUL AB		;1 byte 4 cycles


Output / Return Value


Limitations


Alternatives / See Also


Reference