Hi everybody,
I am using HCS12 controllers and Codewarrior v3.1.
Is it possible to read the current position of the SP and put it in a integer variable?
Thanks
Nikos
Solved! Go to Solution.
Hello Nikos,
you can, for example, try this:
/*declaration*/
unsigned short oldsp;
...
/* save current SP */
asm {
STS oldsp
}
...
Best Regards.
MJW
Hello Nikos,
you can, for example, try this:
/*declaration*/
unsigned short oldsp;
...
/* save current SP */
asm {
STS oldsp
}
...
Best Regards.
MJW
Thanks Jens Winkler
It works
Best regards
Nikos