Create dummy file to test nasm-cvs list
[platform/upstream/nasm.git] / CHANGES
1 0.98.30
2 -------
3
4 * Changed doc files a lot: completely removed old READMExx and
5 Wishlist files, incorporating all information in CHANGES and TODO.
6 * I waited a long time to rename zoutieee.c to (original) outieee.c
7 * moved all output modules to output/ subdirectory.
8 * Added 'make strip' target to strip debug info from nasm & ndisasm.
9 * Added INSTALL file with installation instructions.
10 * Added -v option description to nasm man.
11 * Added dist makefile target to produce source distributions.
12
13
14 0.98.28
15 -------
16
17 * Fastcooked this for Debian's Woody release:
18 Frank applied the INCBIN bug patch to 0.98.25alt and called
19 it 0.98.28 to not confuse poor little apt-get.
20
21
22 0.98.26
23 -------
24
25 * Reorganised files even better from 0.98.25alt
26
27
28 0.98.25alt
29 ----------
30
31 * Prettified the source tree. Moved files to more
32 reasonable places.
33 * Added findleak.pl script to misc/ directory.
34 * FIXME: Frank, document this please.
35
36
37 0.98.25
38 -------
39
40 * FIXME: Frank, document this please.
41
42
43 0.98.24p1
44 ---------
45
46 * FIXME: Frank, document this please.
47
48
49 0.98.24
50 -------
51
52 * FIXME: Frank, document this please.
53
54
55 0.98.23
56 -------
57
58 * FIXME: Frank, document this please.
59
60
61 0.98.22
62 -------
63
64 * FIXME: Frank, document this please.
65
66
67 0.98.21
68 -------
69
70 * FIXME: Frank, document this please.
71
72
73 0.98.20
74 -------
75
76 * FIXME: Frank, document this please.
77
78
79 0.98.19
80 -------
81
82 * FIXME: Frank, document this please.
83
84
85 0.98.18
86 -------
87
88 * FIXME: Frank, document this please.
89
90
91 0.98.17
92 -------
93
94 * FIXME: Frank, document this please.
95
96
97 0.98.16
98 -------
99
100 * FIXME: Frank, document this please.
101
102
103 0.98.14
104 -------
105
106 * FIXME: Frank, document this please.
107
108
109 0.98.12
110 -------
111
112 * FIXME: Frank, document this please.
113
114
115 0.98.09
116 -------
117
118 * FIXME: Frank, document this please.
119
120
121 0.98.08
122 -------
123
124 * FIXME: Frank, document this please.
125
126
127 0.98.09b with John Coffman patches released 28-Oct-2001
128 -------------------------------------------------------
129
130 Changes from 0.98.07 release to 98.09b as of 28-Oct-2001
131
132 * More closely compatible with 0.98 when -O0 is implied
133 or specified.  Not strictly identical, since backward 
134 branches in range of short offsets are recognized, and signed
135 byte values with no explicit size specification will be
136 assembled as a single byte.
137
138 * More forgiving with the PUSH instruction.  0.98 requires
139 a size to be specified always.  0.98.09b will imply the size
140 from the current BITS setting (16 or 32).
141
142 * Changed definition of the optimization flag:
143
144         -O0     strict two-pass assembly, JMP and Jcc are
145                 handled more like 0.98, except that back-
146                 ward JMPs are short, if possible.
147
148         -O1     strict two-pass assembly, but forward
149                 branches are assembled with code guaranteed
150                 to reach; may produce larger code than
151                 -O0, but will produce successful assembly
152                 more often if branch offset sizes are not
153                 specified.
154
155         -O2     multi-pass optimization, minimize branch
156                 offsets; also will minimize signed immed-
157                 iate bytes, overriding size specification.
158
159         -O3     like -O2, but more passes taken, if needed
160
161
162 0.98.07 released 01/28/01
163 -------------------------
164
165 * fbk - added Stepane Denis' SSE2 instructions to a *working*
166         version of the code - some earlier versions were based on
167         broken code - sorry 'bout that. version "0.98.07"
168
169
170 01/28/01
171 --------
172
173 * fbk - cosmetic modifications to nasm.c, nasm.h,
174         AUTHORS, MODIFIED
175
176
177 0.98.06f released 01/18/01
178 --------------------------
179
180 * fbk - "metalbrain"s jecxz bug fix in insns.dat
181         - alter nasmdoc.src to match - version "0.98.06f"
182
183
184 0.98.06e released 01/09/01
185 --------------------------
186
187 * fbk - removed the "outforms.h" file - it appears to be
188         someone's old backup of "outform.h". version "0.98.06e" 
189
190
191 01/09/01
192 --------
193
194 * fbk - finally added the fix for the "multiple %includes bug",
195         known since 7/27/99 - reported originally (?) and sent to
196         us by Austin Lunnen - he reports that John Fine had a fix
197         within the day. Here it is...
198
199 * Nelson Rush resigns from the group. Big thanks to Nelson for
200   his leadership and enthusiasm in getting these changes
201   incorporated into Nasm!
202
203 * fbk - [list +], [list -] directives - ineptly implemented, should
204         be re-written or removed, perhaps.
205
206 * Brian Raiter / fbk - "elfso bug" fix - applied to aoutb format
207                        as well - testing might be desirable...
208
209
210 08/07/00
211 --------
212
213 * James Seter - -postfix, -prefix command line switches.
214 * Yuri Zaporogets - rdoff utility changes.
215
216
217 0.98p1
218 ------
219
220 * GAS-like palign (Panos Minos)
221 * FIXME: Frank, fill this in with details
222
223
224 0.98bf (bug-fixed, aka brain-fuck)
225 ----------------------------------
226
227 * FIXME: Frank, fill this in
228
229
230 0.98.03 with John Coffman's changes released 27-Jul-2000
231 --------------------------------------------------------
232
233 * Added signed byte optimizations for the 0x81/0x83 class
234 of instructions: ADC, ADD, AND, CMP, OR, SBB, SUB, XOR:
235 when used as 'ADD reg16,imm' or 'ADD reg32,imm.'  Also
236 optimization of signed byte form of 'PUSH imm' and 'IMUL
237 reg,imm'/'IMUL reg,reg,imm.'  No size specification is needed.
238
239 * Added multi-pass JMP and Jcc offset optimization.  Offsets
240 on forward references will preferentially use the short form,
241 without the need to code a specific size (short or near) for
242 the branch.  Added instructions for 'Jcc label' to use the
243 form 'Jnotcc $+3/JMP label', in cases where a short offset
244 is out of bounds.  If compiling for a 386 or higher CPU, then
245 the 386 form of Jcc will be used instead.
246
247 This feature is controlled by a new command-line switch: "O",
248 (upper case letter O).  "-O0" reverts the assembler to no
249 extra optimization passes, "-O1" allows up to 5 extra passes,
250 and "-O2"(default), allows up to 10 extra optimization passes.
251
252 * Added a new directive:  'cpu XXX', where XXX is any of: 
253 8086, 186, 286, 386, 486, 586, pentium, 686, PPro, P2, P3 or
254 Katmai.  All are case insensitive.  All instructions will
255 be selected only if they apply to the selected cpu or lower.
256 Corrected a couple of bugs in cpu-dependence in 'insns.dat'.
257
258 * Added to 'standard.mac', the "use16" and "use32" forms of
259 the "bits 16/32" directive. This is nothing new, just conforms
260 to a lot of other assemblers. (minor)
261
262 * Changed label allocation from 320/32 (10000 labels @ 200K+) 
263 to 32/37 (1000 labels); makes running under DOS much easier.
264 Since additional label space is allocated dynamically, this
265 should have no effect on large programs with lots of labels.
266 The 37 is a prime, believed to be better for hashing. (minor)
267
268 * Integrated patchfile 0.98-0.98.01.  I call this version
269 0.98.03, for historical reasons:  0.98.02 was trashed.
270
271 --John Coffman <johninsd@san.rr.com>               27-Jul-2000
272
273
274 Kendall Bennett's SciTech MGL changes
275 -------------------------------------
276 Note that you must define "TASM_COMPAT" at compile-time
277 to get the Tasm Ideal Mode compatibility.
278
279 All changes can be compiled in and out using the TASM_COMPAT macros,
280 and when compiled without TASM_COMPAT defined we get the exact same
281 binary as the unmodified 0.98 sources.
282
283 standard.mac, macros.c:
284  . Added macros to ignore TASM directives before first include
285
286 nasm.h:
287  . Added extern declaration for tasm_compatible_mode
288
289 nasm.c:
290  . Added global variable tasm_compatible_mode
291  . Added command line switch for TASM compatible mode (-t)
292  . Changed version command line to reflect when compiled with TASM additions
293  . Added response file processing to allow all arguments on a single
294    line (response file is @resp rather than -@resp for NASM format).
295
296 labels.c:
297  . Changes islocal() macro to support TASM style @@local labels.
298  . Added islocalchar() macro to support TASM style @@local labels.
299
300 parser.c:
301  . Added support for TASM style memory references (ie: mov [DWORD eax],10
302    rather than the NASM style mov DWORD [eax],10).
303
304 preproc.c:
305  . Added new directives, %arg, %local, %stacksize to directives table
306  . Added support for TASM style directives without a leading % symbol.
307
308 Integrated a block of changes from Andrew Zabolotny <bit@eltech.ru>:
309
310 * A new keyword %xdefine and its case-insensitive counterpart %ixdefine.
311     They work almost the same way as %define and %idefine but expand
312     the definition immediately, not on the invocation. Something like a cross
313     between %define and %assign. The "x" suffix stands for "eXpand", so
314     "xdefine" can be deciphered as "expand-and-define". Thus you can do
315     things like this:
316
317         %assign ofs     0
318         
319         %macro  arg     1
320                 %xdefine %1 dword [esp+ofs]
321                 %assign ofs ofs+4
322         %endmacro
323
324 * Changed the place where the expansion of %$name macros are expanded.
325     Now they are converted into ..@ctxnum.name form when detokenizing, so
326     there are no quirks as before when using %$name arguments to macros,
327     in macros etc. For example:
328
329         %macro  abc     1
330                 %define %1 hello
331         %endm
332
333         abc     %$here
334         %$here
335
336     Now last line will be expanded into "hello" as expected. This also allows
337     for lots of goodies, a good example are extended "proc" macros included
338     in this archive.
339
340 * Added a check for "cstk" in smacro_defined() before calling get_ctx() -
341     this allows for things like:
342
343         %ifdef %$abc
344         %endif
345
346     to work without warnings even in no context.
347
348 * Added a check for "cstk" in %if*ctx and %elif*ctx directives -
349     this allows to use %ifctx without excessive warnings. If there is
350     no active context, %ifctx goes through "false" branch.
351
352 * Removed "user error: " prefix with %error directive: it just clobbers the
353     output and has absolutely no functionality. Besides, this allows to write
354     macros that does not differ from built-in functions in any way.
355
356 * Added expansion of string that is output by %error directive. Now you
357     can do things like:
358
359         %define hello(x) Hello, x!
360
361         %define %$name andy
362         %error "hello(%$name)"
363
364     Same happened with %include directive.
365
366 * Now all directives that expect an identifier will try to expand and
367     concatenate everything without whitespaces in between before usage.
368     For example, with "unfixed" nasm the commands
369
370         %define %$abc hello
371         %define __%$abc goodbye
372         __%$abc
373
374     would produce "incorrect" output: last line will expand to
375
376         hello goodbyehello
377
378     Not quite what you expected, eh? :-) The answer is that preprocessor
379     treats the %define construct as if it would be
380
381         %define __ %$abc goodbye
382
383     (note the white space between __ and %$abc). After my "fix" it
384     will "correctly" expand into
385
386         goodbye
387
388     as expected. Note that I use quotes around words "correct", "incorrect"
389     etc because this is rather a feature not a bug; however current behaviour
390     is more logical (and allows more advanced macro usage :-).
391
392     Same change was applied to:
393         %push,%macro,%imacro,%define,%idefine,%xdefine,%ixdefine,
394         %assign,%iassign,%undef
395
396 * A new directive [WARNING {+|-}warning-id] have been added. It works only
397     if the assembly phase is enabled (i.e. it doesn't work with nasm -e).
398
399 * A new warning type: macro-selfref. By default this warning is disabled;
400     when enabled NASM warns when a macro self-references itself; for example
401     the following source:
402
403         [WARNING macro-selfref]
404
405         %macro          push    1-*
406                 %rep    %0
407                         push    %1
408                         %rotate 1
409                 %endrep
410         %endmacro
411
412                         push    eax,ebx,ecx
413
414     will produce a warning, but if we remove the first line we won't see it
415     anymore (which is The Right Thing To Do {tm} IMHO since C preprocessor
416     eats such constructs without warnings at all).
417
418 * Added a "error" routine to preprocessor which always will set ERR_PASS1
419     bit in severity_code. This removes annoying repeated errors on first
420     and second passes from preprocessor.
421
422 * Added the %+ operator in single-line macros for concatenating two
423     identifiers. Usage example:
424
425         %define _myfunc _otherfunc
426         %define cextern(x) _ %+ x
427         cextern (myfunc)
428
429     After first expansion, third line will become "_myfunc". After this
430     expansion is performed again so it becomes "_otherunc".
431
432 * Now if preprocessor is in a non-emmitting state, no warning or error
433     will be emmitted. Example:
434
435         %if 1
436                 mov     eax,ebx
437         %else
438                 put anything you want between these two brackets,
439                 even macro-parameter references %1 or local labels %$zz
440                 or macro-local labels %%zz - no warning will be emmitted.
441         %endif
442
443 * Context-local variables on expansion as a last resort are looked up
444     in outer contexts. For example, the following piece:
445
446         %push   outer
447         %define %$a [esp]
448
449                 %push   inner
450                 %$a
451                 %pop
452         %pop
453
454     will expand correctly the fourth line to [esp]; if we'll define another
455     %$a inside the "inner" context, it will take precedence over outer
456     definition. However, this modification has been applied only to
457     expand_smacro and not to smacro_define: as a consequence expansion
458     looks in outer contexts, but %ifdef won't look in outer contexts.
459
460     This behaviour is needed because we don't want nested contexts to
461     act on already defined local macros. Example:
462
463         %define %$arg1  [esp+4]
464         test    eax,eax
465         if      nz
466                 mov     eax,%$arg1
467         endif
468
469     In this example the "if" mmacro enters into the "if" context, so %$arg1
470     is not valid anymore inside "if". Of course it could be worked around
471     by using explicitely %$$arg1 but this is ugly IMHO.
472
473 * Fixed memory leak in %undef. The origline wasn't freed before
474     exiting on success.
475
476 * Fixed trap in preprocessor when line expanded to empty set of tokens.
477     This happens, for example, in the following case:
478
479         #define SOMETHING
480         SOMETHING
481
482
483 0.98
484 ----
485
486 All changes since NASM 0.98p3 have been produced by H. Peter Anvin <hpa@zytor.com>.
487
488 * The documentation comment delimiter is \# not #.
489 * Allow EQU definitions to refer to external labels; reported by
490   Pedro Gimeno.
491 * Re-enable support for RDOFF v1; reported by Pedro Gimeno.
492 * Updated License file per OK from Simon and Julian.
493
494
495 0.98p9
496 ------
497
498 * Update documentation (although the instruction set reference will
499   have to wait; I don't want to hold up the 0.98 release for it.)
500 * Verified that the NASM implementation of the PEXTRW and PMOVMSKB
501   instructions is correct.  The encoding differs from what the Intel
502   manuals document, but the Pentium III behaviour matches NASM, not
503   the Intel manuals.
504 * Fix handling of implicit sizes in PSHUFW and PINSRW, reported by
505   Stefan Hoffmeister.
506 * Resurrect the -s option, which was removed when changing the
507   diagnostic output to stdout.
508
509
510 0.98p8
511 ------
512
513 * Fix for "DB" when NASM is running on a bigendian machine.
514 * Invoke insns.pl once for each output script, making Makefile.in
515   legal for "make -j".
516 * Improve the Unix configure-based makefiles to make package
517   creation easier.
518 * Included an RPM .spec file for building RPM (RedHat Package Manager)
519   packages on Linux or Unix systems.
520 * Fix Makefile dependency problems.
521 * Change src/rdsrc.pl to include sectioning information in info
522   output; required for install-info to work.
523 * Updated the RDOFF distribution to version 2 from Jules; minor
524   massaging to make it compile in my environment.
525 * Split doc files that can be built by anyone with a Perl interpreter off
526   into a separate archive.
527 * "Dress rehearsal" release!
528
529
530 0.98p7
531 ------
532
533 * Fixed opcodes with a third byte-sized immediate argument to not
534   complain if given "byte" on the immediate.
535 * Allow %undef to remove single-line macros with arguments.  This
536   matches the behaviour of #undef in the C preprocessor.
537 * Allow -d, -u, -i and -p to be specified as -D, -U, -I and -P for
538   compatibility with most C compilers and preprocessors.  This allows
539   Makefile options to be shared between cc and nasm, for example.
540 * Minor cleanups.
541 * Went through the list of Katmai instructions and hopefully fixed the
542   (rather few) mistakes in it.
543 * (Hopefully) fixed a number of disassembler bugs related to ambiguous
544   instructions (disambiguated by -p) and SSE instructions with REP.
545 * Fix for bug reported by Mark Junger: "call dword 0x12345678" should
546   work and may add an OSP (affected CALL, JMP, Jcc).
547 * Fix for environments when "stderr" isn't a compile-time constant.
548
549
550 0.98p6
551 ------
552
553 * Took officially over coordination of the 0.98 release; so drop
554   the p3.x notation. Skipped p4 and p5 to avoid confusion with John
555   Fine's J4 and J5 releases.
556 * Update the documentation; however, it still doesn't include
557   documentation for the various new instructions.  I somehow wonder if
558   it makes sense to have an instruction set reference in the assembler
559   manual when Intel et al have PDF versions of their manuals online.
560 * Recognize "idt" or "centaur" for the -p option to ndisasm.
561 * Changed error messages back to stderr where they belong, but add an
562   -E option to redirect them elsewhere (the DOS shell cannot redirect
563   stderr.)
564 * -M option to generate Makefile dependencies (based on code from Alex
565   Verstak.)
566 * %undef preprocessor directive, and -u option, that undefines a
567   single-line macro.
568 * OS/2 Makefile (Mkfiles/Makefile.os2) for Borland under OS/2; from
569   Chuck Crayne.
570 * Various minor bugfixes (reported by):
571   - Dangling %s in preproc.c (Martin Junker)
572 * THERE ARE KNOWN BUGS IN SSE AND THE OTHER KATMAI INSTRUCTIONS.  I am
573   on a trip and didn't bring the Katmai instruction reference, so I
574   can't work on them right now.
575 * Updated the License file per agreement with Simon and Jules to
576   include a GPL distribution clause.
577
578
579 0.98p3.7
580 --------
581
582 * (Hopefully) fixed the canned Makefiles to include the outrdf2 and
583   zoutieee modules.
584 * Renamed changes.asm to changed.asm.
585
586
587 0.98p3.6
588 --------
589
590 * Fixed a bunch of instructions that were added in 0.98p3.5 which had
591   memory operands, and the address-size prefix was missing from the
592   instruction pattern.
593
594
595 0.98p3.5
596 --------
597
598 * Merged in changes from John S. Fine's 0.98-J5 release.  John's based
599   0.98-J5 on my 0.98p3.3 release; this merges the changes.
600 * Expanded the instructions flag field to a long so we can fit more
601   flags; mark SSE (KNI) and AMD or Katmai-specific instructions as
602   such.
603 * Fix the "PRIV" flag on a bunch of instructions, and create new
604   "PROT" flag for protected-mode-only instructions (orthogonal to if
605   the instruction is privileged!) and new "SMM" flag for SMM-only
606   instructions.
607 * Added AMD-only SYSCALL and SYSRET instructions.
608 * Make SSE actually work, and add new Katmai MMX instructions.
609 * Added a -p (preferred vendor) option to ndisasm so that it can
610   distinguish e.g. Cyrix opcodes also used in SSE.  For example:
611
612         ndisasm -p cyrix aliased.bin
613         00000000  670F514310        paddsiw mm0,[ebx+0x10]
614         00000005  670F514320        paddsiw mm0,[ebx+0x20]
615         ndisasm -p intel aliased.bin
616         00000000  670F514310        sqrtps xmm0,[ebx+0x10]
617         00000005  670F514320        sqrtps xmm0,[ebx+0x20]
618 * Added a bunch of Cyrix-specific instructions.
619
620
621 0.98p3.4
622 --------
623
624 * Made at least an attempt to modify all the additional Makefiles (in
625   the Mkfiles directory).  I can't test it, but this was the best I
626   could do.
627 * DOS DJGPP+"Opus Make" Makefile from John S. Fine.
628 * changes.asm changes from John S. Fine.
629
630
631 0.98p3.3
632 --------
633
634 * Patch from Conan Brink to allow nesting of %rep directives.
635 * If we're going to allow INT01 as an alias for INT1/ICEBP (one of
636   Jules 0.98p3 changes), then we should allow INT03 as an alias for INT3
637   as well.
638 * Updated changes.asm to include the latest changes.
639 * Tried to clean up the <CR>s that had snuck in from a DOS/Windows
640   environment into my Unix environment, and try to make sure than
641   DOS/Windows users get them back.
642 * We would silently generate broken tools if insns.dat wasn't sorted
643   properly.  Change insns.pl so that the order doesn't matter.
644 * Fix bug in insns.pl (introduced by me) which would cause conditional
645   instructions to have an extra "cc" in disassembly, e.g. "jnz"
646   disassembled as "jccnz".
647
648
649 0.98p3.2
650 --------
651
652 * Merged in John S. Fine's changes from his 0.98-J4 prerelease; see
653   http://www.csoft.net/cz/johnfine/
654 * Changed previous "spotless" Makefile target (appropriate for distribution)
655   to "distclean", and added "cleaner" target which is same as "clean"
656   except deletes files generated by Perl scripts; "spotless" is union.
657 * Removed BASIC programs from distribution.  Get a Perl interpreter
658   instead (see below.)
659 * Calling this "pre-release 3.2" rather than "p3-hpa2" because of
660   John's contributions.
661 * Actually link in the IEEE output format (zoutieee.c); fix a bunch of
662   compiler warnings in that file.  Note I don't know what IEEE output
663   is supposed to look like, so these changes were made "blind".
664
665
666 0.98p3-hpa
667 ----------
668
669 * Merged nasm098p3.zip with nasm-0.97.tar.gz to create a fully
670   buildable version for Unix systems (Makefile.in updates, etc.)
671 * Changed insns.pl to create the instruction tables in nasm.h and
672   names.c, so that a new instruction can be added by adding it *only*
673   to insns.dat.
674 * Added the following new instructions: SYSENTER, SYSEXIT, FXSAVE,
675   FXRSTOR, UD1, UD2 (the latter two are two opcodes that Intel
676   guarantee will never be used; one of them is documented as UD2 in
677   Intel documentation, the other one just as "Undefined Opcode" --
678   calling it UD1 seemed to make sense.)
679 * MAX_SYMBOL was defined to be 9, but LOADALL286 and LOADALL386 are 10
680   characters long.  Now MAX_SYMBOL is derived from insns.dat.
681 * A note on the BASIC programs included: forget them.  insns.bas is
682   already out of date.  Get yourself a Perl interpreter for your
683   platform of choice at:
684
685         http://www.cpan.org/ports/index.html
686
687
688 0.98 pre-release 3
689 -------------------
690
691 added response file support, improved command line handling, new layout
692 help screen
693
694 fixed limit checking bug, 'OUT byte nn, reg' bug, and a couple of rdoff
695 related bugs, updated Wishlist; 0.98 Prerelease 3.
696
697
698 0.98 pre-release 2
699 -------------------
700
701 fixed bug in outcoff.c to do with truncating section names longer
702 than 8 characters, referencing beyond end of string; 0.98 pre-release 2
703
704
705 0.98 pre-released May 1999
706 --------------------------
707
708 Fixed a bug whereby STRUC didn't work at all in RDF.
709
710 Fixed a problem with group specification in PUBDEFs in OBJ.
711
712 Improved ease of adding new output formats. Contribution due to
713 Fox Cutter.
714
715 Fixed a bug in relocations in the `bin' format: was showing up when
716 a relocatable reference crossed an 8192-byte boundary in any output
717 section.
718
719 Fixed a bug in local labels: local-label lookups were inconsistent
720 between passes one and two if an EQU occurred between the definition
721 of a global label and the subsequent use of a local label local to
722 that global.
723
724 Fixed a seg-fault in the preprocessor (again) which happened when
725 you use a blank line as the first line of a multi-line macro
726 definition and then defined a label on the same line as a call to
727 that macro.
728
729 Fixed a stale-pointer bug in the handling of the NASM environment
730 variable. Thanks to Thomas McWilliams.
731
732 ELF had a hard limit on the number of sections which caused
733 segfaults when transgressed. Fixed.
734
735 Added ability for ndisasm to read from stdin by using `-' as the
736 filename.
737
738 ndisasm wasn't outputting the TO keyword. Fixed.
739
740 Fixed error cascade on bogus expression in %if - an error in
741 evaluation was causing the entire %if to be discarded, thus creating
742 trouble later when the %else or %endif was encountered.
743
744 Forward reference tracking was instruction-granular not operand-
745 granular, which was causing 286-specific code to be generated
746 needlessly on code of the form `shr word [forwardref],1'. Thanks to
747 Jim Hague for sending a patch.
748
749 All messages now appear on stdout, as sending them to stderr serves
750 no useful purpose other than to make redirection difficult.
751
752 Fixed the problem with EQUs pointing to an external symbol - this
753 now generates an error message.
754
755 Allowed multiple size prefixes to an operand, of which only the first
756 is taken into account.
757
758 Incorporated John Fine's changes, including fixes of a large number
759 of preprocessor bugs, some small problems in OBJ, and a reworking of
760 label handling to define labels before their line is assembled, rather
761 than after.
762
763 Reformatted a lot of the source code to be more readable. Included
764 'coding.txt' as a guideline for how to format code for contributors.
765
766 Stopped nested %reps causing a panic - they now cause a slightly more
767 friendly error message instead.
768
769 Fixed floating point constant problems (patch by Pedro Gimeno)
770
771 Fixed the return value of insn_size() not being checked for -1, indicating
772 an error.
773
774 Incorporated 3D now instructions.
775
776 Fixed the 'mov eax, eax + ebx' bug.
777
778 Fixed the GLOBAL EQU bug in ELF. Released developers release 3.
779
780 Incorporated John Fine's command line parsing changes
781
782 Incorporated David Lindauer's OMF debug support
783
784 Made changes for LCC 4.0 support (__NASM_CDecl__, removed register size
785 specification warning when sizes agree).
786
787 Released NASM 0.98 Pre-release 1
788
789
790 0.97 released December 1997
791 ---------------------------
792
793 This was entirely a bug-fix release to 0.96, which seems to have got
794 cursed. Silly me.
795
796 Fixed stupid mistake in OBJ which caused `MOV EAX,<constant>' to
797 fail. Caused by an error in the `MOV EAX,<segment>' support.
798
799 ndisasm hung at EOF when compiled with lcc on Linux because lcc on
800 Linux somehow breaks feof(). ndisasm now does not rely on feof().
801
802 A heading in the documentation was missing due to a markup error in
803 the indexing. Fixed.
804
805 Fixed failure to update all pointers on realloc() within extended-
806 operand code in parser.c. Was causing wrong behaviour and seg faults
807 on lines such as `dd 0.0,0.0,0.0,0.0,...'
808
809 Fixed a subtle preprocessor bug whereby invoking one multi-line
810 macro on the first line of the expansion of another, when the second
811 had been invoked with a label defined before it, didn't expand the
812 inner macro. 
813
814 Added internal.doc back in to the distribution archives - it was
815 missing in 0.96 *blush*
816
817 Fixed bug causing 0.96 to be unable to assemble its own test files,
818 specifically objtest.asm. *blush again*
819
820 Fixed seg-faults and bogus error messages caused by mismatching
821 %rep and %endrep within multi-line macro definitions.
822
823 Fixed a problem with buffer overrun in OBJ, which was causing
824 corruption at ends of long PUBDEF records.
825
826 Separated DOS archives into main-program and documentation to reduce
827 download size.
828
829
830 0.96 released November 1997
831 ---------------------------
832
833 Fixed a bug whereby, if `nasm sourcefile' would cause a filename
834 collision warning and put output into `nasm.out', then `nasm
835 sourcefile -o outputfile' still gave the warning even though the
836 `-o' was honoured.
837
838 Fixed name pollution under Digital UNIX: one of its header files
839 defined R_SP, which broke the enum in nasm.h.
840
841 Fixed minor instruction table problems: FUCOM and FUCOMP didn't have
842 two-operand forms; NDISASM didn't recognise the longer register
843 forms of PUSH and POP (eg FF F3 for PUSH BX); TEST mem,imm32 was
844 flagged as undocumented; the 32-bit forms of CMOV had 16-bit operand
845 size prefixes; `AAD imm' and `AAM imm' are no longer flagged as
846 undocumented because the Intel Architecture reference documents
847 them.
848
849 Fixed a problem with the local-label mechanism, whereby strange
850 types of symbol (EQUs, auto-defined OBJ segment base symbols)
851 interfered with the `previous global label' value and screwed up
852 local labels.
853
854 Fixed a bug whereby the stub preprocessor didn't communicate with
855 the listing file generator, so that the -a and -l options in
856 conjunction would produce a useless listing file.
857
858 Merged `os2' object file format back into `obj', after discovering
859 that `obj' _also_ shouldn't have a link pass separator in a module
860 containing a non-trivial MODEND. Flat segments are now declared
861 using the FLAT attribute. `os2' is no longer a valid object format
862 name: use `obj'.
863
864 Removed the fixed-size temporary storage in the evaluator. Very very
865 long expressions (like `mov ax,1+1+1+1+...' for two hundred 1s or
866 so) should now no longer crash NASM.
867
868 Fixed a bug involving segfaults on disassembly of MMX instructions,
869 by changing the meaning of one of the operand-type flags in nasm.h.
870 This may cause other apparently unrelated MMX problems; it needs to
871 be tested thoroughly.
872
873 Fixed some buffer overrun problems with large OBJ output files.
874 Thanks to DJ Delorie for the bug report and fix.
875
876 Made preprocess-only mode actually listen to the %line markers as it
877 prints them, so that it can report errors more sanely.
878
879 Re-designed the evaluator to keep more sensible track of expressions
880 involving forward references: can now cope with previously-nightmare
881 situations such as
882    mov ax,foo | bar
883    foo equ 1
884    bar equ 2
885
886 Added the ALIGN and ALIGNB standard macros.
887
888 Added PIC support in ELF: use of WRT to obtain the four extra
889 relocation types needed.
890
891 Added the ability for output file formats to define their own
892 extensions to the GLOBAL, COMMON and EXTERN directives.
893
894 Implemented common-variable alignment, and global-symbol type and
895 size declarations, in ELF.
896
897 Implemented NEAR and FAR keywords for common variables, plus
898 far-common element size specification, in OBJ.
899
900 Added a feature whereby EXTERNs and COMMONs in OBJ can be given a
901 default WRT specification (either a segment or a group).
902
903 Transformed the Unix NASM archive into an auto-configuring package.
904
905 Added a sanity-check for people applying SEG to things which are
906 already segment bases: this previously went unnoticed by the SEG
907 processing and caused OBJ-driver panics later.
908
909 Added the ability, in OBJ format, to deal with `MOV EAX,<segment>'
910 type references: OBJ doesn't directly support dword-size segment
911 base fixups, but as long as the low two bytes of the constant term
912 are zero, a word-size fixup can be generated instead and it will
913 work.
914
915 Added the ability to specify sections' alignment requirements in
916 Win32 object files and pure binary files.
917
918 Added preprocess-time expression evaluation: the %assign (and
919 %iassign) directive and the bare %if (and %elif) conditional. Added
920 relational operators to the evaluator, for use only in %if
921 constructs: the standard relationals = < > <= >= <> (and C-like
922 synonyms == and !=) plus low-precedence logical operators &&, ^^ and
923 ||.
924
925 Added a preprocessor repeat construct: %rep / %exitrep / %endrep.
926
927 Added the __FILE__ and __LINE__ standard macros.
928
929 Added a sanity check for number constants being greater than
930 0xFFFFFFFF. The warning can be disabled.
931
932 Added the %0 token whereby a variadic multi-line macro can tell how
933 many parameters it's been given in a specific invocation.
934
935 Added %rotate, allowing multi-line macro parameters to be cycled.
936
937 Added the `*' option for the maximum parameter count on multi-line
938 macros, allowing them to take arbitrarily many parameters.
939
940 Added the ability for the user-level forms of EXTERN, GLOBAL and
941 COMMON to take more than one argument.
942
943 Added the IMPORT and EXPORT directives in OBJ format, to deal with
944 Windows DLLs.
945
946 Added some more preprocessor %if constructs: %ifidn / %ifidni (exact
947 textual identity), and %ifid / %ifnum / %ifstr (token type testing).
948
949 Added the ability to distinguish SHL AX,1 (the 8086 version) from
950 SHL AX,BYTE 1 (the 286-and-upwards version whose constant happens to
951 be 1).
952
953 Added NetBSD/FreeBSD/OpenBSD's variant of a.out format, complete
954 with PIC shared library features.
955
956 Changed NASM's idiosyncratic handling of FCLEX, FDISI, FENI, FINIT,
957 FSAVE, FSTCW, FSTENV, and FSTSW to bring it into line with the
958 otherwise accepted standard. The previous behaviour, though it was a
959 deliberate feature, was a deliberate feature based on a
960 misunderstanding. Apologies for the inconvenience.
961
962 Improved the flexibility of ABSOLUTE: you can now give it an
963 expression rather than being restricted to a constant, and it can
964 take relocatable arguments as well.
965
966 Added the ability for a variable to be declared as EXTERN multiple
967 times, and the subsequent definitions are just ignored.
968
969 We now allow instruction prefixes (CS, DS, LOCK, REPZ etc) to be
970 alone on a line (without a following instruction).
971
972 Improved sanity checks on whether the arguments to EXTERN, GLOBAL
973 and COMMON are valid identifiers.
974
975 Added misc/exebin.mac to allow direct generation of .EXE files by
976 hacking up an EXE header using DB and DW; also added test/binexe.asm
977 to demonstrate the use of this. Thanks to Yann Guidon for
978 contributing the EXE header code.
979
980 ndisasm forgot to check whether the input file had been successfully
981 opened. Now it does. Doh!
982
983 Added the Cyrix extensions to the MMX instruction set.
984
985 Added a hinting mechanism to allow [EAX+EBX] and [EBX+EAX] to be
986 assembled differently. This is important since [ESI+EBP] and
987 [EBP+ESI] have different default base segment registers.
988
989 Added support for the PharLap OMF extension for 4096-byte segment
990 alignment.
991
992
993 0.95 released July 1997
994 -----------------------
995
996 Fixed yet another ELF bug. This one manifested if the user relied on
997 the default segment, and attempted to define global symbols without
998 first explicitly declaring the target segment.
999
1000 Added makefiles (for NASM and the RDF tools) to build Win32 console
1001 apps under Symantec C++. Donated by Mark Junker.
1002
1003 Added `macros.bas' and `insns.bas', QBasic versions of the Perl
1004 scripts that convert `standard.mac' to `macros.c' and convert
1005 `insns.dat' to `insnsa.c' and `insnsd.c'. Also thanks to Mark
1006 Junker.
1007
1008 Changed the diassembled forms of the conditional instructions so
1009 that JB is now emitted as JC, and other similar changes. Suggested
1010 list by Ulrich Doewich.
1011
1012 Added `@' to the list of valid characters to begin an identifier
1013 with.
1014
1015 Documentary changes, notably the addition of the `Common Problems'
1016 section in nasm.doc.
1017
1018 Fixed a bug relating to 32-bit PC-relative fixups in OBJ.
1019
1020 Fixed a bug in perm_copy() in labels.c which was causing exceptions
1021 in cleanup_labels() on some systems.
1022
1023 Positivity sanity check in TIMES argument changed from a warning to
1024 an error following a further complaint.
1025
1026 Changed the acceptable limits on byte and word operands to allow
1027 things like `~10111001b' to work.
1028
1029 Fixed a major problem in the preprocessor which caused seg-faults if
1030 macro definitions contained blank lines or comment-only lines.
1031
1032 Fixed inadequate error checking on the commas separating the
1033 arguments to `db', `dw' etc.
1034
1035 Fixed a crippling bug in the handling of macros with operand counts
1036 defined with a `+' modifier.
1037
1038 Fixed a bug whereby object file formats which stored the input file
1039 name in the output file (such as OBJ and COFF) weren't doing so
1040 correctly when the output file name was specified on the command
1041 line.
1042
1043 Removed [INC] and [INCLUDE] support for good, since they were
1044 obsolete anyway.
1045
1046 Fixed a bug in OBJ which caused all fixups to be output in 16-bit
1047 (old-format) FIXUPP records, rather than putting the 32-bit ones in
1048 FIXUPP32 (new-format) records.
1049
1050 Added, tentatively, OS/2 object file support (as a minor variant on
1051 OBJ).
1052
1053 Updates to Fox Cutter's Borland C makefile, Makefile.bc2.
1054
1055 Removed a spurious second fclose() on the output file.
1056
1057 Added the `-s' command line option to redirect all messages which
1058 would go to stderr (errors, help text) to stdout instead.
1059
1060 Added the `-w' command line option to selectively suppress some
1061 classes of assembly warning messages.
1062
1063 Added the `-p' pre-include and `-d' pre-define command-line options.
1064
1065 Added an include file search path: the `-i' command line option.
1066
1067 Fixed a silly little preprocessor bug whereby starting a line with a
1068 `%!' environment-variable reference caused an `unknown directive'
1069 error.
1070
1071 Added the long-awaited listing file support: the `-l' command line
1072 option.
1073
1074 Fixed a problem with OBJ format whereby, in the absence of any
1075 explicit segment definition, non-global symbols declared in the
1076 implicit default segment generated spurious EXTDEF records in the
1077 output.
1078
1079 Added the NASM environment variable.
1080
1081 From this version forward, Win32 console-mode binaries will be
1082 included in the DOS distribution in addition to the 16-bit binaries.
1083 Added Makefile.vc for this purpose.
1084
1085 Added `return 0;' to test/objlink.c to prevent compiler warnings.
1086
1087 Added the __NASM_MAJOR__ and __NASM_MINOR__ standard defines.
1088
1089 Added an alternative memory-reference syntax in which prefixing an
1090 operand with `&' is equivalent to enclosing it in square brackets,
1091 at the request of Fox Cutter.
1092
1093 Errors in pass two now cause the program to return a non-zero error
1094 code, which they didn't before.
1095
1096 Fixed the single-line macro cycle detection, which didn't work at
1097 all on macros with no parameters (caused an infinite loop). Also
1098 changed the behaviour of single-line macro cycle detection to work
1099 like cpp, so that macros like `extrn' as given in the documentation
1100 can be implemented.
1101
1102 Fixed the implementation of WRT, which was too restrictive in that
1103 you couldn't do `mov ax,[di+abc wrt dgroup]' because (di+abc) wasn't
1104 a relocatable reference.
1105
1106
1107 0.94 released April 1997
1108 ------------------------
1109
1110 Major item: added the macro processor.
1111
1112 Added undocumented instructions SMI, IBTS, XBTS and LOADALL286. Also
1113 reorganised CMPXCHG instruction into early-486 and Pentium forms.
1114 Thanks to Thobias Jones for the information.
1115
1116 Fixed two more stupid bugs in ELF, which were causing `ld' to
1117 continue to seg-fault in a lot of non-trivial cases.
1118
1119 Fixed a seg-fault in the label manager.
1120
1121 Stopped FBLD and FBSTP from _requiring_ the TWORD keyword, which is
1122 the only option for BCD loads/stores in any case.
1123
1124 Ensured FLDCW, FSTCW and FSTSW can cope with the WORD keyword, if
1125 anyone bothers to provide it. Previously they complained unless no
1126 keyword at all was present.
1127
1128 Some forms of FDIV/FDIVR and FSUB/FSUBR were still inverted: a
1129 vestige of a bug that I thought had been fixed in 0.92. This was
1130 fixed, hopefully for good this time...
1131
1132 Another minor phase error (insofar as a phase error can _ever_ be
1133 minor) fixed, this one occurring in code of the form
1134    rol ax,forward_reference
1135    forward_reference equ 1
1136
1137 The number supplied to TIMES is now sanity-checked for positivity,
1138 and also may be greater than 64K (which previously didn't work on
1139 16-bit systems).
1140
1141 Added Watcom C makefiles, and misc/pmw.bat, donated by Dominik Behr.
1142
1143 Added the INCBIN pseudo-opcode.
1144
1145 Due to the advent of the preprocessor, the [INCLUDE] and [INC]
1146 directives have become obsolete. They are still supported in this
1147 version, with a warning, but won't be in the next.
1148
1149 Fixed a bug in OBJ format, which caused incorrect object records to
1150 be output when absolute labels were made global.
1151
1152 Updates to RDOFF subdirectory, and changes to outrdf.c.
1153
1154
1155 0.93 released January 1997
1156 --------------------------
1157
1158 This release went out in a great hurry after semi-crippling bugs
1159 were found in 0.92.
1160
1161 Really _did_ fix the stack overflows this time. *blush*
1162
1163 Had problems with EA instruction sizes changing between passes, when
1164 an offset contained a forward reference and so 4 bytes were
1165 allocated for the offset in pass one; by pass two the symbol had
1166 been defined and happened to be a small absolute value, so only 1
1167 byte got allocated, causing instruction size mismatch between passes
1168 and hence incorrect address calculations. Fixed.
1169
1170 Stupid bug in the revised ELF section generation fixed (associated
1171 string-table section for .symtab was hard-coded as 7, even when this
1172 didn't fit with the real section table). Was causing `ld' to
1173 seg-fault under Linux.
1174
1175 Included a new Borland C makefile, Makefile.bc2, donated by Fox
1176 Cutter <lmb@comtch.iea.com>.
1177
1178
1179 0.92 released January 1997
1180 --------------------------
1181
1182 The FDIVP/FDIVRP and FSUBP/FSUBRP pairs had been inverted: this was
1183 fixed. This also affected the LCC driver.
1184
1185 Fixed a bug regarding 32-bit effective addresses of the form
1186 [other_register+ESP].
1187
1188 Documentary changes, notably documentation of the fact that Borland
1189 Win32 compilers use `obj' rather than `win32' object format.
1190
1191 Fixed the COMENT record in OBJ files, which was formatted
1192 incorrectly.
1193
1194 Fixed a bug causing segfaults in large RDF files.
1195
1196 OBJ format now strips initial periods from segment and group
1197 definitions, in order to avoid complications with the local label
1198 syntax.
1199
1200 Fixed a bug in disassembling far calls and jumps in NDISASM.
1201
1202 Added support for user-defined sections in COFF and ELF files.
1203
1204 Compiled the DOS binaries with a sensible amount of stack, to
1205 prevent stack overflows on any arithmetic expression containing
1206 parentheses.
1207
1208 Fixed a bug in handling of files that do not terminate in a newline.
1209
1210
1211 0.91 released November 1996
1212 ---------------------------
1213
1214 Loads of bug fixes.
1215 Support for RDF added.
1216 Support for DBG debugging format added.
1217 Support for 32-bit extensions to Microsoft OBJ format added.
1218 Revised for Borland C: some variable names changed, makefile added.
1219 LCC support revised to actually work.
1220 JMP/CALL NEAR/FAR notation added.
1221 `a16', `o16', `a32' and `o32' prefixes added.
1222 Range checking on short jumps implemented.
1223 MMX instruction support added.
1224 Negative floating point constant support added.
1225 Memory handling improved to bypass 64K barrier under DOS.
1226 $ prefix to force treatment of reserved words as identifiers added.
1227 Default-size mechanism for object formats added.
1228 Compile-time configurability added.
1229 `#', `@', `~' and `?' are now valid characters in labels.
1230 `-e' and `-k' options in NDISASM added.
1231
1232
1233 0.90 released October 1996
1234 --------------------------
1235
1236 First release version. First support for object file output. Other
1237 changes from previous version (0.3x) too numerous to document.