Re: A86: Re: copying BDE to AHL


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

Re: A86: Re: copying BDE to AHL




On Sat, 20 Dec 1997, Garcia wrote:

> ld a,b
> push hl
> ex de,hl
> pop hl


OUCH!  Never, ever, EVER use the stack when it can easily be avoided.  The
following is smaller and much faster:

	ld a,b
	ld h,d
	ld l,e

(BTW, didn't you mean to push/pop DE instead of HL?)

--------
Dan Eble <eble@cis.ohio-state.edu>
         (http://www.cis.ohio-state.edu/~eble)

"Behold, how great a matter a little fire kindleth!" - James 3:5



References: