<< Previous | Next >>

OR r     Bitwise OR     Rabbit 4000/5000 Instruction

Opcode
Instruction
Operation
-- OR r A = A | r
7F B0 OR B A = A | B
7F B1 OR C A = A | C
7F B2 OR D A = A | D
7F B3 OR E A = A | E
7F B4 OR H A = A | H
7F B5 OR L A = A | L

8-Bit Access
16-Bit Unaligned
16-Bit Aligned
Rabbit 4000
4
n/a
n/a
Rabbit 5000
2
2
2

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 r (any of 8-bit registers B, C, D, E, H, L) and stores the result in A.

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

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

Example

If the value in A is 0100 1100 and the value in B is 0101 0001, the operation:


OR A,B

would result in A containing 0101 1101.


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