#: 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.
|