Rout library

This is a somewhat strange library, as it seams utterly useless. However when you are passed a function which has to be called, it is often useful to do this in a generic way. Most of all, when that routine needs parameters which are also passed (e.g. as a list). It is mostly this last option which is useful. However, for reasons of completeness and consistency, we also provide the ROUTCall function (this can be useful to replace a call to MUTEXCall or ATOMICCall for testing).

As a side effect, these routines can be used to call routines which smash registers (only d7 has to be preserved).

ROUTCall
Call a routine.
The parameters of the routine have to adhere to a few rules to allow passing them. No char or short parameters, and doubles count double.
ROUTCallList
Call a routine. Contrary to ROUTCall this routine gets its parameters from an array of ints, where the first element is the parameter count (as above) and the following elements are the parameters. Some pairs of ints can count as a double !

PROGS, Professional & Graphical Software
last edited February 5, 1996