I'm rusty on my inline assembler, but isn't the external stack pointer stored in the esp register? That would make sense
Take a look at the following code (and remember I may be wrong):
code:<HR>Code:#include <iostream> using namespace std;<P>int main() { int x; __asm mov x,esp ;move value stored in esp into x cout << "Stack pointer: " << x; return 0; }