Operation:
Source V Destination -->; Destination
Compatibility: 68000 Family
Assembler Syntax:
OR <ea>, Dn
OR Dn, <ea>
Attributes: Size = (Byte, Word, Long)
Description: Performs an inclusive-OR operation of the
source operand with the destination operand and stores
the result in the destination location. The size of the oper-
ation can be specified as byte, word, or long. The contents
of an address register may not be used as an operand.
Condition Codes:
\c32200
X Not affected.
N Set if the most significant bit of the result is set.
Cleared otherwise.
Z Set if the result is zero. Cleared otherwise.
V Always cleared.
C Always cleared.
Instruction Format:
\i1+---3Reg,3Opmode,u6Effective Address,3Mode,3Reg,
Instruction Fields:
Register field -- Specifies any of the eight data registers.
Opmode field:
Byte\b
\bWord\b
\bLong\b
\bOperation
000
001
010
<ea>V<Dn>-->;<Dn>
100
101
110
<Dn>V<ea>-->;<Dn>
Effective Address field -- Determines the addressing mode.
a. If the location specified is a source operand, only
data addresssing modes are allowed as shown:
\mBFF
b. If the location specified is a destination operand,
only memory alterable addressing modes
are allowed as shown:
\m3F8
Notes:
1. The Dn mode is used when the destination is a data register;
the destination <ea> mode is invalid for a data register.
2. The assembler automatically converts OR to ORI when
the source is immediate data.
Related Instructions:
ORI,472
ORI to CCR,473
.470472