Go Down

Topic: Handle memory (Read 14145 times) previous topic - next topic

nickgammon


I want to thank you again for helping me.

In realty I think I need to know the stack in a certain moment.


And the variable SP gives you the stack at a certain moment.
Please post technical questions on the forum, not by personal message. Thanks!

More info: http://www.gammon.com.au/electronics

DarkCoffee



I want to thank you again for helping me.

In realty I think I need to know the stack in a certain moment.


And the variable SP gives you the stack at a certain moment.


Doesn't SP give me a stack pointer at a certain moment?
I mean, from my code at reply #53 I imagine that the stack is:
buff[4]|R0|R0|R0|R0|R29|R28|RET
but for sure there is something that I miss.
I think that SP gives me the stack pointer after buff[4] and I have to add other bytes in order to reach ret, hence it is the same that I overwrite the memory using the buff until the ret, isn't it?

Go Up