flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > [patch] proc macro: omit frame pointer |
Author |
|
dunkaist 15 Jun 2018, 21:13
Hello,
I attached a diff that adds omitfp param to well known proc macro. It makes procedures to address arguments and local variables via esp. Enjoy your ebp! Local variables are cleaned up with lea, not add, preserving flags at exit. Hints and code review are welcome. Happy coding.
|
|||||||||||
15 Jun 2018, 21:13 |
|
Tomasz Grysztar 15 Jun 2018, 21:40
Instead of patching the basic macro you can simply make an add-on by re-defining the prologue@proc, epilogue@proc and close@proc variables. See the thread about customizing "proc". The standard proc64.inc even contains additional variants to choose from (static_rsp_...).
|
|||
15 Jun 2018, 21:40 |
|
dunkaist 15 Jun 2018, 22:04
Oh, I only saw this thread: https://board.flatassembler.net/topic.php?t=11558
Thank you for the pointer, Tomasz, I learned another bit of fasm today. |
|||
15 Jun 2018, 22:04 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.