z80:Opcodes:LDIR

From Learn @ Cemetech
Revision as of 22:10, 5 February 2016 by Maintenance script (talk | contribs) (Initial automated import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Repeats LDI (LD (DE),(HL), then increments DE, HL, and decrements BC) until BC=0. Note that if BC=0 before this instruction is called, it will loop around until BC=0 again.

Syntax

   LDIR

Effects

P/V is reset.

Uses

Copying sections of data.

T-States

BC == 0 21
BC != 0 16

See Also

LD,LDD,LDDR,LDI