<< Previous | Next >>

OR (HL)     Bitwise OR     Rabbit 4000 Instruction
Opcode
Instruction
Clocks
Operation

7F B6

OR (HL)

7 (2,2,2,2)

A = A | (HL)


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 assembler views "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.


<< Previous | Next >>