Detailed reference for the BCF instruction in PIC18 ISA.
Clear the bit specified by b in the file register f. The bit is set to 0 and all other bits in the register remain unchanged. The file register may be located in the access bank or in a banked area; the instruction automatically selects the correct bank based on the register address.
; Clear RP0 bit (bit 5) of the STATUS register (access bank)
BCF STATUS,RP0 ; clear RP0 bit in STATUS register; Clear RP0 bit (bit 5) of the STATUS register (access bank)
BCF STATUS,RP0 ; clear RP0 bit in STATUS register; Clear bit 3 of the PORTA register (access bank)
BCF PORTA,3 ; clear bit 3 in PORTA; Clear bit 3 of the PORTA register (access bank)
BCF PORTA,3 ; clear bit 3 in PORTA; Clear bit 5 of a banked register located at address 0x70
BCF 0x70,5 ; clear bit 5 in register 0x70; Clear bit 5 of a banked register located at address 0x70
BCF 0x70,5 ; clear bit 5 in register 0x70; Clear bit 2 of a user‑defined variable `myVar` (in GPR)
BCF myVar,2 ; clear bit 2 in myVar; Clear bit 2 of a user‑defined variable `myVar` (in GPR)
BCF myVar,2 ; clear bit 2 in myVar; Clear bit 0 of the PORTB register (PORTB is an SFR in the access bank)
BCF PORTB,0 ; clear bit 0 in PORTB; Clear bit 0 of the PORTB register (PORTB is an SFR in the access bank)
BCF PORTB,0 ; clear bit 0 in PORTB