Datasheet
FS98O22
Rev. 1.6 136/146
BCF
Bit Clear f
Syntax BCF f, b
0 ≤ f ≤ FFh
0 ≤ b ≤ 7
Operation
[f<b>] ← 0
Flag Affected None
Description Bit b in [f] is reset to 0.
Cycle 1
Example:
BCF FLAG, 2
Before instruction:
FLAG = 8Dh
After instruction:
FLAG = 89h
BSF
Bit Set f
Syntax BSF f, b
0 ≤ f ≤ FFh
0 ≤ b ≤ 7
Operation
[f<b>] ← 1
Flag Affected None
Description Bit b in [f] is set to 1.
Cycle 1
Example:
BSF FLAG, 2
Before instruction:
FLAG = 89h
After instruction:
FLAG = 8Dh
BTFSC
Bit Test skip if Clear
Syntax BTFSC f, b
0 ≤ f ≤ FFh
0 ≤ b ≤ 7
Operation Skip if [f<b>] = 0
Flag Affected None
Description If bit ‘b’ in [f] is 0, the next fetched instruction is discarded and a NOP is executed
instead making it a two-cycle instruction.
Cycle 1, 2
Example:
Node BTFSC FLAG,
2
OP1 :
OP2 :
Before instruction:
PC = address (Node)
After instruction:
If FLAG<2> = 0
PC = address(OP2)
If FLAG<2> = 1
PC = address(OP1)
BTFSS
Bit Test skip if Set
Syntax BTFSS f, b
0 ≤ f ≤ FFh
0 ≤ b ≤ 7
Operation Skip if [f<b>] = 1
Flag Affected None
Description If bit ‘b’ in [f] is 1, the next fetched instruction is discarded and a NOP is executed
instead making it a two-cycle instruction.
Cycle 1, 2
Example:
Node BTFSS FLAG,
2
OP1 :
OP2 :
Before instruction:
PC = address (Node)
After instruction:
If FLAG<2> = 0
PC = address(OP1)
If FLAG<2> = 1
PC = address(OP2)
FORTUNE'
Properties
For Reference Only