From: Dan White Date: Sun, 1 Feb 2015 20:26:29 +0000 (-0600) Subject: update init documentation X-Git-Tag: cheetah~3 X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=dd7909b40a2302d0bf7260bc659478b4e45eff8b;p=430.git update init documentation --- diff --git a/msp4th/msp4th.c b/msp4th/msp4th.c index 22d4e6f..2ac9525 100644 --- a/msp4th/msp4th.c +++ b/msp4th/msp4th.c @@ -1502,11 +1502,15 @@ GCC_DIAG_ON(int-to-pointer-cast); void msp4th_init(struct msp4th_config *c) { /* - * Get addresses of user-configurable arrays from the pre-known vector - * table locations. + * Startup the interpreter with a given configuration. Struct describes + * the locations of the stacks, user program code and names, input + * buffers, and the terminal input/output functions. See main() for + * an example of usage. * - * Changing the values in the msp4th_* locations and calling - * msp4th_init() again restarts the interpreter with the new layout; + * Changing the struct and calling msp4th_init() again restarts the + * interpreter with the new layout. This allows expanding the RAM + * available to the interpreter if necessary for larger programs, or even + * injection of pre-compiled user code. */ mathStackPtr = c->mathStackStart; addrStackPtr = c->addrStackStart;