in~.
MCS@-51PROGRAMMER’S GUIDE AND INSTRUCTION SET
ORL C,<src-bit>
Function:
Description:
Example:
ORL C,bit
Bytes:
Cycles:
Encoding:
Operation:
ORL C,/bit
Bytes:
Cycles:
Encoding:
Operation:
Logical-ORfor bit variables
*t the carry flagif the Booleanvalue is a logical 1; leave the carry in its current state
otherwise. A slash (“/”) precedingthe operandin the assemblylanguageindicatesthat the
logicalcomplementofthe addressedbit is usedas the sourcevalue,but the sourcebit itselfis
not at%cted.No other tlags are afkcted.
Setthe carry flag if and onlyifP1.O = 1,ACC. 7 = 1,or OV = O:
MOV CPI.O
;LOADCARRYWITH INPUT PIN P1O
ORL C,ACC.7 ;OR CARRYWITH THE ACC.BIT 7
ORL Wov ;OR CARRYWITHTHE INVERSEOF OV.
2
2
0111
IOO1OI EEl
2
.
I
1010
100001 EEEl
ORL
(c)+ (c) v
@=)
2-63