<< Previous | Next >>

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

> Opcode | Instruction | Clocks | Operation
> DD B6 d | OR (IX+d) | 9 (2,2,2,1,2) | A = A | (IX + d)
> FD B6 d | OR (IY+d) | 9 (2,2,2,1,2) | A = A | (IY + d)

> 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 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.

<< Previous | Next >>