ADDC3
Add Integer With Carry, 3-Operand
13-50
Example 1
ADDC3
*AR5++(IR0),R5,R2
or
ADDC3
R5,*AR5++(IR0),R2
Before Instruction
After Instruction
R2
00 0000 0000
R2
00 0000 0032
R5
00 0000 0066
R5
00 0000 0066
AR5
80 9908
AR5
80 9918
IR0
10
IR0
10
LUF
0
LUF
0
LV
0
LV
0
UF
0
UF
0
N
0
N
0
Z
0
Z
0
V
0
V
0
C
1
C
1
Data memory
809908
0FFFFFFCB
809908
0FFFFFFCB
–53
102
–53
102
50
Example 2
ADDC3
R2, R7, R0
Before Instruction
After Instruction
R0
00 0000 0000
R0
00 0000 123F
R2
00 0000 02BC
R2
00 0000 02BC
R7
00 0000 0F82
R7
00 0000 0F82
LUF
0
LUF
0
LV
0
LV
0
UF
0
UF
0
N
0
N
0
Z
0
Z
0
V
0
V
0
C
1
C
0
700
700
3970
3970
4671
Note:
Cycle Count
See Section 8.5.2,
Data Loads and Stores, on page 8-24 for the effects of
operand ordering on the cycle count.