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