Re: LZ: manipulations


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

Re: LZ: manipulations



> On Sat, 10 Aug 1996 OoooEJoooo@aol.com wrote:
> 
> > Which type of these manipulations is most efficient???
> > 
> > Is  ld a,5
> >      ld b,a
> >      ld a,50
> >      sub b
> > 
> > More efficient than
> > 
> >      ld a,5
> >      sub 50
> >      neg
> 
> The second one is more efficient.  I wrote it without the book
> available and I didn't remember for sure that an immediate subract
> was valid, so I wrote it the way I was sure would work.


Correction!  I wrote the first one, not the second one.  However,
the second one is still faster.


Barry


References: