flat assembler
Message board for the users of flat assembler.
Index
> Main > Read arguments from Stack! |
Author |
|
kandamun 28 Jul 2005, 16:27
To allocated some stack you can do
Code: sub esp, SIZE_OF_BUFFER ;; now esp points the buffer mov esi, esp ;; then save it or use it I'm not sure if SIZE_OF_BUFFER must be multiple of 4. And don't forget to clean it up before returning from the function. Code: ;; you can always do add esp, SIZE_OF_BUFFER ;; at the right place between push and pop blocks |
|||
28 Jul 2005, 16:27 |
|
q6z4k 28 Jul 2005, 19:59
Thanks man, that worked!
What are the limitations? Whats the maximum that, I can allocate? |
|||
28 Jul 2005, 19:59 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.