Load TREG and Store PREG in Accumulator
LTP
7-99
Assembly Language Instructions
Cycles for a Repeat (RPT) Execution of an LTP Instruction
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
Example 1 LTP 36 ;(DP = 6: addresses 0300h–037Fh,
;PM = 0: no shift of product)
Before Instruction After Instruction
Data Memory Data Memory
324h 62h 324h 62h
TREG 3h TREG 62h
PREG 0Fh PREG 0Fh
ACC X 5h ACC X 0Fh
CC
Example 2 LTP *,AR5 ;(PM = 0)
Before Instruction After Instruction
ARP 2 ARP 5
AR2 324h AR2 324h
Data Memory Data Memory
324h 62h 324h 62h
TREG 3h TREG 62h
PREG 0Fh PREG 0Fh
ACC X 5h ACC X 0Fh
CC