[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[52d29f7] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[5eaa6873] | 7 | <!ENTITY NASM-download-http "http://prdownloads.sourceforge.net/nasm/nasm-&NASM-version;.tar.bz2">
|
---|
| 8 | <!ENTITY NASM-download-ftp " ">
|
---|
| 9 | <!ENTITY NASM-md5sum "2032ad44c7359f7a9a166a40a633e772">
|
---|
| 10 | <!ENTITY NASM-size "543 KB">
|
---|
| 11 | <!ENTITY NASM-buildsize "17.3 MB (includes building and installing all docs)">
|
---|
[60791bf] | 12 | <!ENTITY NASM-time "0.2 SBU">
|
---|
[52d29f7] | 13 | ]>
|
---|
| 14 |
|
---|
[284d8e17] | 15 | <sect1 id="NASM" xreflabel="NASM-&NASM-version;">
|
---|
[5eaa6873] | 16 | <?dbhtml filename="NASM.html" ?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>NASM-&NASM-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="NASM">
|
---|
| 26 | <primary sortas="a-NASM">NASM</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to NASM</title>
|
---|
| 31 |
|
---|
[7cd76d62] | 32 | <para><application>NASM</application> (Netwide Assembler)
|
---|
| 33 | is an 80x86 assembler designed for portability and modularity. It includes a
|
---|
[5eaa6873] | 34 | disassembler as well.</para>
|
---|
| 35 |
|
---|
| 36 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 37 | <itemizedlist spacing="compact">
|
---|
| 38 | <listitem>
|
---|
| 39 | <para>Download (HTTP): <ulink url="&NASM-download-http;"/></para>
|
---|
| 40 | </listitem>
|
---|
| 41 | <listitem>
|
---|
| 42 | <para>Download (FTP): <ulink url="&NASM-download-ftp;"/></para>
|
---|
| 43 | </listitem>
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>Download MD5 sum: &NASM-md5sum;</para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>Download size: &NASM-size;</para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>Estimated disk space required: &NASM-buildsize;</para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>Estimated build time: &NASM-time;</para>
|
---|
| 55 | </listitem>
|
---|
| 56 | </itemizedlist>
|
---|
| 57 |
|
---|
[60791bf] | 58 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 59 | <itemizedlist spacing="compact">
|
---|
| 60 | <listitem>
|
---|
| 61 | <para>Required patch to fix a buffer overrun vulnerability: <ulink
|
---|
| 62 | url="&patch-root;/nasm-&NASM-version;-security_fix-1.patch"/></para>
|
---|
| 63 | </listitem>
|
---|
| 64 | </itemizedlist>
|
---|
| 65 |
|
---|
[5eaa6873] | 66 | <bridgehead renderas="sect3">NASM Dependencies</bridgehead>
|
---|
| 67 |
|
---|
| 68 | <bridgehead renderas="sect4">Optional (for Building Documentation)</bridgehead>
|
---|
[7cd76d62] | 69 | <para><xref linkend="tex"/>, and
|
---|
[5eaa6873] | 70 | <xref linkend="espgs"/> or <xref linkend="gs"/></para>
|
---|
| 71 |
|
---|
| 72 | </sect2>
|
---|
| 73 |
|
---|
| 74 | <sect2 role="installation">
|
---|
| 75 | <title>Installation of NASM</title>
|
---|
| 76 |
|
---|
[7cd76d62] | 77 | <para>Install <application>NASM</application> by running
|
---|
[5eaa6873] | 78 | the following commands:</para>
|
---|
| 79 |
|
---|
[60791bf] | 80 | <screen><userinput>patch -Np1 -i ../nasm-&NASM-version;-security_fix-1.patch &&
|
---|
| 81 | ./configure --prefix=/usr &&
|
---|
[9519b52] | 82 | make &&
|
---|
| 83 | make -C rdoff/doc &&
|
---|
[5eaa6873] | 84 | make -C rdoff/doc html</userinput></screen>
|
---|
[9519b52] | 85 |
|
---|
[7cd76d62] | 86 | <para>To build the base <application>NASM</application> documentation,
|
---|
[5eaa6873] | 87 | ensure you have <application>Ghostscript</application> installed and issue:</para>
|
---|
[9519b52] | 88 |
|
---|
[5eaa6873] | 89 | <screen><userinput>make doc</userinput></screen>
|
---|
[9519b52] | 90 |
|
---|
[7cd76d62] | 91 | <para>To build the RDOFF Postscript documentation,
|
---|
[5eaa6873] | 92 | ensure you have <xref linkend="tex"/> installed and issue:</para>
|
---|
[9519b52] | 93 |
|
---|
[5eaa6873] | 94 | <screen><userinput>sed -i -e "s/dvips \$</& -o rdoff.ps/" rdoff/doc/Makefile &&
|
---|
| 95 | make -C rdoff/doc ps</userinput></screen>
|
---|
[9519b52] | 96 |
|
---|
[7cd76d62] | 97 | <para>To build the RDOFF PDF documentation, ensure you have
|
---|
[5eaa6873] | 98 | <application>Ghostscript</application> installed and issue:</para>
|
---|
[9519b52] | 99 |
|
---|
[5eaa6873] | 100 | <screen><userinput>make -C rdoff/doc pdf</userinput></screen>
|
---|
[bd23186f] | 101 |
|
---|
[5eaa6873] | 102 | <para>This package does not come with a test suite.</para>
|
---|
[87053af] | 103 |
|
---|
[5eaa6873] | 104 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[bd23186f] | 105 |
|
---|
[5eaa6873] | 106 | <screen role="root"><userinput>make install &&
|
---|
[9519b52] | 107 | make install_rdf &&
|
---|
| 108 | install -v -m644 rdoff/doc/rdoff.info /usr/share/info &&
|
---|
| 109 | install -v -m755 -d /usr/share/doc/nasm/html &&
|
---|
| 110 | install -v -m644 rdoff/doc/v1-v2.txt /usr/share/doc/nasm &&
|
---|
[5eaa6873] | 111 | cp -v -R rdoff/doc/rdoff /usr/share/doc/nasm/html</userinput></screen>
|
---|
| 112 |
|
---|
[7cd76d62] | 113 | <para>If you built the <application>Ghostscript</application> generated
|
---|
| 114 | documentation, install it using the following commands as the
|
---|
[5eaa6873] | 115 | <systemitem class="username">root</systemitem> user:</para>
|
---|
| 116 |
|
---|
| 117 | <screen role="root"><userinput>make install_doc &&
|
---|
| 118 | install -v -m644 rdoff/doc/rdoff.pdf /usr/share/doc/nasm</userinput></screen>
|
---|
| 119 |
|
---|
[7cd76d62] | 120 | <para>Lastly, if you built the RDOFF Postscript documentation, install it
|
---|
| 121 | using the following command as the
|
---|
[5eaa6873] | 122 | <systemitem class="username">root</systemitem> user:</para>
|
---|
| 123 |
|
---|
| 124 | <screen role="root"><userinput>install -v -m644 rdoff/doc/rdoff.ps /usr/share/doc/nasm</userinput></screen>
|
---|
| 125 |
|
---|
| 126 | </sect2>
|
---|
| 127 |
|
---|
| 128 | <sect2 role="content">
|
---|
| 129 | <title>Contents</title>
|
---|
| 130 |
|
---|
| 131 | <segmentedlist>
|
---|
| 132 | <segtitle>Installed Programs</segtitle>
|
---|
| 133 | <segtitle>Installed Libraries</segtitle>
|
---|
| 134 | <segtitle>Installed Directories</segtitle>
|
---|
| 135 |
|
---|
| 136 | <seglistitem>
|
---|
[7cd76d62] | 137 | <seg>nasm, ndisasm, ldrdf, rdf2bin, rdf2com, rdf2ihx, rdfdump, rdflib, and
|
---|
[5eaa6873] | 138 | rdx</seg>
|
---|
| 139 | <seg>None</seg>
|
---|
| 140 | <seg>/usr/share/doc/nasm</seg>
|
---|
| 141 | </seglistitem>
|
---|
| 142 | </segmentedlist>
|
---|
| 143 |
|
---|
| 144 | <variablelist>
|
---|
| 145 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 146 | <?dbfo list-presentation="list"?>
|
---|
| 147 | <?dbhtml list-presentation="table"?>
|
---|
| 148 |
|
---|
| 149 | <varlistentry id="nasm-prog">
|
---|
| 150 | <term><command>nasm</command></term>
|
---|
| 151 | <listitem>
|
---|
| 152 | <para>is a portable 80x86 assembler.</para>
|
---|
| 153 | <indexterm zone="NASM nasm-prog">
|
---|
| 154 | <primary sortas="b-nasm">nasm</primary>
|
---|
| 155 | </indexterm>
|
---|
| 156 | </listitem>
|
---|
| 157 | </varlistentry>
|
---|
| 158 |
|
---|
| 159 | <varlistentry id="ndisasm">
|
---|
| 160 | <term><command>ndisasm</command></term>
|
---|
| 161 | <listitem>
|
---|
| 162 | <para>is an 80x86 binary file disassembler.</para>
|
---|
| 163 | <indexterm zone="NASM ndisasm">
|
---|
| 164 | <primary sortas="b-ndisasm">ndisasm</primary>
|
---|
| 165 | </indexterm>
|
---|
| 166 | </listitem>
|
---|
| 167 | </varlistentry>
|
---|
| 168 |
|
---|
| 169 | <varlistentry id="ldrdf">
|
---|
| 170 | <term><command>ldrdf</command></term>
|
---|
| 171 | <listitem>
|
---|
| 172 | <para>is an RDOFF linker.</para>
|
---|
| 173 | <indexterm zone="NASM ldrdf">
|
---|
| 174 | <primary sortas="b-ldrdf">ldrdf</primary>
|
---|
| 175 | </indexterm>
|
---|
| 176 | </listitem>
|
---|
| 177 | </varlistentry>
|
---|
| 178 |
|
---|
| 179 | <varlistentry id="rdfdump">
|
---|
| 180 | <term><command>rdfdump</command></term>
|
---|
| 181 | <listitem>
|
---|
| 182 | <para>dumps the contents of an RDOFF file.</para>
|
---|
| 183 | <indexterm zone="NASM rdfdump">
|
---|
| 184 | <primary sortas="b-rdfdump">rdfdump</primary>
|
---|
| 185 | </indexterm>
|
---|
| 186 | </listitem>
|
---|
| 187 | </varlistentry>
|
---|
| 188 |
|
---|
| 189 | <varlistentry id="rdflib">
|
---|
| 190 | <term><command>rdflib</command></term>
|
---|
| 191 | <listitem>
|
---|
| 192 | <para>is an RDOFF librarian.</para>
|
---|
| 193 | <indexterm zone="NASM rdflib">
|
---|
| 194 | <primary sortas="b-rdflib">rdflib</primary>
|
---|
| 195 | </indexterm>
|
---|
| 196 | </listitem>
|
---|
| 197 | </varlistentry>
|
---|
| 198 |
|
---|
| 199 | <varlistentry id="rdx">
|
---|
| 200 | <term><command>rdx</command></term>
|
---|
| 201 | <listitem>
|
---|
| 202 | <para>is used to load and execute an RDOFF module.</para>
|
---|
| 203 | <indexterm zone="NASM rdx">
|
---|
| 204 | <primary sortas="b-rdx">rdx</primary>
|
---|
| 205 | </indexterm>
|
---|
| 206 | </listitem>
|
---|
| 207 | </varlistentry>
|
---|
| 208 |
|
---|
| 209 | </variablelist>
|
---|
| 210 |
|
---|
| 211 | </sect2>
|
---|
[284d8e17] | 212 |
|
---|
| 213 | </sect1>
|
---|