Blame nasm.1

Packit c1f960
'\" t
Packit c1f960
.\"     Title: nasm
Packit c1f960
.\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
Packit c1f960
.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
Packit c1f960
.\"      Date: 02/07/2018
Packit c1f960
.\"    Manual: The Netwide Assembler Project
Packit c1f960
.\"    Source: NASM
Packit c1f960
.\"  Language: English
Packit c1f960
.\"
Packit c1f960
.TH "NASM" "1" "02/07/2018" "NASM" "The Netwide Assembler Project"
Packit c1f960
.\" -----------------------------------------------------------------
Packit c1f960
.\" * Define some portability stuff
Packit c1f960
.\" -----------------------------------------------------------------
Packit c1f960
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Packit c1f960
.\" http://bugs.debian.org/507673
Packit c1f960
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
Packit c1f960
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Packit c1f960
.ie \n(.g .ds Aq \(aq
Packit c1f960
.el       .ds Aq '
Packit c1f960
.\" -----------------------------------------------------------------
Packit c1f960
.\" * set default formatting
Packit c1f960
.\" -----------------------------------------------------------------
Packit c1f960
.\" disable hyphenation
Packit c1f960
.nh
Packit c1f960
.\" disable justification (adjust text to left margin only)
Packit c1f960
.ad l
Packit c1f960
.\" -----------------------------------------------------------------
Packit c1f960
.\" * MAIN CONTENT STARTS HERE *
Packit c1f960
.\" -----------------------------------------------------------------
Packit c1f960
.SH "NAME"
Packit c1f960
nasm \- the Netwide Assembler, a portable 80x86 assembler
Packit c1f960
.SH "SYNOPSIS"
Packit c1f960
.sp
Packit c1f960
\fBnasm\fR [\fB\-@\fR response file] [\fB\-f\fR format] [\fB\-o\fR outfile] [\fB\-l\fR listfile] [\fIoptions\fR\&...] filename
Packit c1f960
.SH "DESCRIPTION"
Packit c1f960
.sp
Packit c1f960
The \fBnasm\fR command assembles the file \fIfilename\fR and directs output to the file \fIoutfile\fR if specified\&. If \fIoutfile\fR is not specified, \fBnasm\fR will derive a default output file name from the name of its input file, usually by appending \(oq\&.o\(cq or \(oq\&.obj\(cq, or by removing all extensions for a raw binary file\&. Failing that, the output file name will be \(oqnasm\&.out\(cq\&.
Packit c1f960
.SH "OPTIONS"
Packit c1f960
.PP
Packit c1f960
\fB\-@\fR \fIfilename\fR
Packit c1f960
.RS 4
Packit c1f960
Causes
Packit c1f960
\fBnasm\fR
Packit c1f960
to process options from filename as if they were included on the command line\&.
Packit c1f960
.RE
Packit c1f960
.PP
Packit c1f960
\fB\-a\fR
Packit c1f960
.RS 4
Packit c1f960
Causes
Packit c1f960
\fBnasm\fR
Packit c1f960
to assemble the given input file without first applying the macro preprocessor\&.
Packit c1f960
.RE
Packit c1f960
.PP
Packit c1f960
\fB\-D\fR|\fB\-d\fR \fImacro[=value]\fR
Packit c1f960
.RS 4
Packit c1f960
Pre\-defines a single\-line macro\&.
Packit c1f960
.RE
Packit c1f960
.PP
Packit c1f960
\fB\-E\fR|\fB\-e\fR
Packit c1f960
.RS 4
Packit c1f960
Causes
Packit c1f960
\fBnasm\fR
Packit c1f960
to preprocess the given input file, and write the output to
Packit c1f960
\fIstdout\fR
Packit c1f960
(or the specified output file name), and not actually assemble anything\&.
Packit c1f960
.RE
Packit c1f960
.PP
Packit c1f960
\fB\-f\fR \fIformat\fR
Packit c1f960
.RS 4
Packit c1f960
Specifies the output file format\&. To see a list of valid output formats, use the
Packit c1f960
\fB\-hf\fR
Packit c1f960
option\&.
Packit c1f960
.RE
Packit c1f960
.PP
Packit c1f960
\fB\-F\fR \fIformat\fR
Packit c1f960
.RS 4
Packit c1f960
Specifies the debug information format\&. To see a list of valid output formats, use the
Packit c1f960
\fB\-y\fR
Packit c1f960
option (for example
Packit c1f960
\fB\-felf \-y\fR)\&.
Packit c1f960
.RE
Packit c1f960
.PP
Packit c1f960
\fB\-g\fR
Packit c1f960
.RS 4
Packit c1f960
Causes
Packit c1f960
\fBnasm\fR
Packit c1f960
to generate debug information\&.
Packit c1f960
.RE
Packit c1f960
.PP
Packit c1f960
\fB\-g\fR\fIformat\fR
Packit c1f960
.RS 4
Packit c1f960
Equivalent to
Packit c1f960
\fB\-g \-F\fR\fI format\fR\&.
Packit c1f960
.RE
Packit c1f960
.PP
Packit c1f960
\fB\-h\fR
Packit c1f960
.RS 4
Packit c1f960
Causes
Packit c1f960
\fBnasm\fR
Packit c1f960
to exit immediately, after giving a summary of its invocation options\&.
Packit c1f960
.RE
Packit c1f960
.PP
Packit c1f960
\fB\-hf\fR
Packit c1f960
.RS 4
Packit c1f960
Same as
Packit c1f960
\fB\-h\fR
Packit c1f960
, but also lists all valid output formats\&.
Packit c1f960
.RE
Packit c1f960
.PP
Packit c1f960
\fB\-I\fR|\fB\-i\fR \fIdirectory\fR
Packit c1f960
.RS 4
Packit c1f960
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\&.
Packit c1f960
.RE
Packit c1f960
.PP
Packit c1f960
\fB\-l\fR \fIlistfile\fR
Packit c1f960
.RS 4
Packit c1f960
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\&.
Packit c1f960
.RE
Packit c1f960
.PP
Packit c1f960
\fB\-M\fR
Packit c1f960
.RS 4
Packit c1f960
Causes
Packit c1f960
\fBnasm\fR
Packit c1f960
to output Makefile\-style dependencies to stdout; normal output is suppressed\&.
Packit c1f960
.RE
Packit c1f960
.PP
Packit c1f960
\fB\-MG\fR \fIfile\fR
Packit c1f960
.RS 4
Packit c1f960
Same as
Packit c1f960
\fB\-M\fR
Packit c1f960
but assumes that missing Makefile dependecies are generated and added to dependency list without a prefix\&.
Packit c1f960
.RE
Packit c1f960
.PP
Packit c1f960
\fB\-MF\fR \fIfile\fR
Packit c1f960
.RS 4
Packit c1f960
Output Makefile\-style dependencies to the specified file\&.
Packit c1f960
.RE
Packit c1f960
.PP
Packit c1f960
\fB\-MD\fR \fIfile\fR
Packit c1f960
.RS 4
Packit c1f960
Same as a combination of
Packit c1f960
\fB\-M\fR
Packit c1f960
and
Packit c1f960
\fB\-MF\fR
Packit c1f960
options\&.
Packit c1f960
.RE
Packit c1f960
.PP
Packit c1f960
\fB\-MT\fR \fIfile\fR
Packit c1f960
.RS 4
Packit c1f960
Override the default name of the dependency target dependency target name\&. This is normally the same as the output filename, specified by the
Packit c1f960
\fB\-o\fR
Packit c1f960
option\&.
Packit c1f960
.RE
Packit c1f960
.PP
Packit c1f960
\fB\-MQ\fR \fIfile\fR
Packit c1f960
.RS 4
Packit c1f960
The same as
Packit c1f960
\fB\-MT\fR
Packit c1f960
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\&.
Packit c1f960
.RE
Packit c1f960
.PP
Packit c1f960
\fB\-MP\fR
Packit c1f960
.RS 4
Packit c1f960
Emit phony target\&.
Packit c1f960
.RE
Packit c1f960
.PP
Packit c1f960
\fB\-O\fR \fInumber\fR
Packit c1f960
.RS 4
Packit c1f960
Optimize branch offsets\&.
Packit c1f960
.sp
Packit c1f960
.RS 4
Packit c1f960
.ie n \{\
Packit c1f960
\h'-04'\(bu\h'+03'\c
Packit c1f960
.\}
Packit c1f960
.el \{\
Packit c1f960
.sp -1
Packit c1f960
.IP \(bu 2.3
Packit c1f960
.\}
Packit c1f960
\fB\-O0\fR: No optimization
Packit c1f960
.RE
Packit c1f960
.sp
Packit c1f960
.RS 4
Packit c1f960
.ie n \{\
Packit c1f960
\h'-04'\(bu\h'+03'\c
Packit c1f960
.\}
Packit c1f960
.el \{\
Packit c1f960
.sp -1
Packit c1f960
.IP \(bu 2.3
Packit c1f960
.\}
Packit c1f960
\fB\-O1\fR: Minimal optimization
Packit c1f960
.RE
Packit c1f960
.sp
Packit c1f960
.RS 4
Packit c1f960
.ie n \{\
Packit c1f960
\h'-04'\(bu\h'+03'\c
Packit c1f960
.\}
Packit c1f960
.el \{\
Packit c1f960
.sp -1
Packit c1f960
.IP \(bu 2.3
Packit c1f960
.\}
Packit c1f960
\fB\-Ox\fR: Multipass optimization (default)
Packit c1f960
.RE
Packit c1f960
.RE
Packit c1f960
.PP
Packit c1f960
\fB\-o\fR \fIoutfile\fR
Packit c1f960
.RS 4
Packit c1f960
Specifies a precise name for the output file, overriding
Packit c1f960
\fBnasm\fR\*(Aqs default means of determining it\&.
Packit c1f960
.RE
Packit c1f960
.PP
Packit c1f960
\fB\-P\fR|\fB\-p\fR \fIfile\fR
Packit c1f960
.RS 4
Packit c1f960
Specifies a file to be pre\-included, before the main source file starts to be processed\&.
Packit c1f960
.RE
Packit c1f960
.PP
Packit c1f960
\fB\-s\fR
Packit c1f960
.RS 4
Packit c1f960
Causes
Packit c1f960
\fBnasm\fR
Packit c1f960
to send its error messages and/or help text to stdout instead of stderr\&.
Packit c1f960
.RE
Packit c1f960
.PP
Packit c1f960
\fB\-t\fR
Packit c1f960
.RS 4
Packit c1f960
Causes
Packit c1f960
\fBnasm\fR
Packit c1f960
to assemble in SciTech TASM compatible mode\&.
Packit c1f960
.RE
Packit c1f960
.PP
Packit c1f960
\fB\-U\fR|\fB\-u\fR \fImacro\fR
Packit c1f960
.RS 4
Packit c1f960
Undefines a single\-line macro\&.
Packit c1f960
.RE
Packit c1f960
.PP
Packit c1f960
\fB\-v\fR
Packit c1f960
.RS 4
Packit c1f960
Causes
Packit c1f960
\fBnasm\fR
Packit c1f960
to exit immediately, after displaying its version number\&.
Packit c1f960
.RE
Packit c1f960
.PP
Packit c1f960
*\-W[no\-]foo\*(Aq
Packit c1f960
.RS 4
Packit c1f960
Causes
Packit c1f960
\fBnasm\fR
Packit c1f960
to enable or disable certain classes of warning messages, in gcc\-like style, for example
Packit c1f960
\fB\-Worphan\-labels\fR
Packit c1f960
or
Packit c1f960
\fB\-Wno\-orphan\-labels\fR\&.
Packit c1f960
.RE
Packit c1f960
.PP
Packit c1f960
\fB\-w\fR\fI[+\-]foo\fR
Packit c1f960
.RS 4
Packit c1f960
Causes
Packit c1f960
\fBnasm\fR
Packit c1f960
to enable or disable certain classes of warning messages, for example
Packit c1f960
\fB\-w+orphan\-labels\fR
Packit c1f960
or
Packit c1f960
\fB\-w\-macro\-params\fR\&.
Packit c1f960
.RE
Packit c1f960
.PP
Packit c1f960
\fB\-X\fR \fIformat\fR
Packit c1f960
.RS 4
Packit c1f960
Specifies error reporting format (gnu or vc)\&.
Packit c1f960
.RE
Packit c1f960
.PP
Packit c1f960
\fB\-y\fR
Packit c1f960
.RS 4
Packit c1f960
Causes
Packit c1f960
\fBnasm\fR
Packit c1f960
to list supported debug formats\&.
Packit c1f960
.RE
Packit c1f960
.PP
Packit c1f960
\fB\-Z\fR \fIfilename\fR
Packit c1f960
.RS 4
Packit c1f960
Causes
Packit c1f960
\fBnasm\fR
Packit c1f960
to redirect error messages to
Packit c1f960
\fIfilename\fR\&. This option exists to support operating systems on which stderr is not easily redirected\&.
Packit c1f960
.RE
Packit c1f960
.PP
Packit c1f960
\-\-prefix, \-\-postfix
Packit c1f960
.RS 4
Packit c1f960
Prepend or append (respectively) the given argument to all global or extern variables\&.
Packit c1f960
.RE
Packit c1f960
.SH "SYNTAX"
Packit c1f960
.sp
Packit c1f960
This man page does not fully describe the syntax of \fBnasm\fR\*(Aqs assembly language, but does give a summary of the differences from other assemblers\&.
Packit c1f960
.sp
Packit c1f960
\fIRegisters\fR have no leading \(oq%\(cq sign, unlike \fBgas\fR, and floating\-point stack registers are referred to as \fIst0\fR, \fIst1\fR, and so on\&.
Packit c1f960
.sp
Packit c1f960
\fIFloating\-point instructions\fR may use either the single\-operand form or the double\&. A \fITO\fR keyword is provided; thus, one could either write
Packit c1f960
.sp
Packit c1f960
.if n \{\
Packit c1f960
.RS 4
Packit c1f960
.\}
Packit c1f960
.nf
Packit c1f960
fadd st0,st1
Packit c1f960
fadd st1,st0
Packit c1f960
.fi
Packit c1f960
.if n \{\
Packit c1f960
.RE
Packit c1f960
.\}
Packit c1f960
.sp
Packit c1f960
or one could use the alternative single\-operand forms
Packit c1f960
.sp
Packit c1f960
.if n \{\
Packit c1f960
.RS 4
Packit c1f960
.\}
Packit c1f960
.nf
Packit c1f960
fadd st1
Packit c1f960
fadd to st1
Packit c1f960
.fi
Packit c1f960
.if n \{\
Packit c1f960
.RE
Packit c1f960
.\}
Packit c1f960
.sp
Packit c1f960
\fIUninitialised storage\fR is reserved using the \fIRESB\fR, \fIRESW\fR, \fIRESD\fR, \fIRESQ\fR, \fIREST\fR and \fIRESO\fR pseudo\-opcodes, each taking one parameter which gives the number of bytes, words, doublewords, quadwords or ten\-byte words to reserve\&.
Packit c1f960
.sp
Packit c1f960
\fIRepetition\fR of data items is not done by the \fIDUP\fR keyword as seen in DOS assemblers, but by the use of the \fITIMES\fR prefix, like this:
Packit c1f960
.sp
Packit c1f960
.if n \{\
Packit c1f960
.RS 4
Packit c1f960
.\}
Packit c1f960
.nf
Packit c1f960
message: times 3 db \*(Aqabc\*(Aq
Packit c1f960
         times 64\-$+message db 0
Packit c1f960
.fi
Packit c1f960
.if n \{\
Packit c1f960
.RE
Packit c1f960
.\}
Packit c1f960
.sp
Packit c1f960
which defines the string abcabcabc, followed by the right number of zero bytes to make the total length up to 64 bytes\&.
Packit c1f960
.sp
Packit c1f960
\fISymbol references\fR are always understood to be immediate (i\&.e\&. the address of the symbol), unless square brackets are used, in which case the contents of the memory location are used\&. Thus:
Packit c1f960
.sp
Packit c1f960
.if n \{\
Packit c1f960
.RS 4
Packit c1f960
.\}
Packit c1f960
.nf
Packit c1f960
mov ax,wordvar
Packit c1f960
.fi
Packit c1f960
.if n \{\
Packit c1f960
.RE
Packit c1f960
.\}
Packit c1f960
.sp
Packit c1f960
loads AX with the address of the variable wordvar, whereas
Packit c1f960
.sp
Packit c1f960
.if n \{\
Packit c1f960
.RS 4
Packit c1f960
.\}
Packit c1f960
.nf
Packit c1f960
mov ax,[wordvar]
Packit c1f960
mov ax,[wordvar+1]
Packit c1f960
mov ax,[es:wordvar+bx]
Packit c1f960
.fi
Packit c1f960
.if n \{\
Packit c1f960
.RE
Packit c1f960
.\}
Packit c1f960
.sp
Packit c1f960
all refer to the \fIcontents\fR of memory locations\&. The syntaxes
Packit c1f960
.sp
Packit c1f960
.if n \{\
Packit c1f960
.RS 4
Packit c1f960
.\}
Packit c1f960
.nf
Packit c1f960
mov ax,es:wordvar[bx]
Packit c1f960
es mov ax,wordvar[1]
Packit c1f960
.fi
Packit c1f960
.if n \{\
Packit c1f960
.RE
Packit c1f960
.\}
Packit c1f960
.sp
Packit c1f960
are not legal at all, although the use of a segment register name as an instruction prefix is valid, and can be used with instructions such as \fILODSB\fR which can\(cqt be overridden any other way\&.
Packit c1f960
.sp
Packit c1f960
\fIConstants\fR may be expressed numerically in most formats: a trailing H, Q or B denotes hex, octal or binary respectively, and a leading \(oq0x\(cq or \(oq$\(cq denotes hex as well\&. Leading zeros are not treated specially at all\&. Character constants may be enclosed in single or double quotes; there is no escape character\&. The ordering is little\-endian (reversed), so that the character constant \fI\*(Aqabcd\fR\*(Aq denotes 0x64636261 and not 0x61626364\&.
Packit c1f960
.sp
Packit c1f960
Local labels begin with a period, and their \(oqlocality\(cq is granted by the assembler prepending the name of the previous non\-local symbol\&. Thus declaring a label \(oq\&.loop\(cq after a label \(oqlabel\(cq has actually defined a symbol called \(oqlabel\&.loop\(cq\&.
Packit c1f960
.SH "DIRECTIVES"
Packit c1f960
.sp
Packit c1f960
\fISECTION\fR \fIname\fR or \fISEGMENT\fR \fIname\fR causes \fBnasm\fR to direct all following code to the named section\&. Section names vary with output file format, although most formats support the names \fI\&.text\fR, \fI\&.data\fR and \fI\&.bss\fR\&. (The exception is the \fIobj\fR format, in which all segments are user\-definable\&.)
Packit c1f960
.sp
Packit c1f960
\fIABSOLUTE\fR \fIaddress\fR causes \fBnasm\fR to position its notional assembly point at an absolute address: so no code or data may be generated, but you can use \fIRESB\fR, \fIRESW\fR and \fIRESD\fR to move the assembly point further on, and you can define labels\&. So this directive may be used to define data structures\&. When you have finished doing absolute assembly, you must issue another \fISECTION\fR directive to return to normal assembly\&.
Packit c1f960
.sp
Packit c1f960
\fIBITS\fR \fI16\fR, \fIBITS\fR \fI32\fR or \fIBITS\fR \fI64\fR switches the default processor mode for which \fBnasm\fR is generating code: it is equivalent to \fIUSE16\fR or \fIUSE32\fR in DOS assemblers\&.
Packit c1f960
.sp
Packit c1f960
\fIEXTERN\fR \fIsymbol\fR and \fIGLOBAL\fR \fIsymbol\fR import and export symbol definitions, respectively, from and to other modules\&. Note that the \fIGLOBAL\fR directive must appear before the definition of the symbol it refers to\&.
Packit c1f960
.sp
Packit c1f960
\fISTRUC\fR \fIstrucname\fR and \fIENDSTRUC\fR, when used to bracket a number of \fIRESB\fR, \fIRESW\fR or similar instructions, define a data structure\&. In addition to defining the offsets of the structure members, the construct also defines a symbol for the size of the structure, which is simply the structure name with \fIsize\fR tacked on to the end\&.
Packit c1f960
.SH "FORMAT-SPECIFIC DIRECTIVES"
Packit c1f960
.sp
Packit c1f960
\fIORG\fR \fIaddress\fR is used by the \fIbin\fR flat\-form binary output format, and specifies the address at which the output code will eventually be loaded\&.
Packit c1f960
.sp
Packit c1f960
\fIGROUP\fR \fIgrpname\fR \fIseg1\fR \fIseg2\fR\&... is used by the obj (Microsoft 16\-bit) output format, and defines segment groups\&. This format also uses \fIUPPERCASE\fR, which directs that all segment, group and symbol names output to the object file should be in uppercase\&. Note that the actual assembly is still case sensitive\&.
Packit c1f960
.sp
Packit c1f960
\fILIBRARY\fR \fIlibname\fR is used by the \fIrdf\fR output format, and causes a dependency record to be written to the output file which indicates that the program requires a certain library in order to run\&.
Packit c1f960
.SH "MACRO PREPROCESSOR"
Packit c1f960
.sp
Packit c1f960
Single\-line macros are defined using the \fI%define\fR or \fI%idefine\fR commands, in a similar fashion to the C preprocessor\&. They can be overloaded with respect to number of parameters, although defining a macro with no parameters prevents the definition of any macro with the same name taking parameters, and vice versa\&. \fI%define\fR defines macros whose names match case\-sensitively, whereas \fI%idefine\fR defines case\-insensitive macros\&.
Packit c1f960
.sp
Packit c1f960
Multi\-line macros are defined using \fI%macro\fR and \fI%imacro\fR (the distinction is the same as that between \fI%define\fR and \fI%idefine\fR), whose syntax is as follows
Packit c1f960
.sp
Packit c1f960
.if n \{\
Packit c1f960
.RS 4
Packit c1f960
.\}
Packit c1f960
.nf
Packit c1f960
%macro name minprm[\-maxprm][+][\&.nolist] [defaults]
Packit c1f960
        <some lines of macro expansion text>
Packit c1f960
%endmacro
Packit c1f960
.fi
Packit c1f960
.if n \{\
Packit c1f960
.RE
Packit c1f960
.\}
Packit c1f960
.sp
Packit c1f960
Again, these macros may be overloaded\&. The trailing plus sign indicates that any parameters after the last one get subsumed, with their separating commas, into the last parameter\&. The \fIdefaults\fR part can be used to specify defaults for unspecified macro parameters after \fIminparam\fR\&. \fI%endm\fR is a valid synonym for \fI%endmacro\fR\&.
Packit c1f960
.sp
Packit c1f960
To refer to the macro parameters within a macro expansion, you use \fI%1\fR, \fI%2\fR and so on\&. You can also enforce that a macro parameter should contain a condition code by using \fI%+1\fR, and you can invert the condition code by using \fI%\-1\fR\&. You can also define a label specific to a macro invocation by prefixing it with a double \(oq%\(cq sign\&.
Packit c1f960
.sp
Packit c1f960
Files can be included using the \fI%include\fR directive, which works like C\&.
Packit c1f960
.sp
Packit c1f960
The preprocessor has a \(oqcontext stack\(cq, which may be used by one macro to store information that a later one will retrieve\&. You can push a context on the stack using \fI%push\fR, remove one using \fI%pop\fR, and change the name of the top context (without disturbing any associated definitions) using \fI%repl\fR\&. Labels and \fI%define\fR macros specific to the top context may be defined by prefixing their names with %$, and things specific to the next context down with %$$, and so on\&.
Packit c1f960
.sp
Packit c1f960
Conditional assembly is done by means of \fI%ifdef\fR, \fI%ifndef\fR, \fI%else\fR and \fI%endif\fR as in C\&. (Except that \fI%ifdef\fR can accept several putative macro names, and will evaluate TRUE if any of them is defined\&.) In addition, the directives \fI%ifctx\fR and \fI%ifnctx\fR can be used to condition on the name of the top context on the context stack\&. The obvious set of \(oqelse\-if\(cq directives, \fI%elifdef\fR, \fI%elifndef\fR, \fI%elifctx\fR and \fI%elifnctx\fR are also supported\&.
Packit c1f960
.SH "BUGS"
Packit c1f960
.sp
Packit c1f960
Please report bugs through the bug tracker function at \m[blue]\fBhttp://nasm\&.us\fR\m[]\&.
Packit c1f960
.SH "SEE ALSO"
Packit c1f960
.sp
Packit c1f960
\fBas\fR(1), \fBld\fR(1)\&.