image_compressor_pack 0.1.3-amd64-freebsd-10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. checksums.yaml +7 -0
  2. checksums.yaml.gz.sig +0 -0
  3. data/LICENSE.txt +22 -0
  4. data/lib/.paths.yml +12 -0
  5. data/lib/image_compressor_pack/dynamically_linked_recipes.yml +99 -0
  6. data/lib/image_compressor_pack/recipes.rb +42 -0
  7. data/lib/image_compressor_pack/statically_linked_recipes.yml +106 -0
  8. data/lib/image_compressor_pack/version.rb +3 -0
  9. data/lib/image_compressor_pack.rb +24 -0
  10. data/ports/advancecomp-1.2-x86_64-unknown-freebsd10.3.installed +0 -0
  11. data/ports/archives/2.1.1.tar.gz +0 -0
  12. data/ports/archives/2.7.1.tar.gz +0 -0
  13. data/ports/archives/advancecomp-1.20.tar.gz +0 -0
  14. data/ports/archives/gifsicle-1.88.tar.gz +0 -0
  15. data/ports/archives/jhead-3.00.tar.gz +0 -0
  16. data/ports/archives/jpegoptim-1.4.3.tar.gz +0 -0
  17. data/ports/archives/lcms2-2.7.tar.gz +0 -0
  18. data/ports/archives/libpng-1.6.21.tar.gz +0 -0
  19. data/ports/archives/mozjpeg-3.1-release-source.tar.gz +0 -0
  20. data/ports/archives/nasm-2.12.01.tar.gz +0 -0
  21. data/ports/archives/optipng-0.7.6.tar.gz +0 -0
  22. data/ports/archives/pngcrush-1.8.1.tar.gz +0 -0
  23. data/ports/archives/zlib-1.2.8.tar.gz +0 -0
  24. data/ports/gifsicle-1.88-x86_64-unknown-freebsd10.3.installed +0 -0
  25. data/ports/jhead-3.0-x86_64-unknown-freebsd10.3.installed +0 -0
  26. data/ports/jpeg-archive-2.1.1-x86_64-unknown-freebsd10.3.installed +0 -0
  27. data/ports/jpegoptim-1.4.3-x86_64-unknown-freebsd10.3.installed +0 -0
  28. data/ports/lcms2-2.7-x86_64-unknown-freebsd10.3.installed +0 -0
  29. data/ports/libpng-1.6.21-x86_64-unknown-freebsd10.3.installed +0 -0
  30. data/ports/mozjpeg-3.1-x86_64-unknown-freebsd10.3.installed +0 -0
  31. data/ports/nasm-2.12.01-x86_64-unknown-freebsd10.3.installed +0 -0
  32. data/ports/optipng-0.7.6-x86_64-unknown-freebsd10.3.installed +0 -0
  33. data/ports/pngcrush-1.8.1-x86_64-unknown-freebsd10.3.installed +0 -0
  34. data/ports/pngquant-2.7.1-x86_64-unknown-freebsd10.3.installed +0 -0
  35. data/ports/x86_64-unknown-freebsd10.3/advancecomp/1.2/bin/advdef +0 -0
  36. data/ports/x86_64-unknown-freebsd10.3/advancecomp/1.2/bin/advmng +0 -0
  37. data/ports/x86_64-unknown-freebsd10.3/advancecomp/1.2/bin/advpng +0 -0
  38. data/ports/x86_64-unknown-freebsd10.3/advancecomp/1.2/bin/advzip +0 -0
  39. data/ports/x86_64-unknown-freebsd10.3/advancecomp/1.2/share/man/man1/advdef.1 +83 -0
  40. data/ports/x86_64-unknown-freebsd10.3/advancecomp/1.2/share/man/man1/advmng.1 +197 -0
  41. data/ports/x86_64-unknown-freebsd10.3/advancecomp/1.2/share/man/man1/advpng.1 +93 -0
  42. data/ports/x86_64-unknown-freebsd10.3/advancecomp/1.2/share/man/man1/advzip.1 +116 -0
  43. data/ports/x86_64-unknown-freebsd10.3/gifsicle/1.88/bin/gifsicle +0 -0
  44. data/ports/x86_64-unknown-freebsd10.3/gifsicle/1.88/share/man/man1/gifsicle.1 +1318 -0
  45. data/ports/x86_64-unknown-freebsd10.3/jhead/3.0/bin/jhead +0 -0
  46. data/ports/x86_64-unknown-freebsd10.3/jpeg-archive/2.1.1/bin/jpeg-archive +40 -0
  47. data/ports/x86_64-unknown-freebsd10.3/jpeg-archive/2.1.1/bin/jpeg-compare +0 -0
  48. data/ports/x86_64-unknown-freebsd10.3/jpeg-archive/2.1.1/bin/jpeg-hash +0 -0
  49. data/ports/x86_64-unknown-freebsd10.3/jpeg-archive/2.1.1/bin/jpeg-recompress +0 -0
  50. data/ports/x86_64-unknown-freebsd10.3/jpegoptim/1.4.3/bin/jpegoptim +0 -0
  51. data/ports/x86_64-unknown-freebsd10.3/jpegoptim/1.4.3/share/man/man1/jpegoptim.1 +186 -0
  52. data/ports/x86_64-unknown-freebsd10.3/lcms2/2.7/bin/linkicc +0 -0
  53. data/ports/x86_64-unknown-freebsd10.3/lcms2/2.7/bin/psicc +0 -0
  54. data/ports/x86_64-unknown-freebsd10.3/lcms2/2.7/bin/transicc +0 -0
  55. data/ports/x86_64-unknown-freebsd10.3/lcms2/2.7/include/lcms2.h +1889 -0
  56. data/ports/x86_64-unknown-freebsd10.3/lcms2/2.7/include/lcms2_plugin.h +637 -0
  57. data/ports/x86_64-unknown-freebsd10.3/lcms2/2.7/lib/liblcms2.a +0 -0
  58. data/ports/x86_64-unknown-freebsd10.3/lcms2/2.7/lib/liblcms2.la +41 -0
  59. data/ports/x86_64-unknown-freebsd10.3/lcms2/2.7/lib/pkgconfig/lcms2.pc +11 -0
  60. data/ports/x86_64-unknown-freebsd10.3/lcms2/2.7/share/man/man1/jpgicc.1 +122 -0
  61. data/ports/x86_64-unknown-freebsd10.3/lcms2/2.7/share/man/man1/tificc.1 +117 -0
  62. data/ports/x86_64-unknown-freebsd10.3/libpng/1.6.21/include/libpng16/png.h +3130 -0
  63. data/ports/x86_64-unknown-freebsd10.3/libpng/1.6.21/include/libpng16/pngconf.h +622 -0
  64. data/ports/x86_64-unknown-freebsd10.3/libpng/1.6.21/include/libpng16/pnglibconf.h +212 -0
  65. data/ports/x86_64-unknown-freebsd10.3/libpng/1.6.21/include/png.h +1 -0
  66. data/ports/x86_64-unknown-freebsd10.3/libpng/1.6.21/include/pngconf.h +1 -0
  67. data/ports/x86_64-unknown-freebsd10.3/libpng/1.6.21/include/pnglibconf.h +1 -0
  68. data/ports/x86_64-unknown-freebsd10.3/libpng/1.6.21/lib/libpng.a +1 -0
  69. data/ports/x86_64-unknown-freebsd10.3/libpng/1.6.21/lib/libpng.la +1 -0
  70. data/ports/x86_64-unknown-freebsd10.3/libpng/1.6.21/lib/libpng16.a +0 -0
  71. data/ports/x86_64-unknown-freebsd10.3/libpng/1.6.21/lib/libpng16.la +41 -0
  72. data/ports/x86_64-unknown-freebsd10.3/libpng/1.6.21/lib/pkgconfig/libpng16.pc +11 -0
  73. data/ports/x86_64-unknown-freebsd10.3/libpng/1.6.21/share/man/man3/libpng.3 +6124 -0
  74. data/ports/x86_64-unknown-freebsd10.3/libpng/1.6.21/share/man/man3/libpngpf.3 +18 -0
  75. data/ports/x86_64-unknown-freebsd10.3/libpng/1.6.21/share/man/man5/png.5 +74 -0
  76. data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/bin/cjpeg +0 -0
  77. data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/bin/djpeg +0 -0
  78. data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/bin/jpegtran +0 -0
  79. data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/bin/rdjpgcom +0 -0
  80. data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/bin/tjbench +0 -0
  81. data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/bin/wrjpgcom +0 -0
  82. data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/include/jconfig.h +71 -0
  83. data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/include/jerror.h +320 -0
  84. data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/include/jmorecfg.h +390 -0
  85. data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/include/jpeglib.h +1185 -0
  86. data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/include/turbojpeg.h +1538 -0
  87. data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/lib/libjpeg.a +0 -0
  88. data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/lib/libjpeg.la +41 -0
  89. data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/lib/libturbojpeg.a +0 -0
  90. data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/lib/libturbojpeg.la +41 -0
  91. data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/share/doc/README +281 -0
  92. data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/share/doc/README-mozilla.txt +194 -0
  93. data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/share/doc/README-turbo.txt +363 -0
  94. data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/share/doc/example.c +433 -0
  95. data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/share/doc/libjpeg.txt +3015 -0
  96. data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/share/doc/structure.txt +906 -0
  97. data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/share/doc/usage.txt +649 -0
  98. data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/share/doc/wizard.txt +211 -0
  99. data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/share/man/man1/cjpeg.1 +352 -0
  100. data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/share/man/man1/djpeg.1 +278 -0
  101. data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/share/man/man1/jpegtran.1 +269 -0
  102. data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/share/man/man1/rdjpgcom.1 +63 -0
  103. data/ports/x86_64-unknown-freebsd10.3/mozjpeg/3.1/share/man/man1/wrjpgcom.1 +103 -0
  104. data/ports/x86_64-unknown-freebsd10.3/nasm/2.12.01/bin/nasm +0 -0
  105. data/ports/x86_64-unknown-freebsd10.3/nasm/2.12.01/bin/ndisasm +0 -0
  106. data/ports/x86_64-unknown-freebsd10.3/nasm/2.12.01/share/man/man1/nasm.1 +429 -0
  107. data/ports/x86_64-unknown-freebsd10.3/nasm/2.12.01/share/man/man1/ndisasm.1 +120 -0
  108. data/ports/x86_64-unknown-freebsd10.3/optipng/0.7.6/bin/optipng +0 -0
  109. data/ports/x86_64-unknown-freebsd10.3/optipng/0.7.6/man/man1/optipng.1 +343 -0
  110. data/ports/x86_64-unknown-freebsd10.3/pngcrush/1.8.1/bin/pngcrush +0 -0
  111. data/ports/x86_64-unknown-freebsd10.3/pngquant/2.7.1/bin/pngquant +0 -0
  112. data/ports/x86_64-unknown-freebsd10.3/pngquant/2.7.1/share/man/man1/pngquant.1 +127 -0
  113. data/ports/x86_64-unknown-freebsd10.3/zlib/1.2.8/include/zconf.h +511 -0
  114. data/ports/x86_64-unknown-freebsd10.3/zlib/1.2.8/include/zlib.h +1768 -0
  115. data/ports/x86_64-unknown-freebsd10.3/zlib/1.2.8/lib/libz.a +0 -0
  116. data/ports/x86_64-unknown-freebsd10.3/zlib/1.2.8/lib/pkgconfig/zlib.pc +13 -0
  117. data/ports/x86_64-unknown-freebsd10.3/zlib/1.2.8/share/man/man3/zlib.3 +151 -0
  118. data/ports/zlib-1.2.8-x86_64-unknown-freebsd10.3.installed +0 -0
  119. data.tar.gz.sig +0 -0
  120. metadata +264 -0
  121. metadata.gz.sig +0 -0
@@ -0,0 +1,429 @@
1
+ '\" t
2
+ .\" Title: nasm
3
+ .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4
+ .\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
5
+ .\" Date: 03/17/2016
6
+ .\" Manual: The Netwide Assembler Project
7
+ .\" Source: NASM
8
+ .\" Language: English
9
+ .\"
10
+ .TH "NASM" "1" "03/17/2016" "NASM" "The Netwide Assembler Project"
11
+ .\" -----------------------------------------------------------------
12
+ .\" * Define some portability stuff
13
+ .\" -----------------------------------------------------------------
14
+ .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15
+ .\" http://bugs.debian.org/507673
16
+ .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17
+ .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18
+ .ie \n(.g .ds Aq \(aq
19
+ .el .ds Aq '
20
+ .\" -----------------------------------------------------------------
21
+ .\" * set default formatting
22
+ .\" -----------------------------------------------------------------
23
+ .\" disable hyphenation
24
+ .nh
25
+ .\" disable justification (adjust text to left margin only)
26
+ .ad l
27
+ .\" -----------------------------------------------------------------
28
+ .\" * MAIN CONTENT STARTS HERE *
29
+ .\" -----------------------------------------------------------------
30
+ .SH "NAME"
31
+ nasm \- the Netwide Assembler, a portable 80x86 assembler
32
+ .SH "SYNOPSIS"
33
+ .sp
34
+ \fBnasm\fR [\fB\-@\fR response file] [\fB\-f\fR format] [\fB\-o\fR outfile] [\fB\-l\fR listfile] [\fIoptions\fR\&...] filename
35
+ .SH "DESCRIPTION"
36
+ .sp
37
+ The \fBnasm\fR command assembles the file \fIfilename\fR and directs output to the file \fIoutfile\fR if specified\&. If \fIoutfile\fR is not specified, \fBnasm\fR will derive a default output file name from the name of its input file, usually by appending \(oq\&.o\(cq or \(oq\&.obj\(cq, or by removing all extensions for a raw binary file\&. Failing that, the output file name will be \(oqnasm\&.out\(cq\&.
38
+ .SH "OPTIONS"
39
+ .PP
40
+ \fB\-@\fR \fIfilename\fR
41
+ .RS 4
42
+ Causes
43
+ \fBnasm\fR
44
+ to process options from filename as if they were included on the command line\&.
45
+ .RE
46
+ .PP
47
+ \fB\-a\fR
48
+ .RS 4
49
+ Causes
50
+ \fBnasm\fR
51
+ to assemble the given input file without first applying the macro preprocessor\&.
52
+ .RE
53
+ .PP
54
+ \fB\-D\fR|\fB\-d\fR \fImacro[=value]\fR
55
+ .RS 4
56
+ Pre\-defines a single\-line macro\&.
57
+ .RE
58
+ .PP
59
+ \fB\-E\fR|\fB\-e\fR
60
+ .RS 4
61
+ Causes
62
+ \fBnasm\fR
63
+ to preprocess the given input file, and write the output to
64
+ \fIstdout\fR
65
+ (or the specified output file name), and not actually assemble anything\&.
66
+ .RE
67
+ .PP
68
+ \fB\-f\fR \fIformat\fR
69
+ .RS 4
70
+ Specifies the output file format\&. To see a list of valid output formats, use the
71
+ \fB\-hf\fR
72
+ option\&.
73
+ .RE
74
+ .PP
75
+ \fB\-F\fR \fIformat\fR
76
+ .RS 4
77
+ Specifies the debug information format\&. To see a list of valid output formats, use the
78
+ \fB\-y\fR
79
+ option (for example
80
+ \fB\-felf \-y\fR)\&.
81
+ .RE
82
+ .PP
83
+ \fB\-g\fR
84
+ .RS 4
85
+ Causes
86
+ \fBnasm\fR
87
+ to generate debug information\&.
88
+ .RE
89
+ .PP
90
+ \fB\-g\fR\fIformat\fR
91
+ .RS 4
92
+ Equivalent to
93
+ \fB\-g \-F\fR\fI format\fR\&.
94
+ .RE
95
+ .PP
96
+ \fB\-h\fR
97
+ .RS 4
98
+ Causes
99
+ \fBnasm\fR
100
+ to exit immediately, after giving a summary of its invocation options\&.
101
+ .RE
102
+ .PP
103
+ \fB\-hf\fR
104
+ .RS 4
105
+ Same as
106
+ \fB\-h\fR
107
+ , but also lists all valid output formats\&.
108
+ .RE
109
+ .PP
110
+ \fB\-I\fR|\fB\-i\fR \fIdirectory\fR
111
+ .RS 4
112
+ Adds a directory to the search path for include files\&. The directory specification must include the trailing slash, as it will be directly prepended to the name of the include file\&.
113
+ .RE
114
+ .PP
115
+ \fB\-l\fR \fIlistfile\fR
116
+ .RS 4
117
+ Causes an assembly listing to be directed to the given file, in which the original source is displayed on the right hand side (plus the source for included files and the expansions of multi\-line macros) and the generated code is shown in hex on the left\&.
118
+ .RE
119
+ .PP
120
+ \fB\-M\fR
121
+ .RS 4
122
+ Causes
123
+ \fBnasm\fR
124
+ to output Makefile\-style dependencies to stdout; normal output is suppressed\&.
125
+ .RE
126
+ .PP
127
+ \fB\-MG\fR \fIfile\fR
128
+ .RS 4
129
+ Same as
130
+ \fB\-M\fR
131
+ but assumes that missing Makefile dependecies are generated and added to dependency list without a prefix\&.
132
+ .RE
133
+ .PP
134
+ \fB\-MF\fR \fIfile\fR
135
+ .RS 4
136
+ Output Makefile\-style dependencies to the specified file\&.
137
+ .RE
138
+ .PP
139
+ \fB\-MD\fR \fIfile\fR
140
+ .RS 4
141
+ Same as a combination of
142
+ \fB\-M\fR
143
+ and
144
+ \fB\-MF\fR
145
+ options\&.
146
+ .RE
147
+ .PP
148
+ \fB\-MT\fR \fIfile\fR
149
+ .RS 4
150
+ Override the default name of the dependency target dependency target name\&. This is normally the same as the output filename, specified by the
151
+ \fB\-o\fR
152
+ option\&.
153
+ .RE
154
+ .PP
155
+ \fB\-MQ\fR \fIfile\fR
156
+ .RS 4
157
+ The same as
158
+ \fB\-MT\fR
159
+ except it tries to quote characters that have special meaning in Makefile syntax\&. This is not foolproof, as not all characters with special meaning are quotable in Make\&.
160
+ .RE
161
+ .PP
162
+ \fB\-MP\fR
163
+ .RS 4
164
+ Emit phony target\&.
165
+ .RE
166
+ .PP
167
+ \fB\-O\fR \fInumber\fR
168
+ .RS 4
169
+ Optimize branch offsets\&.
170
+ .sp
171
+ .RS 4
172
+ .ie n \{\
173
+ \h'-04'\(bu\h'+03'\c
174
+ .\}
175
+ .el \{\
176
+ .sp -1
177
+ .IP \(bu 2.3
178
+ .\}
179
+ \fB\-O0\fR: No optimization
180
+ .RE
181
+ .sp
182
+ .RS 4
183
+ .ie n \{\
184
+ \h'-04'\(bu\h'+03'\c
185
+ .\}
186
+ .el \{\
187
+ .sp -1
188
+ .IP \(bu 2.3
189
+ .\}
190
+ \fB\-O1\fR: Minimal optimization
191
+ .RE
192
+ .sp
193
+ .RS 4
194
+ .ie n \{\
195
+ \h'-04'\(bu\h'+03'\c
196
+ .\}
197
+ .el \{\
198
+ .sp -1
199
+ .IP \(bu 2.3
200
+ .\}
201
+ \fB\-Ox\fR: Multipass optimization (default)
202
+ .RE
203
+ .RE
204
+ .PP
205
+ \fB\-o\fR \fIoutfile\fR
206
+ .RS 4
207
+ Specifies a precise name for the output file, overriding
208
+ \fBnasm\fR\*(Aqs default means of determining it\&.
209
+ .RE
210
+ .PP
211
+ \fB\-P\fR|\fB\-p\fR \fIfile\fR
212
+ .RS 4
213
+ Specifies a file to be pre\-included, before the main source file starts to be processed\&.
214
+ .RE
215
+ .PP
216
+ \fB\-s\fR
217
+ .RS 4
218
+ Causes
219
+ \fBnasm\fR
220
+ to send its error messages and/or help text to stdout instead of stderr\&.
221
+ .RE
222
+ .PP
223
+ \fB\-t\fR
224
+ .RS 4
225
+ Causes
226
+ \fBnasm\fR
227
+ to assemble in SciTech TASM compatible mode\&.
228
+ .RE
229
+ .PP
230
+ \fB\-U\fR|\fB\-u\fR \fImacro\fR
231
+ .RS 4
232
+ Undefines a single\-line macro\&.
233
+ .RE
234
+ .PP
235
+ \fB\-v\fR
236
+ .RS 4
237
+ Causes
238
+ \fBnasm\fR
239
+ to exit immediately, after displaying its version number\&.
240
+ .RE
241
+ .PP
242
+ *\-W[no\-]foo\*(Aq
243
+ .RS 4
244
+ Causes
245
+ \fBnasm\fR
246
+ to enable or disable certain classes of warning messages, in gcc\-like style, for example
247
+ \fB\-Worphan\-labels\fR
248
+ or
249
+ \fB\-Wno\-orphan\-labels\fR\&.
250
+ .RE
251
+ .PP
252
+ \fB\-w\fR\fI[+\-]foo\fR
253
+ .RS 4
254
+ Causes
255
+ \fBnasm\fR
256
+ to enable or disable certain classes of warning messages, for example
257
+ \fB\-w+orphan\-labels\fR
258
+ or
259
+ \fB\-w\-macro\-params\fR\&.
260
+ .RE
261
+ .PP
262
+ \fB\-X\fR \fIformat\fR
263
+ .RS 4
264
+ Specifies error reporting format (gnu or vc)\&.
265
+ .RE
266
+ .PP
267
+ \fB\-y\fR
268
+ .RS 4
269
+ Causes
270
+ \fBnasm\fR
271
+ to list supported debug formats\&.
272
+ .RE
273
+ .PP
274
+ \fB\-Z\fR \fIfilename\fR
275
+ .RS 4
276
+ Causes
277
+ \fBnasm\fR
278
+ to redirect error messages to
279
+ \fIfilename\fR\&. This option exists to support operating systems on which stderr is not easily redirected\&.
280
+ .RE
281
+ .PP
282
+ \-\-prefix, \-\-postfix
283
+ .RS 4
284
+ Prepend or append (respectively) the given argument to all global or extern variables\&.
285
+ .RE
286
+ .SH "SYNTAX"
287
+ .sp
288
+ This man page does not fully describe the syntax of \fBnasm\fR\*(Aqs assembly language, but does give a summary of the differences from other assemblers\&.
289
+ .sp
290
+ \fIRegisters\fR have no leading \(oq%\(cq sign, unlike \fBgas\fR, and floating\-point stack registers are referred to as \fIst0\fR, \fIst1\fR, and so on\&.
291
+ .sp
292
+ \fIFloating\-point instructions\fR may use either the single\-operand form or the double\&. A \fITO\fR keyword is provided; thus, one could either write
293
+ .sp
294
+ .if n \{\
295
+ .RS 4
296
+ .\}
297
+ .nf
298
+ fadd st0,st1
299
+ fadd st1,st0
300
+ .fi
301
+ .if n \{\
302
+ .RE
303
+ .\}
304
+ .sp
305
+ or one could use the alternative single\-operand forms
306
+ .sp
307
+ .if n \{\
308
+ .RS 4
309
+ .\}
310
+ .nf
311
+ fadd st1
312
+ fadd to st1
313
+ .fi
314
+ .if n \{\
315
+ .RE
316
+ .\}
317
+ .sp
318
+ \fIUninitialised storage\fR is reserved using the \fIRESB\fR, \fIRESW\fR, \fIRESD\fR, \fIRESQ\fR, \fIREST\fR and \fIRESO\fR pseudo\-opcodes, each taking one parameter which gives the number of bytes, words, doublewords, quadwords or ten\-byte words to reserve\&.
319
+ .sp
320
+ \fIRepetition\fR of data items is not done by the \fIDUP\fR keyword as seen in DOS assemblers, but by the use of the \fITIMES\fR prefix, like this:
321
+ .sp
322
+ .if n \{\
323
+ .RS 4
324
+ .\}
325
+ .nf
326
+ message: times 3 db \*(Aqabc\*(Aq
327
+ times 64\-$+message db 0
328
+ .fi
329
+ .if n \{\
330
+ .RE
331
+ .\}
332
+ .sp
333
+ which defines the string abcabcabc, followed by the right number of zero bytes to make the total length up to 64 bytes\&.
334
+ .sp
335
+ \fISymbol references\fR are always understood to be immediate (i\&.e\&. the address of the symbol), unless square brackets are used, in which case the contents of the memory location are used\&. Thus:
336
+ .sp
337
+ .if n \{\
338
+ .RS 4
339
+ .\}
340
+ .nf
341
+ mov ax,wordvar
342
+ .fi
343
+ .if n \{\
344
+ .RE
345
+ .\}
346
+ .sp
347
+ loads AX with the address of the variable wordvar, whereas
348
+ .sp
349
+ .if n \{\
350
+ .RS 4
351
+ .\}
352
+ .nf
353
+ mov ax,[wordvar]
354
+ mov ax,[wordvar+1]
355
+ mov ax,[es:wordvar+bx]
356
+ .fi
357
+ .if n \{\
358
+ .RE
359
+ .\}
360
+ .sp
361
+ all refer to the \fIcontents\fR of memory locations\&. The syntaxes
362
+ .sp
363
+ .if n \{\
364
+ .RS 4
365
+ .\}
366
+ .nf
367
+ mov ax,es:wordvar[bx]
368
+ es mov ax,wordvar[1]
369
+ .fi
370
+ .if n \{\
371
+ .RE
372
+ .\}
373
+ .sp
374
+ are not legal at all, although the use of a segment register name as an instruction prefix is valid, and can be used with instructions such as \fILODSB\fR which can\(cqt be overridden any other way\&.
375
+ .sp
376
+ \fIConstants\fR may be expressed numerically in most formats: a trailing H, Q or B denotes hex, octal or binary respectively, and a leading \(oq0x\(cq or \(oq$\(cq denotes hex as well\&. Leading zeros are not treated specially at all\&. Character constants may be enclosed in single or double quotes; there is no escape character\&. The ordering is little\-endian (reversed), so that the character constant \fI\*(Aqabcd\fR\*(Aq denotes 0x64636261 and not 0x61626364\&.
377
+ .sp
378
+ Local labels begin with a period, and their \(oqlocality\(cq is granted by the assembler prepending the name of the previous non\-local symbol\&. Thus declaring a label \(oq\&.loop\(cq after a label \(oqlabel\(cq has actually defined a symbol called \(oqlabel\&.loop\(cq\&.
379
+ .SH "DIRECTIVES"
380
+ .sp
381
+ \fISECTION\fR \fIname\fR or \fISEGMENT\fR \fIname\fR causes \fBnasm\fR to direct all following code to the named section\&. Section names vary with output file format, although most formats support the names \fI\&.text\fR, \fI\&.data\fR and \fI\&.bss\fR\&. (The exception is the \fIobj\fR format, in which all segments are user\-definable\&.)
382
+ .sp
383
+ \fIABSOLUTE\fR \fIaddress\fR causes \fBnasm\fR to position its notional assembly point at an absolute address: so no code or data may be generated, but you can use \fIRESB\fR, \fIRESW\fR and \fIRESD\fR to move the assembly point further on, and you can define labels\&. So this directive may be used to define data structures\&. When you have finished doing absolute assembly, you must issue another \fISECTION\fR directive to return to normal assembly\&.
384
+ .sp
385
+ \fIBITS\fR \fI16\fR, \fIBITS\fR \fI32\fR or \fIBITS\fR \fI64\fR switches the default processor mode for which \fBnasm\fR is generating code: it is equivalent to \fIUSE16\fR or \fIUSE32\fR in DOS assemblers\&.
386
+ .sp
387
+ \fIEXTERN\fR \fIsymbol\fR and \fIGLOBAL\fR \fIsymbol\fR import and export symbol definitions, respectively, from and to other modules\&. Note that the \fIGLOBAL\fR directive must appear before the definition of the symbol it refers to\&.
388
+ .sp
389
+ \fISTRUC\fR \fIstrucname\fR and \fIENDSTRUC\fR, when used to bracket a number of \fIRESB\fR, \fIRESW\fR or similar instructions, define a data structure\&. In addition to defining the offsets of the structure members, the construct also defines a symbol for the size of the structure, which is simply the structure name with \fIsize\fR tacked on to the end\&.
390
+ .SH "FORMAT-SPECIFIC DIRECTIVES"
391
+ .sp
392
+ \fIORG\fR \fIaddress\fR is used by the \fIbin\fR flat\-form binary output format, and specifies the address at which the output code will eventually be loaded\&.
393
+ .sp
394
+ \fIGROUP\fR \fIgrpname\fR \fIseg1\fR \fIseg2\fR\&... is used by the obj (Microsoft 16\-bit) output format, and defines segment groups\&. This format also uses \fIUPPERCASE\fR, which directs that all segment, group and symbol names output to the object file should be in uppercase\&. Note that the actual assembly is still case sensitive\&.
395
+ .sp
396
+ \fILIBRARY\fR \fIlibname\fR is used by the \fIrdf\fR output format, and causes a dependency record to be written to the output file which indicates that the program requires a certain library in order to run\&.
397
+ .SH "MACRO PREPROCESSOR"
398
+ .sp
399
+ Single\-line macros are defined using the \fI%define\fR or \fI%idefine\fR commands, in a similar fashion to the C preprocessor\&. They can be overloaded with respect to number of parameters, although defining a macro with no parameters prevents the definition of any macro with the same name taking parameters, and vice versa\&. \fI%define\fR defines macros whose names match case\-sensitively, whereas \fI%idefine\fR defines case\-insensitive macros\&.
400
+ .sp
401
+ Multi\-line macros are defined using \fI%macro\fR and \fI%imacro\fR (the distinction is the same as that between \fI%define\fR and \fI%idefine\fR), whose syntax is as follows
402
+ .sp
403
+ .if n \{\
404
+ .RS 4
405
+ .\}
406
+ .nf
407
+ %macro name minprm[\-maxprm][+][\&.nolist] [defaults]
408
+ <some lines of macro expansion text>
409
+ %endmacro
410
+ .fi
411
+ .if n \{\
412
+ .RE
413
+ .\}
414
+ .sp
415
+ Again, these macros may be overloaded\&. The trailing plus sign indicates that any parameters after the last one get subsumed, with their separating commas, into the last parameter\&. The \fIdefaults\fR part can be used to specify defaults for unspecified macro parameters after \fIminparam\fR\&. \fI%endm\fR is a valid synonym for \fI%endmacro\fR\&.
416
+ .sp
417
+ To refer to the macro parameters within a macro expansion, you use \fI%1\fR, \fI%2\fR and so on\&. You can also enforce that a macro parameter should contain a condition code by using \fI%+1\fR, and you can invert the condition code by using \fI%\-1\fR\&. You can also define a label specific to a macro invocation by prefixing it with a double \(oq%\(cq sign\&.
418
+ .sp
419
+ Files can be included using the \fI%include\fR directive, which works like C\&.
420
+ .sp
421
+ The preprocessor has a \(oqcontext stack\(cq, which may be used by one macro to store information that a later one will retrieve\&. You can push a context on the stack using \fI%push\fR, remove one using \fI%pop\fR, and change the name of the top context (without disturbing any associated definitions) using \fI%repl\fR\&. Labels and \fI%define\fR macros specific to the top context may be defined by prefixing their names with %$, and things specific to the next context down with %$$, and so on\&.
422
+ .sp
423
+ Conditional assembly is done by means of \fI%ifdef\fR, \fI%ifndef\fR, \fI%else\fR and \fI%endif\fR as in C\&. (Except that \fI%ifdef\fR can accept several putative macro names, and will evaluate TRUE if any of them is defined\&.) In addition, the directives \fI%ifctx\fR and \fI%ifnctx\fR can be used to condition on the name of the top context on the context stack\&. The obvious set of \(oqelse\-if\(cq directives, \fI%elifdef\fR, \fI%elifndef\fR, \fI%elifctx\fR and \fI%elifnctx\fR are also supported\&.
424
+ .SH "BUGS"
425
+ .sp
426
+ Please report bugs through the bug tracker function at \m[blue]\fBhttp://nasm\&.us\fR\m[]\&.
427
+ .SH "SEE ALSO"
428
+ .sp
429
+ \fBas\fR(1), \fBld\fR(1)\&.
@@ -0,0 +1,120 @@
1
+ '\" t
2
+ .\" Title: ndisasm
3
+ .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4
+ .\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
5
+ .\" Date: 03/17/2016
6
+ .\" Manual: The Netwide Assembler Project
7
+ .\" Source: NASM
8
+ .\" Language: English
9
+ .\"
10
+ .TH "NDISASM" "1" "03/17/2016" "NASM" "The Netwide Assembler Project"
11
+ .\" -----------------------------------------------------------------
12
+ .\" * Define some portability stuff
13
+ .\" -----------------------------------------------------------------
14
+ .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15
+ .\" http://bugs.debian.org/507673
16
+ .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17
+ .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18
+ .ie \n(.g .ds Aq \(aq
19
+ .el .ds Aq '
20
+ .\" -----------------------------------------------------------------
21
+ .\" * set default formatting
22
+ .\" -----------------------------------------------------------------
23
+ .\" disable hyphenation
24
+ .nh
25
+ .\" disable justification (adjust text to left margin only)
26
+ .ad l
27
+ .\" -----------------------------------------------------------------
28
+ .\" * MAIN CONTENT STARTS HERE *
29
+ .\" -----------------------------------------------------------------
30
+ .SH "NAME"
31
+ ndisasm \- the Netwide Disassembler, an 80x86 binary file disassembler
32
+ .SH "SYNOPSIS"
33
+ .sp
34
+ \fBndisasm\fR [ \fB\-o\fR origin ] [ \fB\-s\fR sync\-point [\&...]] [ \fB\-a\fR | \fB\-i\fR ] [ \fB\-b\fR bits ] [ \fB\-u\fR ] [ \fB\-e\fR hdrlen ] [ \fB\-p\fR vendor ] [ \fB\-k\fR offset,length [\&...]] infile
35
+ .SH "DESCRIPTION"
36
+ .sp
37
+ The \fBndisasm\fR command generates a disassembly listing of the binary file infile and directs it to stdout\&.
38
+ .SH "OPTIONS"
39
+ .PP
40
+ \fB\-h\fR
41
+ .RS 4
42
+ Causes
43
+ \fBndisasm\fR
44
+ to exit immediately, after giving a summary of its invocation options\&.
45
+ .RE
46
+ .PP
47
+ \fB\-r\fR|\fB\-v\fR
48
+ .RS 4
49
+ Causes
50
+ \fBndisasm\fR
51
+ to exit immediately, after displaying its version number\&.
52
+ .RE
53
+ .PP
54
+ \fB\-o\fR \fIorigin\fR
55
+ .RS 4
56
+ Specifies the notional load address for the file\&. This option causes
57
+ \fBndisasm\fR
58
+ to get the addresses it lists down the left hand margin, and the target addresses of PC\-relative jumps and calls, right\&.
59
+ .RE
60
+ .PP
61
+ \fB\-s\fR \fIsync\-point\fR
62
+ .RS 4
63
+ Manually specifies a synchronisation address, such that
64
+ \fBndisasm\fR
65
+ will not output any machine instruction which encompasses bytes on both sides of the address\&. Hence the instruction which starts at that address will be correctly disassembled\&.
66
+ .RE
67
+ .PP
68
+ \fB\-e\fR \fIhdrlen\fR
69
+ .RS 4
70
+ Specifies a number of bytes to discard from the beginning of the file before starting disassembly\&. This does not count towards the calculation of the disassembly offset: the first
71
+ \fIdisassembled\fR
72
+ instruction will be shown starting at the given load address\&.
73
+ .RE
74
+ .PP
75
+ \fB\-k\fR \fIoffset,length\fR
76
+ .RS 4
77
+ Specifies that
78
+ \fIlength\fR
79
+ bytes, starting from disassembly offset
80
+ \fIoffset\fR, should be skipped over without generating any output\&. The skipped bytes still count towards the calculation of the disassembly offset\&.
81
+ .RE
82
+ .PP
83
+ \fB\-a\fR|\fB\-i\fR
84
+ .RS 4
85
+ Enables automatic (or intelligent) sync mode, in which
86
+ \fBndisasm\fR
87
+ will attempt to guess where synchronisation should be performed, by means of examining the target addresses of the relative jumps and calls it disassembles\&.
88
+ .RE
89
+ .PP
90
+ \fB\-b\fR \fIbits\fR
91
+ .RS 4
92
+ Specifies 16\-, 32\- or 64\-bit mode\&. The default is 16\-bit mode\&.
93
+ .RE
94
+ .PP
95
+ \fB\-u\fR
96
+ .RS 4
97
+ Specifies 32\-bit mode, more compactly than using \(oq\-b 32\(cq\&.
98
+ .RE
99
+ .PP
100
+ \fB\-p\fR \fIvendor\fR
101
+ .RS 4
102
+ Prefers instructions as defined by
103
+ \fIvendor\fR
104
+ in case of a conflict\&. Known
105
+ \fIvendor\fR
106
+ names include
107
+ \fBintel\fR,
108
+ \fBamd\fR,
109
+ \fBcyrix\fR, and
110
+ \fBidt\fR\&. The default is
111
+ \fBintel\fR\&.
112
+ .RE
113
+ .SH "RESTRICTIONS"
114
+ .sp
115
+ \fBndisasm\fR only disassembles binary files: it has no understanding of the header information present in object or executable files\&. If you want to disassemble an object file, you should probably be using \fBobjdump\fR(1)\&.
116
+ .sp
117
+ Auto\-sync mode won\(cqt necessarily cure all your synchronisation problems: a sync marker can only be placed automatically if a jump or call instruction is found to refer to it \fIbefore\fR \fBndisasm\fR actually disassembles that part of the code\&. Also, if spurious jumps or calls result from disassembling non\-machine\-code data, sync markers may get placed in strange places\&. Feel free to turn auto\-sync off and go back to doing it manually if necessary\&.
118
+ .SH "SEE ALSO"
119
+ .sp
120
+ \fBobjdump\fR(1)