flat assembler
Message board for the users of flat assembler.

Index > Main > Define constanst in command line

Author
Thread Post new topic Reply to topic
alorent



Joined: 05 Dec 2005
Posts: 201
alorent
Hi guys,

I have been searching and reading the FASM docs but no information about my issue.

Is it possible in FASM to define constants in the command line to make conditional compilation? Something link:

fasm.exe /D DEBUG myfile.asm

So, we have DEBUG constant defined or not in our source code.

Thanks!
Post 08 Oct 2008, 10:15
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
Code:
fasm.exe -dDEBUG=1 myfie.asm    
Post 08 Oct 2008, 10:38
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
MazeGen



Joined: 06 Oct 2003
Posts: 977
Location: Czechoslovakia
MazeGen
vid, you really name your files like this? Laughing
Post 08 Oct 2008, 10:54
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: 17671
Location: In your JS exploiting you and your system
revolution
I name all my files like this:
Code:
New Assembly Document1.asm
New Assembly Document2.asm
New Assembly Document3.asm
New Assembly Document4.asm
...    
Seems perfectly logical, I don't see any problem, I just have to keep an internal database in my head for the mapping of the 1000s of asm docs to their associated contents.
Post 08 Oct 2008, 15:48
View user's profile Send private message Visit poster's website Reply with quote
MazeGen



Joined: 06 Oct 2003
Posts: 977
Location: Czechoslovakia
MazeGen
I just wonder what kind of code can "my fie" file contain Wink

vid wrote:
Code:
fasm.exe -dDEBUG=1 myfie.asm    
Post 08 Oct 2008, 16:23
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: 17671
Location: In your JS exploiting you and your system
revolution
Looks like vid has his very own Fencing Federation.
Post 08 Oct 2008, 16:31
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
fail guys... I made a typo, but my typo didn't have any else normal meaning, and so you completely failed to make any fun of it.

Razz Razz Razz
Post 08 Oct 2008, 16:56
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
MazeGen



Joined: 06 Oct 2003
Posts: 977
Location: Czechoslovakia
MazeGen
My online english-czech dictionary says that fie is similar to shame, that's why "my fie" sounds funny to me Razz

http://slovniky.centrum.cz/?lang=1&q=fie
Post 09 Oct 2008, 06:44
View user's profile Send private message Visit poster's website Reply with quote
shoorick



Joined: 25 Feb 2005
Posts: 1608
Location: Ukraine
shoorick
interesting slovnik Smile it failed to translate from russian nor "privjet", neither "привет" - most usual hello word Smile
Quote:
výsledky hledání "privjet" v rusko-českém slovníku


Slovo v zadaném tvaru nebylo nalezeno,
zkontrolujte prosím zadané slovo a požadovaný směr překladu.


while this word is present there: http://slovniky.centrum.cz/sl/m_ru.html
+++++++++++++++++
while typing this i found it via "privet", but "privjet" was result of using
Quote:
ruské a speciální znaky
soft keyboard Smile
Post 09 Oct 2008, 08:08
View user's profile Send private message Visit poster's website Reply with quote
alorent



Joined: 05 Dec 2005
Posts: 201
alorent
vid wrote:
Code:
fasm.exe -dDEBUG=1 myfie.asm    


Thanks a lot! It works great! Very Happy

You made me a happy bunny today Smile
Post 10 Oct 2008, 09:40
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 GitHub, YouTube, Twitter.

Website powered by rwasa.