Re: A83: ti compiler....hl to a question


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

Re: A83: ti compiler....hl to a question




no offense, but if you don't know how LDIR works, then maybe you shouldn't 
attempt to write a compiler.  LDIR is one of the most commonly used 
opcodes, and it is essential to many optimizations.

but, to explain...
LDIR is equivalent to:

label:
  ld a,(hl)
  ld (de),a
  inc hl
  inc de
  dec bc
  ld a,b
  or c
  jr nz,label




At 02:47 PM 11/8/00 -0500, you wrote:

>Um...ok i think i get it...ok now before i get to indepth with this
>program....i was wondering...how exactly does a ldir work? does it go up to
>the last line? the last label? what? and does it increment a?




Follow-Ups: References: