PIC Microcontroller Bit Math Method

Copy aligned bits from one register to another

Here is a fast way to save specific bits from one register into another.

       movf  Source, w
       xorwf Destination, w
       andlw B'xxxxxxxx'        ;  Replace "x" with "1" to Copy the Bit
       xorwf Destination