flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > fix vs equ

Author
Thread Post new topic Reply to topic
asmfan



Joined: 11 Aug 2006
Posts: 392
Location: Russian
asmfan
porting old fasm programs encountered this feature /isn't it bug?/
When there were lots of "return" directives in procedures, i decided just to equ them: return equ ret -> and got it assembles as simple retn in procedures no epilog cleanup, but using fix: return fix ret, i got correct assebling.
So why equ replaces "return" after "proc" macro parsing not before? Is this right sequence of processing?

_________________
Any offers?
Post 16 Sep 2008, 17:48
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17492
Location: In your JS exploiting you and your system
revolution
You should try to avoid using fix. It's use is not very clean for most cases.
Post 16 Sep 2008, 18:14
View user's profile Send private message Visit poster's website Reply with quote
asmfan



Joined: 11 Aug 2006
Posts: 392
Location: Russian
asmfan
fix helped me while equ not. Fix has higher priority said in manual, but why equ works so?
Post 16 Sep 2008, 18:29
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17492
Location: In your JS exploiting you and your system
revolution
You have to examine your code to see what macros and other equ's and fix's are doing.
Post 16 Sep 2008, 18:37
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-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.