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