<< Previous | Next >>

OR r     Bitwise OR     Rabbit 4000 Instruction
Opcode
Instruction
Clocks
Operation
-- OR r
4 (2,2)
A = A | r

7F B0

OR B

4 (2,2)

A = A | B

7F B1

OR C

4 (2,2)

A = A | C

7F B2

OR D

4 (2,2)

A = A | D

7F B3

OR E

4 (2,2)

A = A | E

7F B4

OR H

4 (2,2)

A = A | H

7F B5

OR L

4 (2,2)

A = A | L


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


<< Previous | Next >>