Posted By
 Csabo on 2008-12-24 10:41:53
| Re: How retrieve stack pointer
You can use the TSX opcode, which will transfer the value of the stack pointer to the X register. Once it's in X, it's trivial to place it to wherever you need it. (The opposite - TXS - can used to directly change the value of SP.) |