Table 2−8. Bits Affected by the C Bit (Continued)
Instruction
NEGTC ACC
QMACL P,loc32,*XAR7/++
QMPYAL P,XT,loc32
QMPYSL P,XT,loc32
ROL
ACC
ROR
ACC
SAT
ACC
SAT64 ACC:P
SB
8bitOff,COND
SBBU ACC,loc16
SETC C
SFR
ACC,1..16
SFR
ACC,T
SQRA loc16
SQRS loc16
SUB
ACC,#16bit << shift
SUB
ACC,loc16 << shift
SUB
ACC,loc16 << T
SUB
AX,loc16
SUB
loc16,AX
SUBB ACC,#8bit
Status Register (ST0)
Affect of or Affect on C
if(TC == 1)
if( ACC == 0) C = 1
else C = 0
C = 1 on carry else C = 0
C = 1 on carry else C = 0
C = 0 on borrow else C = 1
C <− (ACC << 1) <− C(before)
C(before) −> (ACC >> 1) −> C
C = 0
C = 0
C bit used as test condition
ACC = ACC − ([loc16] + ~C)
C = 0 on borrow else C = 1
C = 1
C = ACC(bit(shift−1))
if(T == 0) C = 0
else C = ACC(bit(T−1))
C = 1 on carry else C = 0
C = 0 on borrow else C = 1
C = 0 on borrow else C = 1
if(shift == 16)
C = 0 on borrow
if(shift != 16)
C = 0 on borrow else C = 1
C = 0 on borrow else C = 1
C = 0 on borrow else C = 1
C = 0 on borrow else C = 1
C = 0 on borrow else C = 1
Central Processing Unit
2-29
Need help?
Do you have a question about the TMS320C28x and is the answer not in the manual?