NASM

Version
2.15.03

NASM

NASM is an assembler program for x86 assembler code. NASM has a relatively simple code syntax that is designed to be easy to use and understand. The program can output multiple different types of object files depending on what you require.

Using NASM on RCC Resources

NASM does not require a particular module to be loaded before using. To assemble an assembly file with NASM, simply call the program with the appropriate list of options, an input source file and, optionally, a named output object file. For example:

$ nasm -f [FORMAT] INFILE.asm -o OUTFILE.o

Here, the [FORMAT] option is one of several output formats supported by NASM. This option will determine what type of object file is created by the assembly of the input code. For more detailed information about the available formats, please refer to the official documentation

Below is a simple example of assembling a file using the default format parameter (binary). When using the default, the [FORMAT] option does not need to be specified in the command.

$ nasm test.asm -o test.o

Replace test.asm with the name of your assembly file and test.o with what you would like to name your object file.

For more information about NASM, please refer to the official website.