z80:Opcodes:CPL
From Learn @ Cemetech
Jump to navigationJump to searchCPL inverts all bits of A.
Contents
Syntax
cpl
Effects
Sets H and N, other flags are unmodified.
Uses
This instruction returns the same value as XORing A with $FF or subtracting A from $FF. Also, CPL \ INC A returns the same value that NEG does.
T-States
4 t-states
See Also