EasyManua.ls Logo

Atmel 8051 - Page 54

Atmel 8051
113 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
The 8051 Instruction Set
1-53 Atmel 8051 Microcontrollers Hardware Manual
4316B–8051–02/04
Function: Logical-OR for bit variables
Description: Set the carry flag if the Boolean value is a logical 1; leave the carry in its current state otherwise. A slash ( / )
preceding the operand in the assembly language indicates that the logical complement of the addressed bit is
used as the source value, but the source bit itself is not affected. No other flags are affected.
Example: Set the carry flag if and only if P1.0 = 1, ACC. 7 = 1, or OV = 0:
MOV C,P1.0 ;LOAD CARRY WITH INPUT PIN P10
ORL C,ACC.7 ;OR CARRY WITH THE ACC. BIT 7
ORL C,/OV ;OR CARRY WITH THE INVERSE OF OV.
ORL C,bit
Bytes: 2
Cycles: 2
Encoding: 01110010 bit address
Operation: ORL
(C) (C)
(bit)
ORL C,/bit
Bytes: 2
Cycles: 2
Encoding: 10100000 bit address
Operation: ORL
(C) (C)
(bit)

Related product manuals