<< Previous | Next >>

OR (IX+d)
OR (IY+d)
    Bitwise OR
    Rabbit 2000/3000/4000/5000 Instruction

Opcode
Instruction
Operation
DD B6 d OR (IX+d) A = A | (IX + d)
FD B6 d OR (IY+d) A = A | (IY + d)

8-Bit Access
16-Bit Unaligned
16-Bit Aligned
Rabbit 2000/3000/4000
9
n/a
n/a
Rabbit 5000
10
9
8

Flags ALTD IOI/IOE
S
Z
L/V
C
F
R
SP
S
D
·
·
L
0
·
·
·

Description

Performs a bitwise OR between A and the data whose address is

The result is stored in A.

The Rabbit 4000/5000 assemblers view "OR A,(IX+d)" and "OR (IX+d)" as equivalent instructions. The same is true for "OR A,(IX+d)" and "OR (IX+d)."

Example

If the byte in A is 0100 1100 and the byte in the memory location pointed to by IX+d is 1110 0101, the operation:


OR (IX+d)

would result in A containing 1110 1101.


Rabbit Instructions << Previous | Next >> rabbit.com