Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!spool.mu.edu!uunet!vuse.vanderbilt.edu!benson From: benson@vuse.vanderbilt.edu (Paul Benson) Newsgroups: comp.sys.apple2 Subject: Re: Arrrgh, why's this not working? Message-ID: <1991Jun13.065401.19493@vuse.vanderbilt.edu> Date: 13 Jun 91 06:54:01 GMT Article-I.D.: vuse.1991Jun13.065401.19493 References: <1181@spool.mu.edu> Sender: news@vuse.vanderbilt.edu Organization: Vanderbilt University School of Engineering, Nashvegas, TN, USA Lines: 27 Nntp-Posting-Host: vuse Sorry if this already made it, but the server on my end reported an error. >Righto, time to ask for more help... The following code is supposed to take >two parameters off the stack, and then print t1 as a character t2 times. >----- > mcopy 2/ainclude/m16.msc > mcopy 2/ainclude/m16.i.o > >rpt start > >t1 dc i'0' >t2 dc i'0' > > pl2 t1 > pl2 t2 > ... > rtl Among other good points made by Tim, you need to get the return address off of the stack, and save it somewhere. Easier to use stack addressing as the Orca/C manual demonstrates, though. ie tsc phd tcd and ending with pld. And yes, I know that it is truly direct page addressing and not 'stack,s' addressing. Also the macro stuff in Orca/C is on page 69 in the new & old manuals. Paul Benson benson@vuse.vanderbilt.edu GEnie: p.benson1