TIP: Click on subject to list as thread! ANSI
echo: cis.languages
to: JOSEPH CONSUGAR 73007,3264 (X)
from: David Breeding 72330,2051
date: 1993-08-28 23:14:29
subject: #18609-#BASIC to Assem prob

#: 18620 S3/Languages
    28-Aug-93  23:14:29
Sb: #18609-#BASIC to Assem prob
Fm: David Breeding 72330,2051
To: JOSEPH CONSUGAR 73007,3264 (X)

I'm not quite sure exactly what your problem would be, but let me give you some
ideas.
  First, remember that you have a return address on the stack, followed by a
count of the parameters, then each parm is a pair of integer-len variables:
length-of-parm followed by addr-of-parm, or, starting from the bottom of the
stack upwards:
 Retn rmb 2
 Count rmb 2
 LENp1 rmb 2
 addrp1 rmb 2
 lenp2 rmb 2
 addrp2 rmb 2

Also remember that if you are in a subroutine within the program, you have to
take into account the return(s) there OH, I didn't refer to my manual, I MAY
have len & addr reversed, not sure.

One other hint, if you aren't already doing it, although it might not be
necessary, if you are using "asm", I like to enclose the above rmb's within an
"ifp1-endc" pair so as not to include them as data.  If using "rma", I define
them within "csects".
  Let me know if this helps.


Oh, I assume you are using a CoCo?

David

There is 1 Reply.

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.