| \C{intro} Introduction |
| |
| \H{whatsnasm} What Is NASM? |
| |
| The Netwide Assembler, NASM, is an 80x86 and x86-64 assembler designed |
| for portability and modularity. It supports a range of object file |
| formats, including \i{Linux} and \i{BSD} \c{a.out}, ELF, Mach-O, 16-bit and |
| 32-bit \c{.obj} (OMF) format, COFF (including its Win32 and Win64 |
| variants.) It can also output plain binary files, Intel hex and |
| Motorola S-Record formats. Its syntax is designed to be simple and |
| easy to understand, similar to the syntax in the Intel Software |
| Developer Manual with minimal complexity. It supports all currently |
| known x86 architectural extensions, and has strong support for macros. |
| |
| \S{legal} \i{License} |
| |
| NASM is under the so-called 2-clause BSD license, also |
| known as the simplified BSD license: |
| |
| Copyright \m{year} the NASM Authors - All rights reserved. |
| |
| Redistribution and use in source and binary forms, with or without |
| modification, are permitted provided that the following conditions are |
| met: |
| |
| \b Redistributions of source code must retain the above copyright |
| notice, this list of conditions and the following disclaimer. |
| |
| \b Redistributions in binary form must reproduce the above copyright |
| notice, this list of conditions and the following disclaimer in the |
| documentation and/or other materials provided with the distribution. |
| |
| THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND |
| CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, |
| INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
| MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR |
| CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT |
| NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
| CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
| OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, |
| EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |