Re: A83: label from input
[Prev][Next][Index][Thread]
Re: A83: label from input
Hey,
You can't jump to a label by putting the name of it in hl or anywhere
because when the code is compiled all the labels disappear and all the
jp Right, or such, turn into the position in ram and there are no labels
in it.
.-"""-.
/ .===. \
\/ 6 6 \/
( \___/ )
_______________ooo__\_____/____________________
/ \
| Revenant revenant_1@hotmail.com ICQ#3608935 |
| VISIT THE JAVASCRIPT REFERENCE |
| http://www.geocities.com/~homosapian/ |
\_____________________________ooo_______________/
| | |
|_ | _|
| | |
|__|__|
/-'Y'-\
(__/ \__)
>
>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
>>____________________________________
>>
>
>
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
Follow-Ups: