flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > How to pass a point to structure to a proc?

Goto page Previous  1, 2
Author
Thread Post new topic Reply to topic
Byte



Joined: 21 Mar 2026
Posts: 27
Byte 22 Apr 2026, 12:15
Thank you for the detailed answer.
revolution wrote:
fasm works with a single instruction per line. Hence the name assembler. To make it into a compiler then the macro engine can be used.

Something tells me that one line
Code:
push  ax bx cx
    

turns into several
Code:
push ax
push bx
push cx
    

Is this also a macro?
Post 22 Apr 2026, 12:15
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20963
Location: In your JS exploiting you and your system
revolution 22 Apr 2026, 12:26
Yeah, that is three instructions. push and pop are carry-overs from the era of TASM/MASM. I think they were included for convenience when converting code, and maybe to make the proc macro easier to make, not sure though.

So I guess its true that there is an exception to every rule. Smile
Post 22 Apr 2026, 12:26
View user's profile Send private message Visit poster's website Reply with quote
Byte



Joined: 21 Mar 2026
Posts: 27
Byte 22 Apr 2026, 19:45
revolution wrote:

So I guess its true that there is an exception to every rule. Smile

Smile
Post 22 Apr 2026, 19:45
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:  
Goto page Previous  1, 2

< 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.