Re: A83: loop/lable question


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

Re: A83: loop/lable question




um, This message thread is very hard to follow... but anyway...
You usually use a ret when you are returning from a called routine. For
example:

 call doSomething
....

doSomething:
 ld a,5
 ret

If the routine is jped to, then you do not usually use a ret.  If you are in
a loop, you can ret in the middle as long as the stack is at the proper
level (e.i., anything pushed in that loop has been popped etc.)

Joe Wingbermuehle
http://www.usmo.com/~joewing/

-----Original Message-----
From: Heydude27@aol.com <Heydude27@aol.com>
To: assembly-83@lists.ticalc.org <assembly-83@lists.ticalc.org>
Date: Thursday, September 17, 1998 4:31 PM
Subject: Re: A83: loop/lable question


>
>the reason why I was wondering is because solytare for sos has an ret at
the
>end of almost every loop/lable
>