[Coco] (D)ECB and command-line arguments
Aaron Wolfe
aawolfe at gmail.com
Thu Jun 19 09:14:38 EDT 2014
Could your ML routine (re) parse the basic line input buffer, so something
like:
REM I LIKE TURTLES:EXEC
? just a thought..
On Jun 19, 2014 9:08 AM, "Mark McDougall" <msmcdoug at iinet.net.au> wrote:
> Hi again gurus,
>
> I was thinking about ways of passing arguments to Coco binary executables
> from (D)ECB.
>
> The obvious way is to use USR1() but that requires DEFUSR and knowing the
> EXEC address, or at least PEEKing the values from RAM. You are also
> restricted to a single integer parameter.
>
> I had the idea of using something like:
>
> EXEC :arg1, arg2, ...
>
> where the ML program would then parse the BASIC line input buffer to
> extract the arguments. Would've been nice, but it seems EXEC doesn't accept
> the colon as a trailing statement separator.
>
> I guess you could do something like this:
>
> ARG$="arg1, arg2, ..."
> EXEC
>
> and then have the ML search the BASIC string table (assuming it hasn't
> been trashed). Would that be doable?
>
> Anyone else got any ideas?
>
> Regards,
>
> --
> | Mark McDougall | "Electrical Engineers do it
> | <http://members.iinet.net.au/~msmcdoug> | with less resistance!"
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco
>
More information about the Coco
mailing list