ldir

Block Copy // LDIR (LoaD and Increment Repeated)

0xEDB0 - u60848

Description

Transfers a byte of data from the memory location pointed to by hl to the memory location pointed to by de. Then hl and de are incremented and bc is 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": "ldir",
  "opcode": "ldir",
  "operand": [],
  "code": "EDB0",
  "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 and de are incremented and bc is decremented. If bc is not zero, this operation is repeated. Interrupts can trigger while this instruction is processing.",
  "category": "Block Copy",
  "subCategory": "LDIR (LoaD and Increment Repeated)"
}