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 |
|
| OR | Dn,Dn | | |
| OR | (An),Dn | OR | Dn,(An) |
| OR | (An)+,Dn | OR | Dn,(An)+ |
| OR | -(An),Dn | OR | Dn,-(An) |
| OR | (d16,An),Dn | OR | Dn,(d16,An) |
| OR | (d8,An,Xn),Dn | OR | Dn,(d8,An,Xn) |
| OR | (bd,An,Xn),Dn 2 | OR | Dn,(bd,An,Xn) 2 |
| OR | ([bd,An,Xn],od),Dn 1 | OR | Dn,([bd,An,Xn],od) 1 |
| OR | ([bd,An],Xn,od),Dn 1 | OR | Dn,([bd,An],Xn,od) 1 |
| OR | (xxx).W,Dn | OR | Dn,(xxx).W |
| OR | (xxx).L,Dn | OR | Dn,(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