Re: A83: label from input


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

Re: A83: label from input




dont bother using jp (hl) in this simple of a routine
the only time jp (hl) can be useful is in a situation where you would need
to  execute multiple RETs to escape from a subroutine.

besides even if you used jp (hl) you would have to do a "cp" to set hl in
the first place
so just use cp xx , jr z,xxxx

-Harper Maddox

jerky@ebicom.net
IRC nick: Geori
ICQ: 1214597

-----Original Message-----
From: James Matthews <matthews@tkb.att.ne.jp>
To: assembly-83@lists.ticalc.org <assembly-83@lists.ticalc.org>
Date: Thursday, July 23, 1998 3:55 AM
Subject: Re: A83: label from input


>
>> >Ok, here's another question; Is there anyway to store a word into a
>varible
>> >like 'hl', then without using 'cp', jump to a label called whatever 'hl'
>> >is?
>>
>> yes..
>> 'jp (hl)'  works..
>>
>
>Perhaps either me or Olle got confused here.  Aren't you asked whether you
>can load, for example "LEFT" or "RIGHT" into hl and then jumping to the
>label in your program:
>
>jp (hl)
>...
>..
>.
>LEFT:
>...
>..
>.
>RIGHT:
>
>I don't think you can that...just to clarify :)
>
>James.
>
>____________________
>
>James Matthews.
>E-mail (family):    matthews@tkb.att.ne.jp
>E-mail (private):  james_matthews@hotmail.com
>
>Homepage:  http://home.att.ne.jp/gold/tomcat21/index.html
>ICQ:  7413754
>____________________________________
>