44
The 68000's Instruction Set
Destination operand addressing modes
ORI to CCR Inclusive OR immediate to CCR
Operation: [CCR] ← <literal> + [CCR]
Syntax: ORI #<data>,CCR
Attributes: Size = byte
Description: OR the immediate data with the condition code register (i.e., the
least-significant byte of the status register). For example, the Z
flag of the CCR can be set by ORI #$04,CCR.
Condition codes: X N Z V C
* * * * *
X is set if bit 4 of data = 1; unchanged otherwise
N is set if bit 3 of data = 1; unchanged otherwise
Z is set if bit 2 of data = 1; unchanged otherwise
V is set if bit 1 of data = 1; unchanged otherwise
C is set if bit 0 of data = 1; unchanged otherwise
ORI to SR Inclusive OR immediate to status
register
Operation: IF [S] = 1
THEN
[SR]
← <literal> + [SR]
ELSE TRAP
Syntax: ORI #<data>,SR
Attributes: Size = word
Description: OR the immediate data to the status register and store the result
in the status register. All bits of the status register are affected.