MPY
Multiply
7-114
Cycles for a Single MPY Instruction (Using Direct and Indirect Addressing)
Program
Operand ROM DARAM SARAM External
DARAM 1 1 1 1+p
SARAM 1 1 1, 2
†
1+p
External 1+d 1+d 1+d 2+d+p
†
If the operand and the code are in the same SARAM block
Cycles for a Repeat (RPT) Execution of an MPY Instruction (Using Direct
and Indirect Addressing)
Program
Operand ROM DARAM SARAM External
DARAM n n n n+p
SARAM n n n, n+1
†
n+p
External n+nd n+nd n+nd n+1+p+nd
†
If the operand and the code are in the same SARAM block
Cycles for a Single MPY Instruction (Using Short Immediate Addressing)
ROM
DARAM SARAM External
1 1 1 1+p
Example 1 MPY DAT13 ;(DP = 8)
Before Instruction After Instruction
Data Memory Data Memory
40Dh 7h 40Dh 7h
TREG 6h TREG 6h
PREG 36h PREG 2Ah
Cycles