[Menu]>[Guide to use the PIC]


Instruction spec (2) of PIC16 series



Instruction set



BCFBit Clear f
Form [label]BCFf, b
( label is omitable, shows SPACE code )
Operands f : Register file addesss ( 00(00h) to 127(7Fh) )
b : Bit address ( 0 to 7 )
Operation It makes the specification bit of the contents of the f register 0.

(EX)
FlagNo change
Instruction
cycles
1 cycle




BSFBit Set f
Form [label]BSFf, b
( label is omitable, shows SPACE code )
Operands f : Register file addesss ( 00(00h) to 127(7Fh) )
b : Bit address ( 0 to 7 )
Operation It makes the specification bit of the contents of the f register 1.

(EX)
FlagNo change
Instruction
cycles
1 cycle




BTFSCBit Test f, Skip if Clear
Form [label]BTFSCf, b
( label is omitable, shows SPACE code )
Operands f : Register file addesss ( 00(00h) to 127(7Fh) )
b : Bit address ( 0 to 7 )
OperationIt checks the specification bit of the f register, and in case of 0, it changes the following instruction into the NOP and executes it. (It executes the instruction of the present address +2.)
FlagNo change
Instruction
cycles
1 cycle


BTFSSBit Test f, Skip if Set
Form [label]BTFSSf, b
( label is omitable, shows SPACE code )
Operands f : Register file addesss ( 00(00h) to 127(7Fh) )
b : Bit address ( 0 to 7 )
OperationIt checks the specification bit of the f register, and in case of 1, it changes the following instruction into the NOP and executes it. (It executes the instruction of the present address +2.)
FlagNo change
Instruction
cycles
1 cycle


Next instructions