cpl

Arithmetic // CPL (ComPLement)

0x2F - u47

Description

The contents of a are inverted (one's complement).

T States Bytes
4 1

Condition Bits Affected

S unaffected
Z unaffected
H set
P/V unaffected
N set
C unaffected

source
{
  "flags": {
    "S": "unaffected",
    "Z": "unaffected",
    "H": "set",
    "P/V": "unaffected",
    "N": "set",
    "C": "unaffected"
  },
  "operation": "cpl",
  "opcode": "cpl",
  "operand": [],
  "code": "2F",
  "bytes": 1,
  "time": 4,
  "description": "The contents of a are inverted (one's complement).",
  "category": "Arithmetic",
  "subCategory": "CPL (ComPLement)"
}