Examples (5)
Assemble `source.asm` into a binary file `source`, in the (default) raw binary format
nasm source.asmAssemble `source.asm` into a binary file `output_file`, in the specified format
nasm -f format source.asm -o output_fileList valid output formats (along with basic nasm help)
nasm -hfAssemble and generate an assembly listing file
nasm -l list_file source.asmAdd a directory (must be written with trailing slash) to the include file search path before assembling
nasm -i path/to/include_directory/ source.asmmade by @shridhargupta | data from tldr-pages