flat assembler
Message board for the users of flat assembler.

Index > Windows > fasm vs fasmw include

Author
Thread Post new topic Reply to topic
trogne



Joined: 10 Sep 2018
Posts: 10
trogne
I don't understand the "fasmw" program, vs "fasm".

My fasm works if I set the environment variable INCLUDE.

But if I set it in "FASMW.INI", it does not work :

[Environment]
Include=C:\fasm\INCLUDE

Is this only for "fasmw.exe" ?

If I run "fasm myprogram.asm", I get file not found.

And if I run "fasmw myprogram.asm", it opens the fasm editor. Then if I run "Run - Compile" or "Run - Run", I get "file not found" (source is "myprogram.asm (7)".
Post 30 Dec 2019, 17:32
View user's profile Send private message Reply with quote
trogne



Joined: 10 Sep 2018
Posts: 10
trogne
I see that "fasmw" works if "fasmw.INI" is in the directory where the ".asm" is. I guess I don't follow best practices here.
Post 30 Dec 2019, 17:40
View user's profile Send private message Reply with quote
guignol



Joined: 06 Dec 2008
Posts: 727
guignol
Post 31 Dec 2019, 01:04
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17716
Location: In your JS exploiting you and your system
revolution
fasm uses the environment variable to find included files.

fasmw uses the famsw.ini file for its settings. Ideally you would have the ini file in the same folder as the executable.
Post 31 Dec 2019, 07:38
View user's profile Send private message Visit poster's website Reply with quote
trogne



Joined: 10 Sep 2018
Posts: 10
trogne
@revolution, The ini file is in the same folder as fasmw.exe .

fasmw is in the path, so it is globally available.

My .asm file is eslewhere, so If I run fasmw file.asm from where my .asm file is, then it will recreate a ini file there and it won't work until I update that .ini file.
Post 31 Dec 2019, 15:35
View user's profile Send private message Reply with quote
MHajduk



Joined: 30 Mar 2006
Posts: 6038
Location: Poland
MHajduk
Well, that looks promising. Has anybody from this forum been involved in development of this platform? Integration of fasm with that IDE suggests that may be the case...
Post 31 Dec 2019, 18:14
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 GitHub, YouTube, Twitter.

Website powered by rwasa.