flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > use it Fasm will die (always loop)?

Author
Thread Post new topic Reply to topic
zjlcc



Joined: 23 Jul 2003
Posts: 32
Location: china
zjlcc
Shocked
Code:
struc Test1{
 if ~ defined .F1
     .F1 dd 1
 end if 
}
struct Test1
    
Post 25 May 2004, 14:33
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7749
Location: Kraków, Poland
Tomasz Grysztar
Post 25 May 2004, 15:09
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
i suggest using
Code:
macro ifndef expr
{
  local xxx
  if defined xxx | ~defined (expr)
    xxx=1
}
    

usage
Code:
ifndef x
  x = 5
end if
    

or
Code:
ifndef (a + b)
  a = 5
  b = 6
else
  display 'a or b is already defined'
end if
    
Post 25 May 2004, 18:13
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
zjlcc



Joined: 23 Jul 2003
Posts: 32
Location: china
zjlcc
oh yeah


i made "overlay" !!!

more thanks for Privalov,vid and uri

i like FASM
Post 25 May 2004, 19:58
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-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.