Re: A86: Re: Re: help with 16-bit vars


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

Re: A86: Re: Re: help with 16-bit vars




To do it with only one 16-bit reg (can be HL, BC, or DE), try this.  The
trick to remember is that you still have A in itself, so there is no need
to save it in a 3rd register:

push af
pop de
ld d,e
ld e,a
push de
pop af

At 09:54 PM 9/28/98 EDT, you wrote:
>
>In a message dated 9/28/98 19:09:51 Eastern Daylight Time, tbarwick@esn.net
>writes:
>
>> Thanks a lot, Dux.  Still, how would I trade that values of a and f
since I 
>> can't use "ex a,f".
>
>
>push af
>pop de
>ld c,d
>ld b,e
>push bc
>pop af
>

--
David Phillips
mailto:electrum@tfs.net
ICQ: 13811951
AOL/AIM: Electrum32