You can read the Stack Pointer 'STKPTR' at any time and see what is going on.
Before I put any code 'in the can', I print out the stack pointer value at the top of my main loop and try all sorts of
things. If the value ever gets greater than zero, I know I'm in trouble.
Bookmarks