eZ80
®
CPU
User Manual
UM007714-0908 CPU Instruction Set
247
MLT SP
Multiply Stack Pointer
Operation
SP[15:0] ← SP[15:8] x SP[7:0]
Description
The
MLT
SP
instruction performs an 8-bit by 8-bit multiply operation using the Stack
Pointer (
SP
). The
SP
Low byte is multiplied by the
SP
High byte. The 16-bit product is
written back into the
SP
register. This operation is an 8-bit by 8-bit operation with a 16-bit
result, regardless of the ADL mode. In ADL mode, or if the
.L
suffix is employed, the 24-
bit Stack Pointer Long (SPL) is used. In Z80 mode, or if the
.S
suffix is employed, the 16-
bit Stack Pointer Short (SPS) is used.
Condition Bits Affected
None.
Attributes
Mnemonic Operand ADL Mode Cycle Opcode (hex)
MLT SP X6ED 7C
MLT.L SP 0649 ED 7C
MLT.S SP 1652 ED 7C