flat assembler
Message board for the users of flat assembler.
Index
> Windows > Assembling a .asm file? |
Author |
|
revolution 10 Sep 2022, 09:19
fasm.exe is for the command line. So you need to open cmd.exe and run it there.
fasmw.exe is the IDE for Windows. You can run that as a normal GUI program. If you have problems, show the error messages and outputs, then we can see what is happening. |
|||
10 Sep 2022, 09:19 |
|
dogrules23 10 Sep 2022, 09:22
Every time I run it in the command line version, I get the error "'fasm' is not recognized as an internal or external command,
operable program or batch file." I don't know how to get it to do anything in the IDE version, it just tells me "file not found". |
|||
10 Sep 2022, 09:22 |
|
Overclick 10 Sep 2022, 09:24
Make sure you expanded your command prompt to Fasm folder
|
|||
10 Sep 2022, 09:24 |
|
dogrules23 10 Sep 2022, 09:27
Overclick wrote: Make sure you expanded your command prompt to Fasm folder Ok, uhh, how do I do that exactly? Is it not just dragging in the FASM.EXE? |
|||
10 Sep 2022, 09:27 |
|
dogrules23 10 Sep 2022, 09:46
I figured it out, but now the error I get is:
"D:\Downloads\fasmw17330>fasm main.asm flat assembler version 1.73.30 (1048576 kilobytes memory) main.asm [91]: include '\fasm\include\win32ax.inc' error: file not found." |
|||
10 Sep 2022, 09:46 |
|
revolution 10 Sep 2022, 10:36
Using relative paths, or a path using an environment variable, will give fewer problem.
Code: ;... include 'include\win32ax.inc' ; relative path, no leading slash include '%INCLUDE%\win32ax.inc' ; use an environment variable named INCLUDE ;... |
|||
10 Sep 2022, 10:36 |
|
dogrules23 10 Sep 2022, 15:27
revolution wrote: Using relative paths, or a path using an environment variable, will give fewer problem. So I need to edit the source code to get it to work properly? Here I was thinking I just needed to run the command listed in the original instructions and it'd work. There's so much more to this than I expected. |
|||
10 Sep 2022, 15:27 |
|
dogrules23 10 Sep 2022, 21:43
revolution wrote: Using relative paths, or a path using an environment variable, will give fewer problem. No matter which line is in the source code I downloaded, I still get an error saying win32ax.inc cannot be found or doesn't exist. |
|||
10 Sep 2022, 21:43 |
|
revolution 10 Sep 2022, 22:31
By default fasm uses the environment variable named INCLUDE. You need to set up your environment to have the INCLUDE variable point to your path.
|
|||
10 Sep 2022, 22:31 |
|
revolution 11 Sep 2022, 04:46
dogrules23 wrote: So I need to edit the source code to get it to work properly? Using absolute paths is the problem. I would suggest you alter your source to make it more friendly by using relative paths. |
|||
11 Sep 2022, 04:46 |
|
FlierMateI 12 Sep 2022, 06:17
If you use FASMW.exe (the editor that comes with FASM for Windows), you don't need to specify the path of the INCLUDE folder.
The beginning of my Assembly source files are as below: Code:
format PE console
entry start
include 'win32a.inc' But if you compile from command-line, use relative path like that suggested by @revolution will do.
|
||||||||||
12 Sep 2022, 06:17 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.