[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[52d29f7] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[0ddbe4e] | 7 | <!ENTITY NASM-download-http "http://www.nasm.us/pub/nasm/releasebuilds/&NASM-version;/nasm-&NASM-version;.tar.bz2">
|
---|
[df3fa26] | 8 | <!ENTITY NASM-download-ftp " ">
|
---|
| 9 | <!ENTITY NASM-md5sum "aa229cdc849293813bff52502772f73c">
|
---|
| 10 | <!ENTITY NASM-size "782 KB">
|
---|
| 11 | <!ENTITY NASM-buildsize "24 MB (includes building and installing all docs)">
|
---|
| 12 | <!ENTITY NASM-time "0.3 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>
|
---|
[61db33a] | 57 | <!--
|
---|
[60791bf] | 58 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 59 | <itemizedlist spacing="compact">
|
---|
[bccbdaea] | 60 | <listitem>
|
---|
[60791bf] | 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>
|
---|
[61db33a] | 65 | -->
|
---|
[5eaa6873] | 66 | <bridgehead renderas="sect3">NASM Dependencies</bridgehead>
|
---|
| 67 |
|
---|
| 68 | <bridgehead renderas="sect4">Optional (for Building Documentation)</bridgehead>
|
---|
[520f6b4f] | 69 | <para role="optional"><xref linkend="tetex"/>, and
|
---|
[aa8ef3bc] | 70 | <!-- <xref linkend="espgs"/> or --><xref linkend="gs"/></para>
|
---|
[5eaa6873] | 71 |
|
---|
[1039de3] | 72 | <para condition="html" role="usernotes">User Notes:
|
---|
| 73 | <ulink url="&blfs-wiki;/nasm"/></para>
|
---|
| 74 |
|
---|
[5eaa6873] | 75 | </sect2>
|
---|
| 76 |
|
---|
| 77 | <sect2 role="installation">
|
---|
| 78 | <title>Installation of NASM</title>
|
---|
| 79 |
|
---|
[7cd76d62] | 80 | <para>Install <application>NASM</application> by running
|
---|
[5eaa6873] | 81 | the following commands:</para>
|
---|
| 82 |
|
---|
[61db33a] | 83 | <screen><userinput>./configure --prefix=/usr &&
|
---|
[9519b52] | 84 | make &&
|
---|
| 85 | make -C rdoff/doc &&
|
---|
[5eaa6873] | 86 | make -C rdoff/doc html</userinput></screen>
|
---|
[9519b52] | 87 |
|
---|
[df3fa26] | 88 | <para>To build the base <application>NASM</application> and RDOFF PDF
|
---|
| 89 | documentation, ensure you have <xref linkend="gs"/> installed and
|
---|
| 90 | issue:</para>
|
---|
[9519b52] | 91 |
|
---|
[df3fa26] | 92 | <screen><userinput>make doc &&
|
---|
| 93 | make -C rdoff/doc pdf</userinput></screen>
|
---|
[9519b52] | 94 |
|
---|
[7cd76d62] | 95 | <para>To build the RDOFF Postscript documentation,
|
---|
[520f6b4f] | 96 | ensure you have <xref linkend="tetex"/> installed and issue:</para>
|
---|
[9519b52] | 97 |
|
---|
[5eaa6873] | 98 | <screen><userinput>sed -i -e "s/dvips \$</& -o rdoff.ps/" rdoff/doc/Makefile &&
|
---|
| 99 | make -C rdoff/doc ps</userinput></screen>
|
---|
[9519b52] | 100 |
|
---|
[5eaa6873] | 101 | <para>This package does not come with a test suite.</para>
|
---|
[87053af] | 102 |
|
---|
[5eaa6873] | 103 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[bd23186f] | 104 |
|
---|
[df3fa26] | 105 | <screen role="root"><userinput>make install install_rdf &&
|
---|
| 106 | install -v -m755 -d /usr/share/doc/nasm-&NASM-version;/html &&
|
---|
| 107 | install -v -m644 rdoff/doc/v1-v2.txt \
|
---|
| 108 | /usr/share/doc/nasm-&NASM-version; &&
|
---|
| 109 | cp -v -R rdoff/doc/rdoff \
|
---|
| 110 | /usr/share/doc/nasm-&NASM-version;/html &&
|
---|
| 111 | install -v -m644 rdoff/doc/rdoff.info* \
|
---|
| 112 | /usr/share/info &&
|
---|
| 113 | pushd /usr/share/info &&
|
---|
| 114 | rm -fv dir &&
|
---|
| 115 | for FILENAME in *; do install-info $FILENAME dir; done &&
|
---|
[0af769f] | 116 | unset FILENAME &&
|
---|
[df3fa26] | 117 | popd</userinput></screen>
|
---|
[5eaa6873] | 118 |
|
---|
[7cd76d62] | 119 | <para>If you built the <application>Ghostscript</application> generated
|
---|
| 120 | documentation, install it using the following commands as the
|
---|
[5eaa6873] | 121 | <systemitem class="username">root</systemitem> user:</para>
|
---|
| 122 |
|
---|
[df3fa26] | 123 | <screen role="root"><userinput>sed -i 's|doc/nasm|share/doc/nasm-&NASM-version;|' doc/Makefile &&
|
---|
| 124 | make install_doc &&
|
---|
| 125 |
|
---|
| 126 | pushd /usr/share/info &&
|
---|
| 127 | rm -fv dir &&
|
---|
| 128 | for FILENAME in *; do install-info $FILENAME dir; done &&
|
---|
[0af769f] | 129 | unset FILENAME &&
|
---|
[df3fa26] | 130 | popd &&
|
---|
| 131 |
|
---|
| 132 | install -v -m644 rdoff/doc/rdoff.pdf \
|
---|
| 133 | /usr/share/doc/nasm-&NASM-version;</userinput></screen>
|
---|
[5eaa6873] | 134 |
|
---|
[7cd76d62] | 135 | <para>Lastly, if you built the RDOFF Postscript documentation, install it
|
---|
| 136 | using the following command as the
|
---|
[5eaa6873] | 137 | <systemitem class="username">root</systemitem> user:</para>
|
---|
| 138 |
|
---|
[df3fa26] | 139 | <screen role="root"><userinput>install -v -m644 rdoff/doc/rdoff.ps \
|
---|
| 140 | /usr/share/doc/nasm-&NASM-version;</userinput></screen>
|
---|
[5eaa6873] | 141 |
|
---|
| 142 | </sect2>
|
---|
| 143 |
|
---|
| 144 | <sect2 role="content">
|
---|
| 145 | <title>Contents</title>
|
---|
| 146 |
|
---|
| 147 | <segmentedlist>
|
---|
| 148 | <segtitle>Installed Programs</segtitle>
|
---|
| 149 | <segtitle>Installed Libraries</segtitle>
|
---|
| 150 | <segtitle>Installed Directories</segtitle>
|
---|
| 151 |
|
---|
| 152 | <seglistitem>
|
---|
[61db33a] | 153 | <seg>nasm, ndisasm, ldrdf, rdf2bin, rdf2com, rdf2ihx, rdf2ith, rdf2srec,
|
---|
| 154 | rdfdump, rdflib, and rdx</seg>
|
---|
[5eaa6873] | 155 | <seg>None</seg>
|
---|
[df3fa26] | 156 | <seg>/usr/share/doc/nasm-&NASM-version;</seg>
|
---|
[5eaa6873] | 157 | </seglistitem>
|
---|
| 158 | </segmentedlist>
|
---|
| 159 |
|
---|
| 160 | <variablelist>
|
---|
| 161 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 162 | <?dbfo list-presentation="list"?>
|
---|
| 163 | <?dbhtml list-presentation="table"?>
|
---|
| 164 |
|
---|
| 165 | <varlistentry id="nasm-prog">
|
---|
| 166 | <term><command>nasm</command></term>
|
---|
| 167 | <listitem>
|
---|
| 168 | <para>is a portable 80x86 assembler.</para>
|
---|
| 169 | <indexterm zone="NASM nasm-prog">
|
---|
| 170 | <primary sortas="b-nasm">nasm</primary>
|
---|
| 171 | </indexterm>
|
---|
| 172 | </listitem>
|
---|
| 173 | </varlistentry>
|
---|
| 174 |
|
---|
| 175 | <varlistentry id="ndisasm">
|
---|
| 176 | <term><command>ndisasm</command></term>
|
---|
| 177 | <listitem>
|
---|
| 178 | <para>is an 80x86 binary file disassembler.</para>
|
---|
| 179 | <indexterm zone="NASM ndisasm">
|
---|
| 180 | <primary sortas="b-ndisasm">ndisasm</primary>
|
---|
| 181 | </indexterm>
|
---|
| 182 | </listitem>
|
---|
| 183 | </varlistentry>
|
---|
| 184 |
|
---|
| 185 | <varlistentry id="ldrdf">
|
---|
| 186 | <term><command>ldrdf</command></term>
|
---|
| 187 | <listitem>
|
---|
| 188 | <para>is an RDOFF linker.</para>
|
---|
| 189 | <indexterm zone="NASM ldrdf">
|
---|
| 190 | <primary sortas="b-ldrdf">ldrdf</primary>
|
---|
| 191 | </indexterm>
|
---|
| 192 | </listitem>
|
---|
[61db33a] | 193 | </varlistentry>
|
---|
| 194 |
|
---|
| 195 | <varlistentry id="rdf2bin">
|
---|
| 196 | <term><command>rdf2bin</command></term>
|
---|
| 197 | <listitem>
|
---|
| 198 | <para>converts an RDOFF object file to flat binary.</para>
|
---|
| 199 | <indexterm zone="NASM rdf2bin">
|
---|
| 200 | <primary sortas="b-rdf2bin">rdf2bin</primary>
|
---|
| 201 | </indexterm>
|
---|
| 202 | </listitem>
|
---|
[5eaa6873] | 203 | </varlistentry>
|
---|
| 204 |
|
---|
| 205 | <varlistentry id="rdfdump">
|
---|
| 206 | <term><command>rdfdump</command></term>
|
---|
| 207 | <listitem>
|
---|
| 208 | <para>dumps the contents of an RDOFF file.</para>
|
---|
| 209 | <indexterm zone="NASM rdfdump">
|
---|
| 210 | <primary sortas="b-rdfdump">rdfdump</primary>
|
---|
| 211 | </indexterm>
|
---|
| 212 | </listitem>
|
---|
| 213 | </varlistentry>
|
---|
| 214 |
|
---|
| 215 | <varlistentry id="rdflib">
|
---|
| 216 | <term><command>rdflib</command></term>
|
---|
| 217 | <listitem>
|
---|
| 218 | <para>is an RDOFF librarian.</para>
|
---|
| 219 | <indexterm zone="NASM rdflib">
|
---|
| 220 | <primary sortas="b-rdflib">rdflib</primary>
|
---|
| 221 | </indexterm>
|
---|
| 222 | </listitem>
|
---|
| 223 | </varlistentry>
|
---|
| 224 |
|
---|
| 225 | <varlistentry id="rdx">
|
---|
| 226 | <term><command>rdx</command></term>
|
---|
| 227 | <listitem>
|
---|
| 228 | <para>is used to load and execute an RDOFF module.</para>
|
---|
| 229 | <indexterm zone="NASM rdx">
|
---|
| 230 | <primary sortas="b-rdx">rdx</primary>
|
---|
| 231 | </indexterm>
|
---|
| 232 | </listitem>
|
---|
| 233 | </varlistentry>
|
---|
| 234 |
|
---|
| 235 | </variablelist>
|
---|
| 236 |
|
---|
| 237 | </sect2>
|
---|
[284d8e17] | 238 |
|
---|
| 239 | </sect1>
|
---|