flat assembler
Message board for the users of flat assembler.
![]() |
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 )
|
|||
![]() |
|
shutdownall 09 Mar 2012, 18:31
I didn't know that invoke is a macro, thought it was an instruction inside fasm.
![]() |
|||
![]() |
|
revolution 09 Mar 2012, 20:40
Wztml wrote:
|
|||
![]() |
|
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? |
|||
![]() |
|
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.
|
|||
![]() |
|
Wztml 10 Mar 2012, 08:00
@Rev @LocoDelAssembly
Thank you guys |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.