sbc a,(hl)

Arithmetic // SBC (SuBtract with Carry, er, borrow)

0x9E - u158

Description

Subtracts (hl) and the carry flag from a.

T States Bytes
7 1

Condition Bits Affected

S affected as defined
Z affected as defined
H affected as defined
P/V detects overflow
N affected as defined
C affected as defined

source
{
  "flags": {
    "S": "affected as defined",
    "Z": "affected as defined",
    "H": "affected as defined",
    "P/V": "detects overflow",
    "N": "affected as defined",
    "C": "affected as defined"
  },
  "operation": "sbc a,(hl)",
  "opcode": "sbc",
  "operand": [
    "a",
    "(hl)"
  ],
  "code": "9E",
  "bytes": 1,
  "time": 7,
  "description": "Subtracts (hl) and the carry flag from a.",
  "category": "Arithmetic",
  "subCategory": "SBC (SuBtract with Carry, er, borrow)"
}