1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY nasm-download-http "https://www.nasm.us/pub/nasm/releasebuilds/&nasm-version;/nasm-&nasm-version;.tar.xz">
|
---|
8 | <!ENTITY nasm-download-ftp " ">
|
---|
9 | <!ENTITY nasm-md5sum "2b8c72c52eee4f20085065e68ac83b55">
|
---|
10 | <!ENTITY nasm-size "1008.1 KB">
|
---|
11 | <!ENTITY nasm-buildsize "41 MB" >
|
---|
12 | <!ENTITY nasm-time "0.2 SBU">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="nasm" xreflabel="NASM-&nasm-version;">
|
---|
16 | <?dbhtml filename="nasm.html" ?>
|
---|
17 |
|
---|
18 |
|
---|
19 | <title>NASM-&nasm-version;</title>
|
---|
20 |
|
---|
21 | <indexterm zone="nasm">
|
---|
22 | <primary sortas="a-NASM">NASM</primary>
|
---|
23 | </indexterm>
|
---|
24 |
|
---|
25 | <sect2 role="package">
|
---|
26 | <title>Introduction to NASM</title>
|
---|
27 |
|
---|
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>
|
---|
33 |
|
---|
34 | &lfs121_checked;
|
---|
35 |
|
---|
36 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
37 | <itemizedlist spacing="compact">
|
---|
38 | <listitem>
|
---|
39 | <para>
|
---|
40 | Download (HTTP): <ulink url="&nasm-download-http;"/>
|
---|
41 | </para>
|
---|
42 | </listitem>
|
---|
43 | <listitem>
|
---|
44 | <para>
|
---|
45 | Download (FTP): <ulink url="&nasm-download-ftp;"/>
|
---|
46 | </para>
|
---|
47 | </listitem>
|
---|
48 | <listitem>
|
---|
49 | <para>
|
---|
50 | Download MD5 sum: &nasm-md5sum;
|
---|
51 | </para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>
|
---|
55 | Download size: &nasm-size;
|
---|
56 | </para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>
|
---|
60 | Estimated disk space required: &nasm-buildsize;
|
---|
61 | </para>
|
---|
62 | </listitem>
|
---|
63 | <listitem>
|
---|
64 | <para>
|
---|
65 | Estimated build time: &nasm-time;
|
---|
66 | </para>
|
---|
67 | </listitem>
|
---|
68 | </itemizedlist>
|
---|
69 |
|
---|
70 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
71 | <itemizedlist spacing="compact">
|
---|
72 | <listitem>
|
---|
73 | <para>
|
---|
74 | Optional documentation: <ulink
|
---|
75 | url="https://www.nasm.us/pub/nasm/releasebuilds/&nasm-version;/nasm-&nasm-version;-xdoc.tar.xz"/>
|
---|
76 | </para>
|
---|
77 | </listitem>
|
---|
78 | </itemizedlist>
|
---|
79 |
|
---|
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 |
|
---|
88 | </sect2>
|
---|
89 |
|
---|
90 | <sect2 role="installation">
|
---|
91 | <title>Installation of NASM</title>
|
---|
92 |
|
---|
93 | <para>
|
---|
94 | If you downloaded the optional documentation, put it into the
|
---|
95 | source tree:
|
---|
96 | </para>
|
---|
97 |
|
---|
98 | <screen><userinput>tar -xf ../nasm-&nasm-version;-xdoc.tar.xz --strip-components=1</userinput></screen>
|
---|
99 |
|
---|
100 | <para>
|
---|
101 | Install <application>NASM</application> by running
|
---|
102 | the following commands:
|
---|
103 | </para>
|
---|
104 |
|
---|
105 | <screen><userinput>./configure --prefix=/usr &&
|
---|
106 | make</userinput></screen>
|
---|
107 |
|
---|
108 | <para>
|
---|
109 | This package does not come with a test suite.
|
---|
110 | </para>
|
---|
111 |
|
---|
112 | <para>
|
---|
113 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
114 | </para>
|
---|
115 |
|
---|
116 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
117 |
|
---|
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>
|
---|
123 |
|
---|
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 &&
|
---|
126 | cp -v doc/*.{txt,ps,pdf} /usr/share/doc/nasm-&nasm-version;</userinput></screen>
|
---|
127 |
|
---|
128 | </sect2>
|
---|
129 |
|
---|
130 | <sect2 role="content">
|
---|
131 | <title>Contents</title>
|
---|
132 |
|
---|
133 | <segmentedlist>
|
---|
134 | <segtitle>Installed Programs</segtitle>
|
---|
135 | <segtitle>Installed Libraries</segtitle>
|
---|
136 | <segtitle>Installed Directory</segtitle>
|
---|
137 |
|
---|
138 | <seglistitem>
|
---|
139 | <seg>nasm and ndisasm</seg>
|
---|
140 | <seg>None</seg>
|
---|
141 | <seg>/usr/share/doc/nasm-&nasm-version;</seg>
|
---|
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>
|
---|
153 | <para>
|
---|
154 | is a portable 80x86 assembler
|
---|
155 | </para>
|
---|
156 | <indexterm zone="nasm nasm-prog">
|
---|
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>
|
---|
165 | <para>
|
---|
166 | is an 80x86 binary file disassembler
|
---|
167 | </para>
|
---|
168 | <indexterm zone="nasm ndisasm">
|
---|
169 | <primary sortas="b-ndisasm">ndisasm</primary>
|
---|
170 | </indexterm>
|
---|
171 | </listitem>
|
---|
172 | </varlistentry>
|
---|
173 |
|
---|
174 | </variablelist>
|
---|
175 |
|
---|
176 | </sect2>
|
---|
177 |
|
---|
178 | </sect1>
|
---|