OR (IX+d)
OR (IY+d)
Bitwise OR
Rabbit 2000/3000/4000 Instruction
|
|
DD B6 d
|
OR (IX+d)
|
|
A = A | (IX + d)
|
|
FD B6 d
|
OR (IY+d)
|
|
A = A | (IY + d)
|
Description
Performs a bitwise OR between A and the data whose address is
- the sum of the data in IX and the 8-bit signed displacement d, or
- the sum of the data in IY and the 8-bit signed displacement d.
The result is stored in A.
The Rabbit 4000 assembler views "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.