Re: A89: parameters for exec


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

Re: A89: parameters for exec







>
> Matt Baker wrote:
> >
> > Does anyone know how to use parameters with exec?  I know that there is
an
> > arg list that is after the actual hex.  I am interested in using the
args.
> > Does it put them on the stack?  If so, I can just take them off the
stack,
> > use them and then rts?
> >
> > Thx,
> >
> > Matt.
>
> The parameters are pushed on the estack, with the first parameter on the
> top. The parameters are evaluated -- variables will be passed by value
> if they exist.
>
> There's some public information available on how to reach the parameters
> at http://www.ti.com/calc/docs/asm/8992pexec.htm.
>
> You don't need to pop them off, in fact you can almost do whatever you
> want with the estack. It is restored automatically when your program
> exits.
>
> I have written a program (binary, not Exec) that uses parameters. The
> program asks for two values by showing a dialog box, unless they're
> given on the "command line". I have used many not-yet-documented ROM
> calls in this program and I can post it to the list if anyone is
> interested.

of course we're interested!



References: