16 bit Assembly
Home Site Map Instruction Index
The IMUL instruction is used to Multiply AX by the second operand.
The result is placed in DX:AX for 16 bit, or in AH:AL for 8 bit.
This command has 2 parts, Instruction, then either a Register or a memory address for each operand.
Assembly Sample | Description | 16 bit Machine Code |
---|---|---|
IMUL BL | ; Multiplies AL by an 8 bit Register | F6 E8 |
IMUL BX | ; Multiplies AX by a 16 bit Register | F7 E8 |
IMUL [BX] | ; Multiplies AX by a memory address | F7 2F |
IMUL [BX+2] | ; Multiplies AX by a memory address | F7 6F 02 |