LDIR

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 is not 0 21
BC equals 0 16

See Also

LD,LDD,LDDR,LDI

Unless otherwise stated, the content of this page is licensed under GNU Free Documentation License.