BCF

Bit Clear F

Bit ‘b’ in register ‘f’ is cleared.

[the_ad id="3059"]

Syntax:

[ label ] BCF f,b

Operation:

0 → (f<b>)

Operands:

  • 0 ≤ f ≤ 127
  • 0 ≤ b ≤ 7

Status Affected: None

Example:

BCF REG,0

Before instruction:

REG = 0xF1

After instruction:

REG = 0xF0

[the_ad id="3059"]

Example:

BCF REG,2

Before instruction:

REG = b'11110100'

After instruction:

W = b'11110000'