MOVB

 

MOVB         bit1,bit2        Move bit2 to bit1


Words:        4        Cycles:        4                Affects:        none

 

Operation:        Bit2 is moved to bit1.

 

Coding:        BTFSS        bit2

       BCF                bit1

       BTFSC        bit2

       BSF                bit1

 

Note:        The TechTools assemblers define a bit as port.bitposition, as in the following examples:

 

       RA.3 = bit 3 of port A        PortB.0 = bit 0 of port B

 

 

MOVB        bit1,/bit2        Move not bit2 to bit1


Words:        4        Cycles:        4                Affects:        none

 

Operation:        The complement of bit2 is moved to bit1.

 

Coding:        BTFSC        bit2

       BCF                bit1

       BTFSS        bit2

       BSF                bit1

 

Note:        The TechTools assemblers define a bit as port.bitposition, as in the following examples:

 

       RA.3 = bit 3 of port A        PortB.0 = bit 0 of port B