CPL

Operation

A <- !A

Mnemonic

CPL

Operands

None

b7b6b5b4b3b2b1b0
0 0 1 0 1 1 1 1$2F

Description

The contents of the Accumulator (Register A) are inverted (one’s complement).

Condition Bits Affected

Sis not affected.
Zis not affected.
His set.
P/Vis not affected.
Nis set.
Cis not affected.

Example

If the Accumulator contains 1011 0100, then upon the execution of

	CPL

the Accumulator contains 0100 1011.