[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 " ">
|
---|
[de6ff5dc] | 9 | <!ENTITY NASM-md5sum "2e02cb6e90f52950eaaa8cce7a9f2327">
|
---|
| 10 | <!ENTITY NASM-size "800 KB">
|
---|
| 11 | <!ENTITY NASM-buildsize "19 MB" >
|
---|
[e31502b1] | 12 | <!ENTITY NASM-time "0.1 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 |
|
---|
[7ecc1c4b] | 36 | &lfs71_checked;
|
---|
[a9e90a5] | 37 |
|
---|
[5eaa6873] | 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
| 40 | <listitem>
|
---|
| 41 | <para>Download (HTTP): <ulink url="&NASM-download-http;"/></para>
|
---|
| 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>Download (FTP): <ulink url="&NASM-download-ftp;"/></para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>Download MD5 sum: &NASM-md5sum;</para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>Download size: &NASM-size;</para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Estimated disk space required: &NASM-buildsize;</para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>Estimated build time: &NASM-time;</para>
|
---|
| 57 | </listitem>
|
---|
| 58 | </itemizedlist>
|
---|
[e31502b1] | 59 |
|
---|
[60791bf] | 60 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 61 | <itemizedlist spacing="compact">
|
---|
[bccbdaea] | 62 | <listitem>
|
---|
[e31502b1] | 63 | <para>Optional documentation: <ulink
|
---|
| 64 | url="http://www.nasm.us/pub/nasm/releasebuilds/&NASM-version;/nasm-&NASM-version;-xdoc.tar.bz2"/></para>
|
---|
[60791bf] | 65 | </listitem>
|
---|
| 66 | </itemizedlist>
|
---|
[e31502b1] | 67 |
|
---|
[1039de3] | 68 | <para condition="html" role="usernotes">User Notes:
|
---|
| 69 | <ulink url="&blfs-wiki;/nasm"/></para>
|
---|
| 70 |
|
---|
[5eaa6873] | 71 | </sect2>
|
---|
| 72 |
|
---|
| 73 | <sect2 role="installation">
|
---|
| 74 | <title>Installation of NASM</title>
|
---|
| 75 |
|
---|
[e31502b1] | 76 | <para>If you downloaded the optional documentation, put it into the
|
---|
| 77 | source tree:</para>
|
---|
| 78 |
|
---|
| 79 | <screen><userinput>pushd .. &&
|
---|
| 80 | tar -xf nasm-&NASM-version;-xdoc.tar.bz2 &&
|
---|
| 81 | popd</userinput></screen>
|
---|
| 82 |
|
---|
[7cd76d62] | 83 | <para>Install <application>NASM</application> by running
|
---|
[5eaa6873] | 84 | the following commands:</para>
|
---|
| 85 |
|
---|
[61db33a] | 86 | <screen><userinput>./configure --prefix=/usr &&
|
---|
[e31502b1] | 87 | make</userinput></screen>
|
---|
| 88 |
|
---|
[5eaa6873] | 89 | <para>This package does not come with a test suite.</para>
|
---|
[87053af] | 90 |
|
---|
[5eaa6873] | 91 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[bd23186f] | 92 |
|
---|
[e31502b1] | 93 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 94 |
|
---|
| 95 | <para>If you downloaded the optional documentation, install it with the
|
---|
| 96 | following instructions as the <systemitem
|
---|
| 97 | class="username">root</systemitem> user:</para>
|
---|
| 98 |
|
---|
| 99 | <screen role="root"><userinput>install -m755 -d /usr/share/doc/nasm-&NASM-version;/html &&
|
---|
| 100 | cp -v doc/html/*.html /usr/share/doc/nasm-&NASM-version;/html &&
|
---|
| 101 | cp -v doc/*.{txt,ps,pdf} /usr/share/doc/nasm-&NASM-version; &&
|
---|
| 102 | cp -v doc/info/* /usr/share/info &&
|
---|
| 103 | pushd /usr/share/info &&
|
---|
| 104 | install-info nasm.info dir &&
|
---|
| 105 | popd</userinput></screen>
|
---|
| 106 |
|
---|
| 107 | <!-- install_rdf &&
|
---|
[df3fa26] | 108 | install -v -m755 -d /usr/share/doc/nasm-&NASM-version;/html &&
|
---|
[1f828cf] | 109 | install -v -m644 rdoff/doc/rdoff/* \
|
---|
[df3fa26] | 110 | /usr/share/doc/nasm-&NASM-version;/html &&
|
---|
[1f828cf] | 111 | install -v -m644 rdoff/doc/{*.txt,rdoff.html} \
|
---|
| 112 | /usr/share/doc/nasm-&NASM-version; &&
|
---|
[df3fa26] | 113 | install -v -m644 rdoff/doc/rdoff.info* \
|
---|
| 114 | /usr/share/info &&
|
---|
| 115 | pushd /usr/share/info &&
|
---|
| 116 | rm -fv dir &&
|
---|
| 117 | for FILENAME in *; do install-info $FILENAME dir; done &&
|
---|
[0af769f] | 118 | unset FILENAME &&
|
---|
[df3fa26] | 119 | popd</userinput></screen>
|
---|
[5eaa6873] | 120 |
|
---|
[7cd76d62] | 121 | <para>If you built the <application>Ghostscript</application> generated
|
---|
| 122 | documentation, install it using the following commands as the
|
---|
[5eaa6873] | 123 | <systemitem class="username">root</systemitem> user:</para>
|
---|
| 124 |
|
---|
[df3fa26] | 125 | <screen role="root"><userinput>sed -i 's|doc/nasm|share/doc/nasm-&NASM-version;|' doc/Makefile &&
|
---|
| 126 | make install_doc &&
|
---|
| 127 |
|
---|
| 128 | pushd /usr/share/info &&
|
---|
| 129 | rm -fv dir &&
|
---|
| 130 | for FILENAME in *; do install-info $FILENAME dir; done &&
|
---|
[0af769f] | 131 | unset FILENAME &&
|
---|
[a9e90a5] | 132 | popd</userinput></screen>
|
---|
[5eaa6873] | 133 |
|
---|
[a9e90a5] | 134 | <para>Lastly, if you built the RDOFF PDF and Postscript documentation,
|
---|
| 135 | install it using the following command as the
|
---|
[5eaa6873] | 136 | <systemitem class="username">root</systemitem> user:</para>
|
---|
| 137 |
|
---|
[a9e90a5] | 138 | <screen role="root"><userinput>install -v -m644 rdoff/doc/rdoff.p{df,s} \
|
---|
[df3fa26] | 139 | /usr/share/doc/nasm-&NASM-version;</userinput></screen>
|
---|
[e31502b1] | 140 | -->
|
---|
[5eaa6873] | 141 | </sect2>
|
---|
| 142 |
|
---|
| 143 | <sect2 role="content">
|
---|
| 144 | <title>Contents</title>
|
---|
| 145 |
|
---|
| 146 | <segmentedlist>
|
---|
| 147 | <segtitle>Installed Programs</segtitle>
|
---|
| 148 | <segtitle>Installed Libraries</segtitle>
|
---|
| 149 | <segtitle>Installed Directories</segtitle>
|
---|
| 150 |
|
---|
| 151 | <seglistitem>
|
---|
[61db33a] | 152 | <seg>nasm, ndisasm, ldrdf, rdf2bin, rdf2com, rdf2ihx, rdf2ith, rdf2srec,
|
---|
| 153 | rdfdump, rdflib, and rdx</seg>
|
---|
[5eaa6873] | 154 | <seg>None</seg>
|
---|
[df3fa26] | 155 | <seg>/usr/share/doc/nasm-&NASM-version;</seg>
|
---|
[5eaa6873] | 156 | </seglistitem>
|
---|
| 157 | </segmentedlist>
|
---|
| 158 |
|
---|
| 159 | <variablelist>
|
---|
| 160 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 161 | <?dbfo list-presentation="list"?>
|
---|
| 162 | <?dbhtml list-presentation="table"?>
|
---|
| 163 |
|
---|
| 164 | <varlistentry id="nasm-prog">
|
---|
| 165 | <term><command>nasm</command></term>
|
---|
| 166 | <listitem>
|
---|
| 167 | <para>is a portable 80x86 assembler.</para>
|
---|
| 168 | <indexterm zone="NASM nasm-prog">
|
---|
| 169 | <primary sortas="b-nasm">nasm</primary>
|
---|
| 170 | </indexterm>
|
---|
| 171 | </listitem>
|
---|
| 172 | </varlistentry>
|
---|
| 173 |
|
---|
| 174 | <varlistentry id="ndisasm">
|
---|
| 175 | <term><command>ndisasm</command></term>
|
---|
| 176 | <listitem>
|
---|
| 177 | <para>is an 80x86 binary file disassembler.</para>
|
---|
| 178 | <indexterm zone="NASM ndisasm">
|
---|
| 179 | <primary sortas="b-ndisasm">ndisasm</primary>
|
---|
| 180 | </indexterm>
|
---|
| 181 | </listitem>
|
---|
| 182 | </varlistentry>
|
---|
| 183 |
|
---|
| 184 | <varlistentry id="ldrdf">
|
---|
| 185 | <term><command>ldrdf</command></term>
|
---|
| 186 | <listitem>
|
---|
| 187 | <para>is an RDOFF linker.</para>
|
---|
| 188 | <indexterm zone="NASM ldrdf">
|
---|
| 189 | <primary sortas="b-ldrdf">ldrdf</primary>
|
---|
| 190 | </indexterm>
|
---|
| 191 | </listitem>
|
---|
[61db33a] | 192 | </varlistentry>
|
---|
| 193 |
|
---|
| 194 | <varlistentry id="rdf2bin">
|
---|
| 195 | <term><command>rdf2bin</command></term>
|
---|
| 196 | <listitem>
|
---|
| 197 | <para>converts an RDOFF object file to flat binary.</para>
|
---|
| 198 | <indexterm zone="NASM rdf2bin">
|
---|
| 199 | <primary sortas="b-rdf2bin">rdf2bin</primary>
|
---|
| 200 | </indexterm>
|
---|
| 201 | </listitem>
|
---|
[5eaa6873] | 202 | </varlistentry>
|
---|
| 203 |
|
---|
| 204 | <varlistentry id="rdfdump">
|
---|
| 205 | <term><command>rdfdump</command></term>
|
---|
| 206 | <listitem>
|
---|
| 207 | <para>dumps the contents of an RDOFF file.</para>
|
---|
| 208 | <indexterm zone="NASM rdfdump">
|
---|
| 209 | <primary sortas="b-rdfdump">rdfdump</primary>
|
---|
| 210 | </indexterm>
|
---|
| 211 | </listitem>
|
---|
| 212 | </varlistentry>
|
---|
| 213 |
|
---|
| 214 | <varlistentry id="rdflib">
|
---|
| 215 | <term><command>rdflib</command></term>
|
---|
| 216 | <listitem>
|
---|
| 217 | <para>is an RDOFF librarian.</para>
|
---|
| 218 | <indexterm zone="NASM rdflib">
|
---|
| 219 | <primary sortas="b-rdflib">rdflib</primary>
|
---|
| 220 | </indexterm>
|
---|
| 221 | </listitem>
|
---|
| 222 | </varlistentry>
|
---|
| 223 |
|
---|
| 224 | <varlistentry id="rdx">
|
---|
| 225 | <term><command>rdx</command></term>
|
---|
| 226 | <listitem>
|
---|
| 227 | <para>is used to load and execute an RDOFF module.</para>
|
---|
| 228 | <indexterm zone="NASM rdx">
|
---|
| 229 | <primary sortas="b-rdx">rdx</primary>
|
---|
| 230 | </indexterm>
|
---|
| 231 | </listitem>
|
---|
| 232 | </varlistentry>
|
---|
| 233 |
|
---|
| 234 | </variablelist>
|
---|
| 235 |
|
---|
| 236 | </sect2>
|
---|
[284d8e17] | 237 |
|
---|
| 238 | </sect1>
|
---|