flat assembler
Message board for the users of flat assembler.

Index > Main > Flag in macros. Help to solve.

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 1766
Roman 16 Sep 2013, 16:52
My macro:
Quote:

DoProc = 0
macro Loo x{ local Pr0
if DoProc = 0
jmp Pr0
Pr1:
invoke MessageBox,0,eax,0,0
ret
Pr0:
DoProc = 1
end if
mov eax,x
Call Pr1
}

If i not write DoProc = 0 my macro not work. Fasm swears on DoProc in macro.
How fix this. I want use my macro but do not explicitly specify DoProc.
Because I will have a lot of similar macros. And write for each macro flag (like DoProc ) somehow not healthy and not cool.
Post 16 Sep 2013, 16:52
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.