Crossware

Table of Contents        Previous topic       Next topic       

MICROPROCESSOR INSTRUCTION REFERENCE->OR

OR     Logical Inclusive OR

Compatibility: 68000, 68010, 68020 and CPU32 families.


Destination 'OR' Source -> Destination


Assembler Syntax:OR <ea>,Dn
OR Dn,<ea>

Source <ea> - data
Destination <ea>  - alterable memory

Size:  Byte, Word or Long

Performs an inclusive-OR operation on the source operand and the destination operand and stores the result in the destination location.


Condition Codes:

N    Set if most significant bit of result is set, else cleared
Z    Set if result zero, else cleared
V    Always cleared
C    Always cleared
X    Not affected

    
Allowable Addressing Modes
    
<ea>,DnDn,<ea>
    
ORDn,Dn
OR(An),Dn ORDn,(An)
OR(An)+,DnORDn,(An)+
OR-(An),DnORDn,-(An)
OR(d16,An),DnORDn,(d16,An)
OR(d8,An,Xn),DnORDn,(d8,An,Xn)
OR(bd,An,Xn),Dn 2ORDn,(bd,An,Xn) 2
OR([bd,An,Xn],od),Dn 1ORDn,([bd,An,Xn],od) 1
OR([bd,An],Xn,od),Dn 1ORDn,([bd,An],Xn,od) 1
OR(xxx).W,DnORDn,(xxx).W
OR(xxx).L,DnORDn,(xxx).L
OR#(data),Dn
OR(d16,PC),Dn
OR(d8,PC,Xn),Dn
OR(bd,PC,Xn),Dn 2
OR([bd,PC,Xn],od),Dn 1
OR([bd,PC],Xn,od),Dn 1
1   68020 only
2   68020 and CPU32 only