flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > "_call" for FASMG

Author
Thread Post new topic Reply to topic
alorent



Joined: 05 Dec 2005
Posts: 221
alorent 14 Apr 2023, 10:59
Hi,

In "proc32.inc" for FASM we have the handly "_call" macro which helps producing cleaner ASM code, like:

Code:
_call MyFuction, Param1, Param2, Param3    


Unfortunately this macro is not available in "proc32.inc" for FASMG. I have tried to re-use it under FASMG but I get ugly errors.

This is the macro for fasm:

Code:
macro _call proc,[arg]          ; directly call STDCALL procedure
 { common
    if ~ arg eq
   reverse
    pushd arg
   common
    end if
    call proc }    


Hopefully someone can help me adapting that macro for FASMG.

Thanks!
Post 14 Apr 2023, 10:59
View user's profile Send private message Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 1769
Roman 14 Apr 2023, 11:32
Writed on Fasmw 1.73 Smile
Post 14 Apr 2023, 11:32
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8351
Location: Kraków, Poland
Tomasz Grysztar 14 Apr 2023, 11:36
There is no such macro in PROC32.INC distributed with fasm. There are only "stdcall" and "ccall", as documented, and both are implemented (as extended variants) in fasm-compatible headers for fasmg. You can also find a simpler version in the old thread from the early stages of development of fasmg.
Post 14 Apr 2023, 11:36
View user's profile Send private message Visit poster's website Reply with quote
alorent



Joined: 05 Dec 2005
Posts: 221
alorent 14 Apr 2023, 13:16
Thanks Tomasz! I was wrong, it looks I included that macro many years ago and I forgot that it was not part of PROC32.INC.

"stdcall" is what I needed.

Thanks again!
Post 14 Apr 2023, 13:16
View user's profile Send private message 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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.