SAM47 INSTRUCTION SET KS57C2308/P2308/C2316/P2316
5-12
Table 5-14. Bit Manipulation Instructions — High-Level Summary
Name Operand Operation Description Bytes Cycles
BTST CTest specified bit and skip if carry flag is set 11 + S
DA.b Test specified bit and skip if memory bit is set
mema.b
memb.@L
@H+DA.b
BTSF DA.b Test specified memory bit and skip if bit equals "0"
mema.b 22 + S
memb.@L
@H+DA.b
BTSTZ mema.b Test specified bit; skip and clear if memory bit is set
memb.@L
@H+DA.b
BITS DA.b Set specified memory bit
mema.b
memb.@L
@H+DA.b
BITR DA.b Clear specified memory bit to logic zero
mema.b
memb.@L
@H+DA.b
BAND C,mema.b Logical-AND carry flag with specified memory bit
C,memb.@L
C,@H+DA.b 2 2
BOR C,mema.b Logical-OR carry with specified memory bit
C,memb.@L
C,@H+DA.b
BXOR C,mema.b Exclusive-OR carry with specified memory bit
C,memb.@L
C,@H+DA.b
LDB mema.b,C Load carry bit to a specified memory bit
memb.@L,C Load carry bit to a specified indirect memory bit
@H+DA.b,C
C,mema.b Load specified memory bit to carry bit
C,memb.@L Load specified indirect memory bit to carry bit
C,@H+DA.b