Newsgroups: comp.sys.apple2
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!vuse.vanderbilt.edu!benson
From: benson@vuse.vanderbilt.edu (Paul Benson)
Subject: Re: Arrrgh, why's this not working?
Message-ID: <1991Jun13.045009.18396@vuse.vanderbilt.edu>
Sender: benson@vuse.vanderbilt.edu (Pauley)
Nntp-Posting-Host: vuse
Organization: Vanderbilt University School of Engineering, Nashvegas, TN, USA
References: <1181@spool.mu.edu>
Date: Thu, 13 Jun 1991 04:50:09 GMT

In article <1181@spool.mu.edu> jake@labpca.mscs.mu.edu (Jake Buchholz) writes:
>
>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 Meekings, 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.
  Paul Benson
  benson@vuse.vanderbilt.edu
  GEnie: p.benson1
