English
Language : 

SAB80515 Datasheet, PDF (189/270 Pages) Siemens Semiconductor Group – 8-Bit Single-Chip Microcontroller Family
Instruction Set
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
ORL
ORL
C,P1.0
C,ACC.7
C,/OV
; Load carry with input pin P1.0
; OR carry with the accumulator bit 7
; OR carry with the inverse of OV
ORL
C,bit
Operation:
ORL
(C) ← (C) ∨ (bit)
Encoding:
Bytes:
Cycles:
0111 0010
2
2
ORL
C,/bit
Operation:
ORL
(C) ← (C) ∨ ¬ (bit)
bit address
Encoding:
Bytes:
Cycles:
1010 0000
2
2
bit address
Semiconductor Group
189