OR

 

OR        fr,#literal        OR literal into fr


Words:        2        Cycles:        2                Affects:        Z

 

Operation:        Literal is OR’d into fr via W. Z will be set to 1 if the result was 0, otherwise Z will be cleared to 0.

 

Coding:        MOVLW                literal

       IORWF                fr,1

 

 

OR        fr1,fr2        OR fr2 into fr1


Words:        2        Cycles:        2                Affects:        Z

 

Operation:        Fr2 is OR’d into fr1 via W. Z will be set to 1 if the result was 0, otherwise Z will be cleared to 0.

 

Coding:        MOVF                fr2,0

       IORWF                fr1,1

 

 

OR        fr,W                OR W into fr


Words:        1        Cycles:        1                Affects:        Z

 

Operation:        W is OR’d into fr. Z will be set to 1 if the result was 0, otherwise Z will be cleared to 0.

 

Coding:        IORWF                fr,1

 

 

OR        W,#literal        OR literal into W


Words:        1        Cycles:        1                Affects:        Z

 

Operation:        Literal is OR’d into W. Z will be set to 1 if the result was 0, otherwise Z will be cleared to 0.

 

Coding:        IORLW                literal

 

 

OR        W,fr                OR fr into W


Words:        1        Cycles:        1                Affects:        Z

 

Operation:        Fr is OR’d into W. Z will be set to 1 if the result  was 0, otherwise Z will be cleared to 0.

 

Coding:        IORWF                fr,0