beautypg.com

Addc – Texas Instruments TMS320C2XX User Manual

Page 181

background image

ADDC

Add to Accumulator With Carry

7-28

Cycles for a Repeat (RPT) Execution of an ADDC 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

ADDC

DAT300

;(DP = 6: addresses 0300h–037Fh;

;DAT300 is a label for 300h)

Before Instruction

After Instruction

Data Memory

Data Memory

300h

04h

300h

04h

ACC

1

13h

ACC

0

18h

C

C

Example 2

ADDC

*–,AR4

;(OVM = 0)

Before Instruction

After Instruction

ARP

0

ARP

4

AR0

300h

AR0

299h

Data Memory

Data Memory

300h

0h

300h

0h

ACC

1

0FFFFFFFFh

ACC

1

0h

C

C

X

0

OV

OV