OR r

Operation

A <- A | r

Mnemonic

OR

Operands

r

b7b6b5b4b3b2b1b0
1 0 1 1 0 r

Description

A logical OR operation is performed between the contents of register r and the contents of the Accumulator. The result is stored in the Accumulator. The r symbol identifies the registers A, B, C, D, E, H, or L, assembled as follows in the object code:

RegisterrHex
A111$B7
B000$B0
C001$B1
D010$B2
E011$B3
H100$B4
L101$B5

Condition Bits Affected

Sis set if result is negative, otherwise it is reset.
Zis set if result is 0, otherwise it is reset.
His reset.
P/Vis reset if overflow, otherwise it is reset
Nis reset.
Cis reset.

Example

If Register H contains $48 (0100 1000) and the Accumulator contains $12 (0001 0010), then upon the execution of

	OR	H

the Accumulator contains $5A (0101 1010).