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