Re: A82: saving hl


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

Re: A82: saving hl




In a message dated 98-04-09 13:48:12 EDT, you write:

> In my program, I want to save the memory address hl points to and call
>  it back later.  I can't use hl because in the middle of the push/pop I
>  have to call a routine then return.  If I store it to a place in
>  text_mem then load it back into hl later, will it still point to the
>  address?

if I understand what you're talking about, yes (just remember to allocate 2
bytes for it)
then, if you didn't know, you could use "call (hl)"

~Adamman