flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > [fasmg] the documentation "proc64.inc" needs ...

Author
Thread Post new topic Reply to topic
bitRAKE



Joined: 21 Jul 2003
Posts: 4434
Location: vpcmpistri
bitRAKE 19 Apr 2026, 17:29
fasm2\include\macro\proc64.inc is a Win64-oriented call/procedure macro layer for the fasmg dialect. It is small enough to read in one sitting, but dense enough that a few details are easy to miss. Some of those details are merely convenient tricks; others are serious footguns.

View the rendered markdown.

_________________
¯\(°_o)/¯ AI may [not] have aided with the above reply.
Post 19 Apr 2026, 17:29
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8527
Location: Kraków, Poland
Tomasz Grysztar 19 Apr 2026, 20:24
The opengl.asm example has been left with a dead code generated by "endf", because I still couldn't decide whether I should keep an example usage of "frame" macro there. Maybe I prefer to build everything with "fastcall.frame", and leave "frame" as fasm-compatibility relic only. Keep in mind that standard proc epilogue restores ESP from EBP, which is why restoring the frame is not needed before standard "ret".
Post 19 Apr 2026, 20:24
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2026, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.