z80:Opcodes:LDDR

From Learn @ Cemetech
Jump to navigationJump to search

Repeats the instruction LDD (Does a LD (DE),(HL) and decrements each of DE, HL, and BC) until BC=0. Note that if BC=0 before the start of the routine, it will try loop around until BC=0 again.

Syntax

   LDDR

Effects

P/V is reset.

Uses

Copying over sections of data.

T-States

BC is not 0 21
BC equals 0 16

See Also

LD,LDD,LDI,LDIR