sbc hl,sp

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

0xED72 - u60786

Description

Subtracts hl and the carry flag from hl.

T States Bytes
15 2

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 hl,sp",
  "opcode": "sbc",
  "operand": [
    "hl",
    "sp"
  ],
  "code": "ED72",
  "bytes": 2,
  "time": 15,
  "description": "Subtracts hl and the carry flag from hl.",
  "category": "Arithmetic",
  "subCategory": "SBC (SuBtract with Carry, er, borrow)"
}