English
Language : 

SAB80515 Datasheet, PDF (152/270 Pages) Siemens Semiconductor Group – 8-Bit Single-Chip Microcontroller Family
Instruction Set
CPL
bit
Function:
Complement bit
Description:
The bit variable specified is complemented. A bit which had been a one is changed
to zero and vice versa. No other flags are affected. CPL can operate on the carry or
any directly addressable bit.
Example:
Note:
When this instruction is used to modify an output pin, the value used as the original
data will be read from the output data latch, not the input pin.
Port 1 has previously been written with 5DH (01011101B). The instruction sequence
CPL
CPL
P1.1
P1.2
will leave the port set to 5BH (01011011B).
CPL
C
Operation:
CPL
(C) ← ¬ (C)
Encoding:
Bytes:
Cycles:
1011 0011
1
1
CPL
bit
Operation:
CPL
(bit) ← ¬ (bit)
Encoding:
Bytes:
Cycles:
1011 0010
2
1
bit address
Semiconductor Group
152