|NASM(1)||The Netwide Assembler Project||NASM(1)|
Causes nasm to process options from filename as if they were included on the command line.
Causes nasm to assemble the given input file without first applying the macro preprocessor.
Pre-defines a single-line macro.
Causes nasm to preprocess the given input file, and write the output to stdout (or the specified output file name), and not actually assemble anything.
Specifies the output file format. To see a list of valid output formats, use the -hf option.
Specifies the debug information format. To see a list of valid output formats, use the -y option (for example -felf -y).
Causes nasm to generate debug information in selected format.
Causes nasm to exit immediately, after giving a summary of its invocation options.
Same as -h , but also lists all valid output formats.
Adds a directory to the search path for include files. The directory specification must include the trailing slash, as it will be directly prepended to the name of the include file.
Causes an assembly listing to be directed to the given file, in which the original source is displayed on the right hand side (plus the source for included files and the expansions of multi-line macros) and the generated code is shown in hex on the left.
Causes nasm to output Makefile-style dependencies to stdout; normal output is suppressed.
Same as -M but assumes that missing Makefile dependecies are generated and added to dependency list without a prefix.
Output Makefile-style dependencies to the specified file.
Same as a combination of -M and -MF options.
Override the default name of the dependency target dependency target name. This is normally the same as the output filename, specified by the -o option.
The same as -MT except it tries to quote characters that have special meaning in Makefile syntax. This is not foolproof, as not all characters with special meaning are quotable in Make.
Emit phony target.
Optimize branch offsets.
•-O0: No optimization
•-O1: Minimal optimization
•-Ox: Multipass optimization (default)
Specifies a precise name for the output file, overriding nasm's default means of determining it.
Specifies a file to be pre-included, before the main source file starts to be processed.
Causes nasm to send its error messages and/or help text to stdout instead of stderr.
Causes nasm to assemble in SciTech TASM compatible mode.
Undefines a single-line macro.
Causes nasm to exit immediately, after displaying its version number.
Causes nasm to enable or disable certain classes of warning messages, in gcc-like style, for example -Worphan-labels or -Wno-orphan-labels.
Causes nasm to enable or disable certain classes of warning messages, for example -w+orphan-labels or -w-macro-params.
Specifies error reporting format (gnu or vc).
Causes nasm to list supported debug formats.
Causes nasm to redirect error messages to filename. This option exists to support operating systems on which stderr is not easily redirected.
Prepend or append (respectively) the given argument to all global or extern variables.
fadd to st1
message: times 3 db 'abc'
times 64-$+message db 0
es mov ax,wordvar
%macro name minprm[-maxprm][+][.nolist] [defaults]
<some lines of macro expansion text>