some places. You can use this function to get the current stack value
from C:
/* Read the current stack pointer value */
static __inline__ void* get_sp(void)
{
register void* ret __asm__("sp");
return ret;
}
Better than my solution, although I don't like asm. -- Helmut Karlowski