ADDT
Add to Accumulator With Shift Specified by TREG
7-32
Cycles for a Repeat (RPT) Execution of an ADDT 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 ADDT 127 ;(DP = 4: addresses 0200h–027Fh,
;SXM = 0)
Before Instruction After Instruction
Data Memory Data Memory
027Fh 09h 027Fh 09h
TREG 0FF94h TREG 0FF94h
ACC X 0F715h ACC 0 0F7A5h
CC
Example 2 ADDT *–,AR4 ;(SXM = 0)
Before Instruction After Instruction
ARP 0 ARP 4
AR0 027Fh AR0 027Eh
Data Memory Data Memory
027Fh 09h 027Fh 09h
TREG 0FF94h TREG 0FF94h
ACC X 0F715h ACC 0 0F7A5h
CC