SX 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.

        mov     W, Source
        xor     W, Destination
        and     W,	#%xxxxxxxx      ;Replace "x" with "1" to Copy the Bit
        xor     Destination, W