Instruction Set
C500 Family
Semiconductor Group
4-62
1998-04-01
ORL
C, <src-bit>
Function:
Logical OR for bit variables
Description:
Set the carry flag if the Boolean value is a logic 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 P1.0
ORL
C,ACC.7
; OR carry with the accumulator bit 7
ORL
C,/OV
; OR carry with the inverse of OV
ORL
C,bit
Operation:
ORL
(C)
¬
(C)
Ú
(bit)
Bytes:
2
Cycles:
2
ORL
C,/bit
Operation:
ORL
(C)
¬
(C)
Ú
/
(bit)
Bytes:
2
Cycles:
2
Encoding:
0 1 1 1
0 0 1 0
bit address
Encoding:
1 0 1 0
0 0 0 0
bit address