ex (sp),hl

Register and Data manipulation // EX (EXchange)

0xE3 - u227

Description

Exchanges (sp) with l, and (sp+1) with h.

T States Bytes
19 1

Condition Bits Affected

None.

source
{
  "flags": {
    "S": "unaffected",
    "Z": "unaffected",
    "H": "unaffected",
    "P/V": "unaffected",
    "N": "unaffected",
    "C": "unaffected"
  },
  "unaffected": true,
  "operation": "ex (sp),hl",
  "opcode": "ex",
  "operand": [
    "(sp)",
    "hl"
  ],
  "code": "E3",
  "bytes": 1,
  "time": 19,
  "description": "Exchanges (sp) with l, and (sp+1) with h.",
  "category": "Register and Data manipulation",
  "subCategory": "EX (EXchange)"
}