- Mastering Assembly Programming
- Alexey Lyashko
- 259字
- 2021-08-20 10:23:32
Installing the Flat Assembler
Regardless of whether you are on Windows or on Linux, you can get the Flat Assembler in the same easy way:
- First, visit https://flatassembler.net/download.php and select the proper package for your operating system:

- Unpack the package. Both Windows and Linux packages come with FASM sources, documentation, and examples. As we see in the following screenshot, the Windows version comes with two executables: fasm.exe and fasmw.exe. The only difference between the two is that fasmw.exe is a GUI implementation of Flat Assembler, while fasm.exe is the command line only:

Both executables may be run from the directory you unpacked the package to, as they have no external dependencies. If you decide to move it elsewhere, do not forget to put the INCLUDE folder and the FASMW.INI file (if one has already been created) into the same directory. If you copy FASMW.INI, then you will have to manually edit the Include path under the [Environment] section. Alternatively, you may skip copying FASMW.INI, as it will be automatically created the first time you launch FASMW.EXE.
The Linux version lacks the GUI part, but it still contains the fasm source code, documentation, and examples:

While the fasm executable for Linux, just like its Windows counterpart, has no external dependencies and may be executed directly from the folder you unpacked the package to, it is a matter of convenience to copy it to a more proper location, for example, to /usr/local/bin.