<< Previous | Next >>

OR (HL)     Bitwise OR     Rabbit 4000/5000 Instruction

Opcode
Instruction
Operation
7F B6 OR (HL) A = A | (HL)

8-Bit Access
16-Bit Unaligned
16-Bit Aligned
Rabbit 4000
7
n/a
n/a
Rabbit 5000
5
5
5

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

Description

Performs a bitwise OR operation between A and the data whose address is in HL. The result is stored in A.

The Rabbit 4000/5000 assemblers view "OR A,(HL)" and "OR (HL)" as equivalent instructions.

The opcode for these instructions is different than the same instructions in the Rabbit 2000, 3000 and 3000A.

Example

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


OR (HL)

would result in A containing 1110 1101.


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