<< Previous | Next >>

OR A     Bitwise OR     Rabbit 2000/3000/4000/5000 Instruction

Opcode
Instruction
Operation
B7 OR A A = A | A

8-Bit Access
16-Bit Unaligned
16-Bit Aligned
Rabbit 2000/3000/4000
2
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 A. All of the flags are affected and A remains unchanged.

Example

The "OR A" operation results in the following:

If A = 0x7F, S=0; Z=0; L/V=1; C=0.
If A = 0x80, S=1; Z=0; L/V=1; C=0.
If A = 0x00, S=0; Z=1; L/V=0; C=0.


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