1. Could you explain what happens when a Spin subroutine is called?
2. Are the return variable, parameters, and local variables pushed onto the cog's stack?
3. Is there a relative performance hit for accessing local vs. global variables?
The reason I ask is that I'm beginning to wonder if it's better just to use global variables in a non-recursive environment, assuming that locals cause a stack- and/or performance-hit. This especially concerns me since all locals are longs.