Status Register (ST0)
2-31Central Processing Unit
Table 2−9. Instructions That Affect the TC Bit
Instruction Affect on the TC bit
ABSTC ACC if( ACC < 0 ) TC = TC ^ 1
B 16bitOff,COND TC bit used as test condition
BF 16bitOff,COND TC bit used as test condition
CLRC TC TC = 0
CMPR 0/1/2/3 TC = 0
0: if(AR(ARP) == AR0) TC = 1
1: if(AR(ARP) < AR0) TC = 1
2: if(AR(ARP) > AR0) TC = 1
3: if(AR(ARP) != AR0) TC = 1
CSB ACC TC = N flag
MOV loc16,AX,COND TC bit used as test condition
MOVB loc16,#8bit,COND TC bit used as test condition
MOVL loc32,ACC,COND TC bit used as test condition
NEGTC ACC TC bit used as test condition
NORM ACC,XARn++/−−
NORM ACC,*ind
if(ACC |= 0)
TC = ACC(31) ^ ACC(30)
else
TC = 1
SB 8bitOff,COND
TC bit used as test condi-
tion
SBF 8bitOff,TC/NTC TC bit used as test condition
SETC TC TC = 1
TBIT loc16,#bit TC = [loc16(bit)]
TBIT loc16,T TC = [loc16(15−T)]
TCLR loc16,#bit TC = [loc16(bit)]
TSET loc16,#bit TC = [loc16(bit)]
XB pma,COND TC bit used as test condition
XCALL pma,COND TC bit used as test condition
XRETC COND TC bit used as test condition