[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[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 " ">
|
---|
[24db1eb] | 9 | <!ENTITY nasm-md5sum "2b8c72c52eee4f20085065e68ac83b55">
|
---|
| 10 | <!ENTITY nasm-size "1008.1 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 |
|
---|
[3d6c1859] | 34 | &lfs122_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 |
|
---|
[5eaa6873] | 88 | </sect2>
|
---|
| 89 |
|
---|
| 90 | <sect2 role="installation">
|
---|
| 91 | <title>Installation of NASM</title>
|
---|
| 92 |
|
---|
[de33b2a] | 93 | <para>
|
---|
| 94 | If you downloaded the optional documentation, put it into the
|
---|
| 95 | source tree:
|
---|
| 96 | </para>
|
---|
[e31502b1] | 97 |
|
---|
[efdd9de] | 98 | <screen><userinput>tar -xf ../nasm-&nasm-version;-xdoc.tar.xz --strip-components=1</userinput></screen>
|
---|
[e31502b1] | 99 |
|
---|
[de33b2a] | 100 | <para>
|
---|
| 101 | Install <application>NASM</application> by running
|
---|
| 102 | the following commands:
|
---|
| 103 | </para>
|
---|
[5eaa6873] | 104 |
|
---|
[61db33a] | 105 | <screen><userinput>./configure --prefix=/usr &&
|
---|
[e31502b1] | 106 | make</userinput></screen>
|
---|
| 107 |
|
---|
[de33b2a] | 108 | <para>
|
---|
| 109 | This package does not come with a test suite.
|
---|
| 110 | </para>
|
---|
[87053af] | 111 |
|
---|
[de33b2a] | 112 | <para>
|
---|
| 113 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 114 | </para>
|
---|
[bd23186f] | 115 |
|
---|
[e31502b1] | 116 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 117 |
|
---|
[de33b2a] | 118 | <para>
|
---|
| 119 | If you downloaded the optional documentation, install it with the
|
---|
| 120 | following instructions as the <systemitem
|
---|
| 121 | class="username">root</systemitem> user:
|
---|
| 122 | </para>
|
---|
[e31502b1] | 123 |
|
---|
[efdd9de] | 124 | <screen role="root"><userinput>install -m755 -d /usr/share/doc/nasm-&nasm-version;/html &&
|
---|
| 125 | cp -v doc/html/*.html /usr/share/doc/nasm-&nasm-version;/html &&
|
---|
[42aba059] | 126 | cp -v doc/*.{txt,ps,pdf} /usr/share/doc/nasm-&nasm-version;</userinput></screen>
|
---|
[92b0b42] | 127 |
|
---|
[5eaa6873] | 128 | </sect2>
|
---|
| 129 |
|
---|
| 130 | <sect2 role="content">
|
---|
| 131 | <title>Contents</title>
|
---|
| 132 |
|
---|
| 133 | <segmentedlist>
|
---|
| 134 | <segtitle>Installed Programs</segtitle>
|
---|
[c3c56b2] | 135 | <segtitle>Installed Libraries</segtitle>
|
---|
[92b0b42] | 136 | <segtitle>Installed Directory</segtitle>
|
---|
[5eaa6873] | 137 |
|
---|
| 138 | <seglistitem>
|
---|
[62e5e8f] | 139 | <seg>nasm and ndisasm</seg>
|
---|
[c3c56b2] | 140 | <seg>None</seg>
|
---|
[efdd9de] | 141 | <seg>/usr/share/doc/nasm-&nasm-version;</seg>
|
---|
[5eaa6873] | 142 | </seglistitem>
|
---|
| 143 | </segmentedlist>
|
---|
| 144 |
|
---|
| 145 | <variablelist>
|
---|
| 146 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 147 | <?dbfo list-presentation="list"?>
|
---|
| 148 | <?dbhtml list-presentation="table"?>
|
---|
| 149 |
|
---|
| 150 | <varlistentry id="nasm-prog">
|
---|
| 151 | <term><command>nasm</command></term>
|
---|
| 152 | <listitem>
|
---|
[de33b2a] | 153 | <para>
|
---|
[4c24eb0a] | 154 | is a portable 80x86 assembler
|
---|
[de33b2a] | 155 | </para>
|
---|
[efdd9de] | 156 | <indexterm zone="nasm nasm-prog">
|
---|
[5eaa6873] | 157 | <primary sortas="b-nasm">nasm</primary>
|
---|
| 158 | </indexterm>
|
---|
| 159 | </listitem>
|
---|
| 160 | </varlistentry>
|
---|
| 161 |
|
---|
| 162 | <varlistentry id="ndisasm">
|
---|
| 163 | <term><command>ndisasm</command></term>
|
---|
| 164 | <listitem>
|
---|
[de33b2a] | 165 | <para>
|
---|
[4c24eb0a] | 166 | is an 80x86 binary file disassembler
|
---|
[de33b2a] | 167 | </para>
|
---|
[efdd9de] | 168 | <indexterm zone="nasm ndisasm">
|
---|
[5eaa6873] | 169 | <primary sortas="b-ndisasm">ndisasm</primary>
|
---|
| 170 | </indexterm>
|
---|
| 171 | </listitem>
|
---|
| 172 | </varlistentry>
|
---|
| 173 |
|
---|
| 174 | </variablelist>
|
---|
| 175 |
|
---|
| 176 | </sect2>
|
---|
[284d8e17] | 177 |
|
---|
| 178 | </sect1>
|
---|