Download Print this page

Siemens SAB 80515 Series User Manual page 189

8-bit single-chip microcontroller family

Advertisement

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
ORL
C,bit
Operation:
ORL
(C) ← (C) ∨ (bit)
Encoding:
0 1 1 1
Bytes:
2
Cycles:
2
ORL
C,/bit
Operation:
ORL
(C) ← (C) ∨ ¬ (bit)
Encoding:
1 0 1 0
Bytes:
2
Cycles:
2
Semiconductor Group
C,P1.0
; Load carry with input pin P1.0
C,ACC.7
; OR carry with the accumulator bit 7
C,/OV
; OR carry with the inverse of OV
0 0 1 0
0 0 0 0
bit address
*
bit address
189
Instruction Set

Advertisement

loading

This manual is also suitable for:

Sab 80c515Sab 80c535Sab 80535Sab 80515k