sbc hl,bc

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

0xED42 - u60738

Description

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