Siemens C500 User Manual page 88

Microcontroller family
Table of Contents

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
4-62
Instruction Set
C500 Family
1998-04-01

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents