B: fcv = create( [stack, [space,]] function, [a1, a2...] )
C: void *create(int stack, int space, void *function, ...);
CREATE creates a co-routine and returns a pointer to the function control vector. When control is initially passed to the co-routine, it is entered at the entry point to "function" with "a1", "a2", etc. set up as the arguments. ("nargs" will work correctly).
Note that the B run-time library may require up to 225 words of stack when performing I/O, so if the co-routine is to do any I/O, the stack size should be increased.
Copyright © 1996, Thinkage Ltd.