[Coco] Basic09 <==> 6809 interface.
L. Curtis Boyle
curtisboyle at sasktel.net
Sat Aug 26 19:26:46 EDT 2023
That’s pretty well built in. When you do a RUN <mlmodule> (parameters) from BASIC09, it sends the # of parameters passed, and then the ptr to parameter (variable) data and it’s length. So if you passed a string, it actually passes the ptr to the string data (and the length). You can see a very simple example of this in the OS9-9 Level II BASIC09 manual; Appendix B shows the sourcecode for INKEY. That has one or two parameters passed to it; an optional path # (which can be a BYTE or an INTEGER; it checks the length) and a ptr to a string to hold the keypress. You would be doing similar, but with a longer string (or an array of BYTE, etc.)
L. Curtis Boyle
curtisboyle at sasktel.net
> On Aug 26, 2023, at 3:43 PM, coco--- via Coco <coco at maltedmedia.com> wrote:
>
> All
>
> Has anyone written a program that allows some shared memory buffer between a
> Basic09 program and an OS9 assembler program, so that some variables can be shared
> without having to save them to files in one language and read/write reply in the
> Other ?
>
> Charlie
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> https://pairlist5.pair.net/mailman/listinfo/coco
>
More information about the Coco
mailing list