
UM008007-0715 Z80 Instruction Description
Z80 CPU
User Manual
173
CPL
Operation
A ← A
Op Code
CPL
Operands
None.
Description
The contents of the Accumulator (Register A) are inverted (one’s complement).
Condition Bits Affected
S is not affected.
Z is not affected.
H is set.
P/V is not affected.
N is set.
C is not affected.
Example
If the Accumulator contains 1011 0100, then upon the execution of a CPL instruction, the
Accumulator contains
0100 1011.
M Cycles T States 4 MHz E.T.
141.00
Kommentare zu diesen Handbüchern