Texas Instruments TMS320C2XX Calculator User Manual


 
Add to Accumulator
ADD
7-25
Assembly Language Instructions
Cycles for a Single ADD 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 ADD 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 ADD Instruction (Using Short Immediate Addressing)
ROM
DARAM SARAM External
1 1 1 1+p
Cycles for a Single ADD Instruction (Using Long Immediate Addressing)
ROM
DARAM SARAM External
2 2 2 2+2p
Example 1 ADD 1,1 ;(DP = 6)
Before Instruction After Instruction
Data Memory Data Memory
301h 1h 301h 1h
ACC X 2h ACC 0 04h
CC
Example 2 ADD *+,0,AR0
Before Instruction After Instruction
ARP 4 ARP 0
AR4 0302h AR4 0303h
Data Memory Data Memory
302h 2h 302h 2h
ACC X 2h ACC 0 04h
CC
Cycles