Computer Science, asked by pimpalgaonkarrs, 10 months ago

Compare mul and imul instructions with two points

Answers

Answered by LaughableOrc
0

Explanation:

The MUL instruction multiplies unsigned numbers. IMUL multiplies signed numbers. For both instructions, one factor must be in the accumulator register (AL for 8-bit numbers, AX for 16-bit numbers, EAX for 32-bit numbers). The other factor can be in any single register or memory operand. However, it cannot be an immediate value. The result overwrites the contents of the accumulator register. Multiplying two 8-bit numbers produces a 16-bit result returned in AX. Multiplying two 16-bit operands yields a 32-bit result in DX:AX.

The 80386/486 processor handles 64-bit products in the same way in the EDX:EAX pair.

Similar questions