lddr

Block Copy // LDDR (LoaD and Decrement Repeated)

0xEDB8 - u60856

Description

Transfers a byte of data from the memory location pointed to by hl to the memory location pointed to by de. Then hl, de, and bc are decremented. If bc is not zero, this operation is repeated. Interrupts can trigger while this instruction is processing.

T States Bytes
21 2

Condition Bits Affected

S unaffected
Z unaffected
H reset
P/V reset
N reset
C unaffected

source
{
  "flags": {
    "S": "unaffected",
    "Z": "unaffected",
    "H": "reset",
    "P/V": "reset",
    "N": "reset",
    "C": "unaffected"
  },
  "operation": "lddr",
  "category": "Block Copy",
  "subcat": "LDDR (LoaD and Decrement Repeated)",
  "opcode": "lddr",
  "operand": [],
  "code": "EDB8",
  "bytes": 2,
  "time": 21,
  "description": "Transfers a byte of data from the memory location pointed to by hl to the memory location pointed to by de. Then hl, de, and bc are decremented. If bc is not zero, this operation is repeated. Interrupts can trigger while this instruction is processing.",
  "subCategory": "LDDR (LoaD and Decrement Repeated)"
}