Search code examples
assemblycompiler-constructionconsolefasm

How to use the FASM Console for Compiling


I am trying to make an assembly IDE that lets the user enter code and compile it with NASM, FASM, YASM, etc. However, since FASM comes with an IDE, I can't find any information on compiling with the console. For example, if I had a program test.asm, would I compile like this:

fasm test.asm

If I did, fasm.exe would have to be in the same directory as command prompt was operating I assume. Thanks for any help.


Solution

  • Your building an IDE for use with multiple Assemblers? Create a settings file (maybe a project file) and let the user enter the path for the their Assemblers. You then pass this info onto, in your case FASM. You could look at RadASM and WinASM, both are awesome Assembly IDEs with source.

    Something similar to this: RadASM Paths

    And this: Project Settings

    All this gets saved to a project file When the project is opened, load the paths and pass on to the assembler/linker/res compilers command line.