[Coco] USRx() and adding more parameters?
Andrew Ayers
keeper63 at cox.net
Wed Nov 5 14:52:32 EST 2025
If you only have one particular type, I think you might be able to pass
an array? Just reference the array variable (I think) and beyond that I
don't know where you go with it (that is, how you get the array contents
on the ML side).
Another possibility might be to create a string variable, then use
VARPTR to get it's address...then break it up into "fields" and pass
everything as part of that string - ie, say you set a string to be 9
characters long, but you wanted to pass a name and a number, you could
do something like A$="Andrew123" - of course, you'd have to split it
apart then parse each portion, and fields would be "fixed length".
Or maybe you could reserve the space in a similar manner, then use the
VARPTR address and knowing the size, POKE the values you need? It'd be
something like string-packing for POKEing in an ML program in BASIC, but
instead you'd use it as a means to pass parameters to your ML program...
These are all ideas/guesses - I've never tried any of 'em...
Andrew L. Ayers
Glendale, Arizona
phoenixgarage.org
github.com/andrew-ayers
More information about the Coco
mailing list