flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
LocoDelAssembly
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
I didn't know that invoke is a macro, thought it was an instruction inside fasm.
![]() |
|||
![]() |
|
revolution
Wztml wrote:
|
|||
![]() |
|
Wztml
@Rev
If I give 4 parameters, the code will be sub rsp,28h sub rsp,20h .. .. SO WHAT'S WRONG? |
|||
![]() |
|
revolution
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
@Rev @LocoDelAssembly
Thank you guys |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.