flat assembler
Message board for the users of flat assembler.
Index
> Windows > Stack shift under win64 confused |
Author |
|
LocoDelAssembly 09 Mar 2012, 17:34
invoke macro takes care of allocating stack space on each call, to avoid that, use frame/endf ( http://flatassembler.net/docs.php?article=win32#1.4 )
|
|||
09 Mar 2012, 17:34 |
|
shutdownall 09 Mar 2012, 18:31
I didn't know that invoke is a macro, thought it was an instruction inside fasm.
|
|||
09 Mar 2012, 18:31 |
|
revolution 09 Mar 2012, 20:40
Wztml wrote:
|
|||
09 Mar 2012, 20:40 |
|
Wztml 10 Mar 2012, 04:58
@Rev
If I give 4 parameters, the code will be sub rsp,28h sub rsp,20h .. .. SO WHAT'S WRONG? |
|||
10 Mar 2012, 04:58 |
|
revolution 10 Mar 2012, 05:02
Nothing is wrong. You have manually specified the sub rsp,28h, and the invoke macro has generated the sub rsp,20h. Your rsp adjustment is aligning the stack (with an extra 20h bytes for unknown purpose). If you do not want invoke to allocate stack space then follow LocoDelAssembly's suggestion.
|
|||
10 Mar 2012, 05:02 |
|
Wztml 10 Mar 2012, 08:00
@Rev @LocoDelAssembly
Thank you guys |
|||
10 Mar 2012, 08:00 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.