Re: A83: ld de,hl


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

Re: A83: ld de,hl




If you don't need to keep the value in hl, you can just do this:
 ex de,hl
It exchanges de and hl--hence the opcode "ex"

If, however, you need to keep the value in hl as well, all you need to do is 
this:
 ld d,h
 ld e,l

In a message dated 2/11/00 1:50:00 PM Eastern Standard Time, 
engelen@hotpop.com writes:

> is this the only way to do 'ld de,hl'? Seems long to me, for such a simple
>  thing...
>  
>    ld a,h
>    ld d,a
>    ld a,l
>    ld e,a
>  



----
Jonah Cohen
<ComAsYuAre@aol.com>
http://linux.hypnotic.org/~jonah/