cpi

Block Search // CPI (ComPare and Increment)

0xEDA1 - u60833

Description

Compares the value of the memory location pointed to by hl with a. Then hl is incremented and bc is 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": "cpi",
  "opcode": "cpi",
  "operand": [],
  "code": "EDA1",
  "bytes": 2,
  "time": 16,
  "description": "Compares the value of the memory location pointed to by hl with a. Then hl is incremented and bc is decremented.",
  "category": "Block Search",
  "subCategory": "CPI (ComPare and Increment)"
}