First page Back Continue Last page Overview Graphics
- MUL ;(no operands)
- multiplies the value in A by the value in B and puts the result in D.
- IDIV ;(no operands)
- divides the value in D by the value in X and puts the quotient in X and the remainder in D.
The multiply is an unsigned operation. Since the result of a multiplication can be larger than the numbers multiplied, the result of the 8-bit multiplication is placed in a 16-bit register. Note that values in A and B will be overwritten by the multiply instruction.
In the case of a divide by zero the quotient is set to FFFF and the remainder is indeterminate.