A-109
INSTRUCTION SET REFERENCE
Example: Set the CY flag if and only if P1.0 = 1, ACC. 7 = 1, or OV = 0:
MOV CY,P1.0 ;LOAD CARRY WITH INPUT PIN P10
ORL CY,ACC.7 ;OR CARRY WITH THE ACC. BIT 7
ORL CY,/OV ;OR CARRY WITH THE INVERSE OF OV.
Variations
ORL CY,bit51
Binary Mode Source Mode
Bytes: 22
States: 1† 1†
†If this instruction addresses a port (P
x
,
x
= 0–3), add 1 state.
Hex Code in: Binary Mode = [Encoding]
Source Mode = [Encoding]
Operation: ORL
(CY) (CY) V (bit51)
ORL CY,/bit51
Binary Mode Source Mode
Bytes: 22
States: 1† 1†
†If this instruction addresses a port (P
x
,
x
= 0–3), add 1 state.
Hex Code in: Binary Mode = [Encoding]
Source Mode = [Encoding]
Operation: ORL
(CY) (CY) V¬ (bit51)
ORL CY,bit
Binary Mode Source Mode
Bytes: 43
States: 3† 2†
†If this instruction addresses a port (P
x
,
x
= 0–3), add 1 state.
[Encoding]
Hex Code in: Binary Mode = [A5][Encoding]
Source Mode = [Encoding]
Operation: ORL
(CY) (CY) V (bit)
[Encoding] 0 1 1 1 0 0 1 0 bit addr
[Encoding] 1 0 1 0 0 0 0 0 bit addr
1 0 1 0 1 0 0 1 0 1 1 1 0 y y y direct addr