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


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

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




It doesn't.  Other than that (and other than a few minor flags) the code
description of LDIR is accurate though.

-Dan Englender

----- Original Message -----
From: "D Weiss" <dwedit@hotmail.com>
To: <assembly-83@lists.ticalc.org>
Sent: Wednesday, November 08, 2000 6:32 PM
Subject: Re: A83: ti compiler....hl to a question


>
> Does it touch register A?  I thought it didn't...
>
>
> >From: Harper Maddox <gte172i@prism.gatech.edu>
> >Reply-To: assembly-83@lists.ticalc.org
> >To: assembly-83@lists.ticalc.org
> >Subject: Re: A83: ti compiler....hl to a question
> >Date: Wed, 08 Nov 2000 18:20:33 -0500
> >
> >
> >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?
> >
> >
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> Share information about yourself, create your own public profile at
> http://profiles.msn.com.
>
>




References: