BSF
Bit Set F
Bit ‘b’ in register ‘f’ is set.
[the_ad id="3059"]
Syntax:
[ label ] BSF f,b
Operation:
1 → (f<b>)
Operands:
- 0 ≤ f ≤ 127
- 0 ≤ b ≤ 7
Status Affected: None
Example:
BCF REG,0
Before instruction:
REG = 0xF0
After instruction:
REG = 0xF1
[the_ad id="3059"]
Example:
BCF REG,2
Before instruction:
REG = b'11110000'
After instruction:
W = b'11110100'