Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

asm Stack

Name: Anonymous 2012-01-18 9:13

So I was looking at examples of recursion in asm and how to use the stack and everything I saw would push the stack by subtracting the number of bytes it wanted at the beginning and then add them back at the very end.


Why is it that you have to subtract? Why not add and then subtract at the end?

Name: anonandonandon 2012-01-18 19:22

Surely if that stack grew up instead of down we'd get fewer buffer overruns.

Why don't we do that.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List