[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 |
|
---|
[c6b192c] | 7 | <!ENTITY nasm-download-http "https://www.nasm.us/pub/nasm/releasebuilds/&nasm-version;/nasm-&nasm-version;.tar.xz">
|
---|
[efdd9de] | 8 | <!ENTITY nasm-download-ftp " ">
|
---|
[98fa3eaf] | 9 | <!ENTITY nasm-md5sum "d755ba0d16f94616c2907f8cab7c748b">
|
---|
| 10 | <!ENTITY nasm-size "993.8 KB">
|
---|
[15babcc] | 11 | <!ENTITY nasm-buildsize "41 MB" >
|
---|
[42aba059] | 12 | <!ENTITY nasm-time "0.2 SBU">
|
---|
[52d29f7] | 13 | ]>
|
---|
| 14 |
|
---|
[efdd9de] | 15 | <sect1 id="nasm" xreflabel="NASM-&nasm-version;">
|
---|
| 16 | <?dbhtml filename="nasm.html" ?>
|
---|
[5eaa6873] | 17 |
|
---|
| 18 |
|
---|
[efdd9de] | 19 | <title>NASM-&nasm-version;</title>
|
---|
[5eaa6873] | 20 |
|
---|
[efdd9de] | 21 | <indexterm zone="nasm">
|
---|
[5eaa6873] | 22 | <primary sortas="a-NASM">NASM</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to NASM</title>
|
---|
| 27 |
|
---|
[de33b2a] | 28 | <para>
|
---|
| 29 | <application>NASM</application> (Netwide Assembler) is an 80x86
|
---|
| 30 | assembler designed for portability and modularity. It includes a
|
---|
| 31 | disassembler as well.
|
---|
| 32 | </para>
|
---|
[5eaa6873] | 33 |
|
---|
[2314cd7] | 34 | &lfs120_checked;
|
---|
[a9e90a5] | 35 |
|
---|
[5eaa6873] | 36 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 37 | <itemizedlist spacing="compact">
|
---|
| 38 | <listitem>
|
---|
[de33b2a] | 39 | <para>
|
---|
| 40 | Download (HTTP): <ulink url="&nasm-download-http;"/>
|
---|
| 41 | </para>
|
---|
[5eaa6873] | 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
[de33b2a] | 44 | <para>
|
---|
| 45 | Download (FTP): <ulink url="&nasm-download-ftp;"/>
|
---|
| 46 | </para>
|
---|
[5eaa6873] | 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
[de33b2a] | 49 | <para>
|
---|
| 50 | Download MD5 sum: &nasm-md5sum;
|
---|
| 51 | </para>
|
---|
[5eaa6873] | 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
[de33b2a] | 54 | <para>
|
---|
| 55 | Download size: &nasm-size;
|
---|
| 56 | </para>
|
---|
[5eaa6873] | 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[de33b2a] | 59 | <para>
|
---|
| 60 | Estimated disk space required: &nasm-buildsize;
|
---|
| 61 | </para>
|
---|
[5eaa6873] | 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
[de33b2a] | 64 | <para>
|
---|
| 65 | Estimated build time: &nasm-time;
|
---|
| 66 | </para>
|
---|
[5eaa6873] | 67 | </listitem>
|
---|
| 68 | </itemizedlist>
|
---|
[e31502b1] | 69 |
|
---|
[60791bf] | 70 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 71 | <itemizedlist spacing="compact">
|
---|
[bccbdaea] | 72 | <listitem>
|
---|
[de33b2a] | 73 | <para>
|
---|
| 74 | Optional documentation: <ulink
|
---|
[c6b192c] | 75 | url="https://www.nasm.us/pub/nasm/releasebuilds/&nasm-version;/nasm-&nasm-version;-xdoc.tar.xz"/>
|
---|
[de33b2a] | 76 | </para>
|
---|
[60791bf] | 77 | </listitem>
|
---|
| 78 | </itemizedlist>
|
---|
[e31502b1] | 79 |
|
---|
[03e1f8e] | 80 | <bridgehead renderas="sect3">NASM Dependencies</bridgehead>
|
---|
| 81 |
|
---|
| 82 | <bridgehead renderas="sect4">Optional (for generating documentation):</bridgehead>
|
---|
| 83 | <para role="optional">
|
---|
| 84 | <xref linkend="asciidoc"/> and
|
---|
| 85 | <xref linkend="xmlto"/>
|
---|
| 86 | </para>
|
---|
| 87 |
|
---|
[42ddc30] | 88 | <para condition="html" role="usernotes">Editor Notes:
|
---|
[1039de3] | 89 | <ulink url="&blfs-wiki;/nasm"/></para>
|
---|
| 90 |
|
---|
[5eaa6873] | 91 | </sect2>
|
---|
| 92 |
|
---|
| 93 | <sect2 role="installation">
|
---|
| 94 | <title>Installation of NASM</title>
|
---|
| 95 |
|
---|
[de33b2a] | 96 | <para>
|
---|
| 97 | If you downloaded the optional documentation, put it into the
|
---|
| 98 | source tree:
|
---|
| 99 | </para>
|
---|
[e31502b1] | 100 |
|
---|
[efdd9de] | 101 | <screen><userinput>tar -xf ../nasm-&nasm-version;-xdoc.tar.xz --strip-components=1</userinput></screen>
|
---|
[e31502b1] | 102 |
|
---|
[de33b2a] | 103 | <para>
|
---|
| 104 | Install <application>NASM</application> by running
|
---|
| 105 | the following commands:
|
---|
| 106 | </para>
|
---|
[5eaa6873] | 107 |
|
---|
[61db33a] | 108 | <screen><userinput>./configure --prefix=/usr &&
|
---|
[e31502b1] | 109 | make</userinput></screen>
|
---|
| 110 |
|
---|
[de33b2a] | 111 | <para>
|
---|
| 112 | This package does not come with a test suite.
|
---|
| 113 | </para>
|
---|
[87053af] | 114 |
|
---|
[de33b2a] | 115 | <para>
|
---|
| 116 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 117 | </para>
|
---|
[bd23186f] | 118 |
|
---|
[efdd9de] | 119 | <!-- dev note: make INSTALLROOT=<DESTDIR> install -->
|
---|
| 120 |
|
---|
[e31502b1] | 121 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 122 |
|
---|
[de33b2a] | 123 | <para>
|
---|
| 124 | If you downloaded the optional documentation, install it with the
|
---|
| 125 | following instructions as the <systemitem
|
---|
| 126 | class="username">root</systemitem> user:
|
---|
| 127 | </para>
|
---|
[e31502b1] | 128 |
|
---|
[efdd9de] | 129 | <screen role="root"><userinput>install -m755 -d /usr/share/doc/nasm-&nasm-version;/html &&
|
---|
| 130 | cp -v doc/html/*.html /usr/share/doc/nasm-&nasm-version;/html &&
|
---|
[42aba059] | 131 | cp -v doc/*.{txt,ps,pdf} /usr/share/doc/nasm-&nasm-version;</userinput></screen>
|
---|
[92b0b42] | 132 |
|
---|
[5eaa6873] | 133 | </sect2>
|
---|
| 134 |
|
---|
| 135 | <sect2 role="content">
|
---|
| 136 | <title>Contents</title>
|
---|
| 137 |
|
---|
| 138 | <segmentedlist>
|
---|
| 139 | <segtitle>Installed Programs</segtitle>
|
---|
[c3c56b2] | 140 | <segtitle>Installed Libraries</segtitle>
|
---|
[92b0b42] | 141 | <segtitle>Installed Directory</segtitle>
|
---|
[5eaa6873] | 142 |
|
---|
| 143 | <seglistitem>
|
---|
[62e5e8f] | 144 | <seg>nasm and ndisasm</seg>
|
---|
[c3c56b2] | 145 | <seg>None</seg>
|
---|
[efdd9de] | 146 | <seg>/usr/share/doc/nasm-&nasm-version;</seg>
|
---|
[5eaa6873] | 147 | </seglistitem>
|
---|
| 148 | </segmentedlist>
|
---|
| 149 |
|
---|
| 150 | <variablelist>
|
---|
| 151 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 152 | <?dbfo list-presentation="list"?>
|
---|
| 153 | <?dbhtml list-presentation="table"?>
|
---|
| 154 |
|
---|
| 155 | <varlistentry id="nasm-prog">
|
---|
| 156 | <term><command>nasm</command></term>
|
---|
| 157 | <listitem>
|
---|
[de33b2a] | 158 | <para>
|
---|
[4c24eb0a] | 159 | is a portable 80x86 assembler
|
---|
[de33b2a] | 160 | </para>
|
---|
[efdd9de] | 161 | <indexterm zone="nasm nasm-prog">
|
---|
[5eaa6873] | 162 | <primary sortas="b-nasm">nasm</primary>
|
---|
| 163 | </indexterm>
|
---|
| 164 | </listitem>
|
---|
| 165 | </varlistentry>
|
---|
| 166 |
|
---|
| 167 | <varlistentry id="ndisasm">
|
---|
| 168 | <term><command>ndisasm</command></term>
|
---|
| 169 | <listitem>
|
---|
[de33b2a] | 170 | <para>
|
---|
[4c24eb0a] | 171 | is an 80x86 binary file disassembler
|
---|
[de33b2a] | 172 | </para>
|
---|
[efdd9de] | 173 | <indexterm zone="nasm ndisasm">
|
---|
[5eaa6873] | 174 | <primary sortas="b-ndisasm">ndisasm</primary>
|
---|
| 175 | </indexterm>
|
---|
| 176 | </listitem>
|
---|
| 177 | </varlistentry>
|
---|
| 178 |
|
---|
| 179 | </variablelist>
|
---|
| 180 |
|
---|
| 181 | </sect2>
|
---|
[284d8e17] | 182 |
|
---|
| 183 | </sect1>
|
---|