One way to do this sort of thing is to have a assembly function engine where you have a cog loaded with lots of assembly functions and then some spin functions that allow you to access them. The spin functions just tell the main assembly loop what part of the code to run and pass over arguments and collect results to be returned.
I have used this for a few things and it works, the functions don't even need to be in any way related. I wondered what general purpose assembly function engines we could produce, sort of high speed toolboxes.
Comments
-Phil
http://forums.parallax.com/showthread.php?p=600988
I have used this for a few things and it works, the functions don't even need to be in any way related. I wondered what general purpose assembly function engines we could produce, sort of high speed toolboxes.
Graham