MUL
MUL (Multiplication) operator:
Name of the instruction
The "MUL" (Multiplication) operator is used in programming languages to multiply two register or to multiply a value to a specified destination.
Definition of the instruction
Syntax
Where :
RX: Represents the destination register where the product of RX and Y will be moved.
Y: Represents the source register or immediate value that will be multiplied to the destination register.
Usage
Multiplication of Register Values:
Detail: This example illustrates the multiplication of the values stored in registers R1 and R2. The product is stored in register R1.
Multiplication with Immediate Value:
Detail: Here, the contents of register R3 are multiplied by the immediate value 8. The result is stored back in register R3.
Last updated