A83: Re: ldir


[Prev][Next][Index][Thread]

A83: Re: ldir




> I don't understand the ldir command.
>
> load, increment, repeat.

".What this does is copies the byte hl points to, to the byte de points to,
and decrements bc.  Then it increments both de and hl and repeats this
process until bc=0 (remember at each pass it decrements bc)."

>From the ASM Guru.

In (even) more normal english: it copies 'bc' characters, where the starting
address of the first byte being read is in 'hl' and the starting address of
the byte where it will be put is in de. I think.

Arnout
arnout.engelen@beer.com



References: