Siemens C500 User Manual page 77

Microcontroller family
Table of Contents

Advertisement

MOV
<dest-bit>, <src-bit>
Function:
Move bit data
Description:
The Boolean variable indicated by the second operand is copied into the location
specified by the first operand. One of the operands must be the carry flag; the other
may be any directly addressable bit. No other register or flag is affected.
Example:
The carry flag is originally set. The data present at input port 3 is 11000101 B . The
data previously written to output port 1 is 35 H (00110101 B ).
MOV
MOV
MOV
will leave the carry cleared and change port 1 to 39 H (00111001 B ).
MOV
C,bit
Operation:
MOV
(C) ¬ (bit)
Encoding:
1 0 1 0
Bytes:
2
Cycles:
1
MOV
bit,C
Operation:
MOV
(bit) ¬ (C)
Encoding:
1 0 0 1
Bytes:
2
Cycles:
2
Semiconductor Group
P1.3,C
C,P3.3
P1.2,C
0 0 1 0
0 0 1 0
bit address
bit address
4-51
Instruction Set
C500 Family
1998-04-01

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents