How can i read a SP of s12zvl32
I need monitor a SP for protection of Stack overflow
解決済! 解決策の投稿を見る。
Hello,
assuming I understand the requirement correctly, the code to read the
current stack-pointer would look similar to this:
/*declaration*/
void *copy_of_stack_ptr;
...
/*copy stack pointer*/
asm {
ST S,copy_of_stack_ptr
}
...
HTH,
MJW
Hello,
assuming I understand the requirement correctly, the code to read the
current stack-pointer would look similar to this:
/*declaration*/
void *copy_of_stack_ptr;
...
/*copy stack pointer*/
asm {
ST S,copy_of_stack_ptr
}
...
HTH,
MJW
Thank you So much !
Now, I can do reading a stack ADDR.