cpd

Block Search // CPD (ComPare and Decrement)

0xEDA9 - u60841

Description

Compares the value of the memory location pointed to by hl with a. Then hl and bc are decremented.

T States Bytes
16 2

Condition Bits Affected

S affected as defined
Z affected as defined
H affected as defined
P/V exceptional
N set
C unaffected

source
{
  "flags": {
    "S": "affected as defined",
    "Z": "affected as defined",
    "H": "affected as defined",
    "P/V": "exceptional",
    "N": "set",
    "C": "unaffected"
  },
  "operation": "cpd",
  "opcode": "cpd",
  "operand": [],
  "code": "EDA9",
  "bytes": 2,
  "time": 16,
  "description": "Compares the value of the memory location pointed to by hl with a. Then hl and bc are decremented.",
  "category": "Block Search",
  "subCategory": "CPD (ComPare and Decrement)"
}