Update CHANGES to current delta from 2.03.x.
[nasm/perl-rewrite.git] / CHANGES
blob3646230782bd98bb61e3bd5dd78a57bea0649db9
1 2.04
2 ----
3 * Sanitize macro handing in the %error directive.
4 * New %warning preprocessor directive.
5 * __utf16__ and __utf32__ operators to generate UTF-16 and UTF-32
6   strings.
7 * Fix bug in case-insensitive matching when compiled on platforms that
8   don't use the "configure" script.  Of the official release binaries,
9   that only affects the OS/2 binary.
10 * Correct the handling of nested %reps.
11 * Support for x87 packed BCD constants.
12 * New %warning directive to issue user-controlled warnings.
13 * New %strcat directive to join strings together.
14 * Correct the LTR instruction in 64-bit mode.
15 * Fix unnecessary REX.W prefix on indirect jumps in 64-bit mode.
17 2.03.01
18 -------
19 * Fix buffer overflow in the listing module.
20 * Fix the handling of hexadecimal escape codes in `...` strings.
21 * The Postscript/PDF documentation has been reformatted.
22 * The -F option now implies -g.
24 2.03
25 ----
26 * Add support for Intel AVX, CLMUL and FMA instructions,
27   including YMM registers.
28 * "dy", "resy" and "yword" for 32-byte operands.
29 * Fix some SSE5 instructions.
30 * Intel INVEPT, INVVPID and MOVBE instructions.
31 * Fix checking for critical expressions when the optimizer is enabled.
32 * Support the DWARF debugging format for ELF targets.
33 * Fix optimizations of signed bytes.
34 * Fix operation on bigendian machines.
35 * Fix buffer overflow in the preprocessor.
36 * SAFESEH support for Win32, IMAGEREL for Win64 (SEH).
37 * %? and %?? to refer to the name of a macro itself.  In particular,
38   "%idefine keyword $%?" can be used to make a keyword "disappear".
39 * New options for dependency generation: -MD, -MF, -MP, -MT, -MQ.
40 * New preprocessor directives %pathsearch and %depend; INCBIN
41   reimplemented as a macro.
42 * %include now resolves macros in a sane manner.
43 * %substr can now be used to get other than one-character substrings.
44 * New type of character/string constants, using backquotes (`...`),
45   which support C-style escape sequences.
46 * %defstr and %idefstr to stringize macro definitions before creation.
47 * Fix forward references used in EQU statements.
49 2.02
50 ----
51 * Additional fixes for MMX operands with explicit "qword", as well as
52   (hopefully) SSE operands with "oword".
53 * Fix handling of truncated strings with DO.
54 * Fix segfaults due to memory overwrites when floating-point constants
55   were used.
56 * Fix segfaults due to missing include files.
57 * Fix OpenWatcom Makefiles for DOS and OS/2.
58 * Add autogenerated instruction list back into the documentation.
59 * ELF: Fix segfault when generating stabs, and no symbols have been
60   defined.
61 * ELF: Experimental support for DWARF debugging information.
62 * New compile date and time standard macros.
63 * %ifnum now returns true for negative numbers.
64 * New %iftoken test for a single token.
65 * New %ifempty test for empty expansion.
66 * Add support for the XSAVE instruction group.
67 * Makefile for Netware/gcc.
68 * Fix issue with some warnings getting emitted way too many times.
69 * Autogenerated instruction list added to the documentation.
71 2.01
72 ----
73 * Fix the handling of MMX registers with explicit "qword" tags on
74   memory (broken in 2.00 due to 64-bit changes.)
75 * Fix the PREFETCH instructions.
76 * Fix the documentation.
77 * Fix debugging info when using "-f elf" (backwards alias for "-f
78   elf32").
79 * Man pages for rdoff tools (from the Debian project.)
80 * ELF: handle large numbers of sections.
81 * Fix corrupt output when the optimizer runs out of passes.
83 2.00
84 ----
85 * Added c99 data-type compliance.
86 * Added general x86-64 support.
87 * Added win64 (x86-64 COFF) output format.
88 * Added __BITS__ standard macro.
89 * Renamed the elf output format to elf32 for clarity.
90 * Added elf64 and macho (MacOS X) output formats.
91 * Added Numeric constants in DQ directive.
92 * Added oword, do and reso pseudo operands.
93 * Allow underscores in numbers.
94 * Added 8-, 16- and 128-bit floating-point formats.
95 * Added binary, octal and hexadecimal floating-point.
96 * Correct the generation of floating-point constants.
97 * Added Floating-point option control.
98 * Added Infinity and NaN floating point support.
99 * Added ELF Symbol Visibility support.
100 * Added Setting OSABI value in ELF header directive.
101 * Added Generate Makefile Dependencies option.
102 * Added Unlimited Optimization Passes option.
103 * Added %IFN and %ELIFN support.
104 * Added Logical Negation Operator.
105 * Enhanced Stack Relative Preprocessor Directives.
106 * Enhanced ELF Debug Formats.
107 * Enhanced Send Errors to a File option.
108 * Added SSSE3, SSE4.1, SSE4.2, SSE5 support.
109 * Added a large number of additional instructions.
110 * Significant performance improvements.
112 0.98.39
113 -------
114 * fix buffer overflow
115 * fix outas86's .bss handling
116 * "make spotless" no longer deletes config.h.in.
117 * %(el)if(n)idn insensitivity to string quotes difference (#809300).
118 * (nasm.c) __OUTPUT_FORMAT__ changed to string value instead of symbol.
120 0.98.38
121 -------
122 * Add Makefile for 16-bit DOS binaries under OpenWatcom, and modify
123   mkdep.pl to be able to generate completely pathless dependencies, as
124   required by OpenWatcom wmake (it supports path searches, but not
125   explicit paths.)
126 * Fix the STR instruction.
127 * Fix the ELF output format, which was broken under certain
128   circumstances due to the addition of stabs support.
129 * Quick-fix Borland format debug-info for -f obj  
130 * Fix for %rep with no arguments (#560568)
131 * Fix concatenation of preprocessor function call (#794686)
132 * Fix long label causes coredump (#677841)
133 * Use autoheader as well as autoconf to keep configure from generating
134   ridiculously long command lines.
135 * Make sure that all of the formats which support debugging output
136   actually will suppress debugging output when -g not specified.
138 0.98.37
139 -------
140 * Paths given in "-I" switch searched for "incbin"ed as
141   well as "%include"ed files.
142 * Added stabs debugging for the ELF output format, patch from
143   Martin Wawro.
144 * Fix output/outbin.c to allow origin > 80000000h.
145 * Make -U switch work.
146 * Fix the use of relative offsets with explicit prefixes, e.g. "a32 loop foo".
147 * Remove "backslash()".
148 * Fix the SMSW and SLDT instructions.
149 * -O2 and -O3 are no longer aliases for -O10 and -O15.  If you mean the
150   latter, please say so! :)
152 0.98.36
153 -------
154 * Update rdoff - librarian/archiver - common rec - docs!
155 * Fix signed/unsigned problems.
156 * Fix JMP FAR label and CALL FAR label.
157 * Add new multisection support - map files - fix align bug
158 * Fix sysexit, movhps/movlps reg,reg bugs in insns.dat
159 * "Q" or "O" suffixes indicate octal
160 * Support Prescott new instructions (PNI).
161 * Cyrix XSTORE instruction.
163 0.98.35
164 -------
165 * Fix build failure on 16-bit DOS (Makefile.bc3 workaround for compiler bug.)
166 * Fix dependencies and compiler warnings.
167 * Add "const" in a number of places.
168 * Add -X option to specify error reporting format (use -Xvc to
169   integrate with Microsoft Visual Studio.)
170 * Minor changes for code legibility.
171 * Drop use of tmpnam() in rdoff (security fix.)
173 0.98.34
174 -------
175 * Correct additional address-size vs. operand-size confusions.
176 * Generate dependencies for all Makefiles automatically.
177 * Add support for unimplemented (but theoretically available)
178   registers such as tr0 and cr5.  Segment registers 6 and 7 are called
179   segr6 and segr7 for the operations which they can be represented.
180 * Correct some disassembler bugs related to redundant address-size prefixes.
181   Some work still remains in this area.
182 * Correctly generate an error for things like "SEG eax".
183 * Add the JMPE instruction, enabled by "CPU IA64".
184 * Correct compilation on newer gcc/glibc platforms.
185 * Issue an error on things like "jmp far eax".
188 0.98.33
189 -------
191 * New __NASM_PATCHLEVEL__ and __NASM_VERSION_ID__ standard macros to
192   round out the version-query macros.  version.pl now understands
193   X.YYplWW or X.YY.ZZplWW as a version number, equivalent to
194   X.YY.ZZ.WW (or X.YY.0.WW, as appropriate).
195 * New keyword "strict" to disable the optimization of specific
196   operands.
197 * Fix the handing of size overrides with JMP instructions
198   (instructions such as "jmp dword foo".)
199 * Fix the handling of "ABSOLUTE label", where "label" points into a
200   relocatable segment.
201 * Fix OBJ output format with lots of externs.
202 * More documentation updates.
203 * Add -Ov option to get verbose information about optimizations.
204 * Undo a braindead change which broke %elif directives.
205 * Makefile updates.
208 0.98.32
209 -------
211 * Fix NASM crashing when %macro directives were left unterminated.
212 * Lots of documentation updates.
213 * Complete rewrite of the PostScript/PDF documentation generator.
214 * The MS Visual C++ Makefile was updated and corrected.
215 * Recognize .rodata as a standard section name in ELF.
216 * Fix some obsolete Perl4-isms in Perl scripts.
217 * Fix configure.in to work with autoconf 2.5x.
218 * Fix a couple of "make cleaner" misses.
219 * Make the normal "./configure && make" work with Cygwin.
222 0.98.31
223 -------
225 * Correctly build in a separate object directory again.
226 * Derive all references to the version number from the version file.
227 * New standard macros __NASM_SUBMINOR__ and __NASM_VER__ macros.
228 * Lots of Makefile updates and bug fixes.
229 * New %ifmacro directive to test for multiline macros.
230 * Documentation updates.
231 * Fixes for 16-bit OBJ format output.
232 * Changed the NASM environment variable to NASMENV.
235 0.98.30
236 -------
238 * Changed doc files a lot: completely removed old READMExx and
239   Wishlist files, incorporating all information in CHANGES and TODO.
240 * I waited a long time to rename zoutieee.c to (original) outieee.c
241 * moved all output modules to output/ subdirectory.
242 * Added 'make strip' target to strip debug info from nasm & ndisasm.
243 * Added INSTALL file with installation instructions.
244 * Added -v option description to nasm man.
245 * Added dist makefile target to produce source distributions.
246 * 16-bit support for ELF output format (GNU extension, but useful.)
249 0.98.28
250 -------
252 * Fastcooked this for Debian's Woody release:
253 Frank applied the INCBIN bug patch to 0.98.25alt and called
254 it 0.98.28 to not confuse poor little apt-get.
257 0.98.26
258 -------
260 * Reorganised files even better from 0.98.25alt
263 0.98.25alt
264 ----------
266 * Prettified the source tree. Moved files to more reasonable places.
267 * Added findleak.pl script to misc/ directory.
268 * Attempted to fix doc.
270 0.98.25
271 -------
273 * Line continuation character '\'
274 * Docs inadvertantly reverted - "dos packaging".
277 0.98.24p1
278 ---------
280 * FIXME: Someone, document this please.
283 0.98.24
284 -------
286 * Documentation - Ndisasm doc added to Nasm.doc.
289 0.98.23
290 -------
292 * Attempted to remove rdoff version1
293 * Lino Mastrodomenico's patches to preproc.c (%$$ bug?).
296 0.98.22
297 -------
299 * Update rdoff2 - attempt to remove v1.
302 0.98.21
303 -------
305 * Optimization fixes.
308 0.98.20
309 -------
311 * Optimization fixes.
314 0.98.19
315 -------
317 * H. J. Lu's patch back out.
320 0.98.18
321 -------
323 * Added ".rdata" to "-f win32".
326 0.98.17
327 -------
329 * H. J. Lu's "bogus elf" patch. (Red Hat problem?)
332 0.98.16
333 -------
335 * Fix whitespace before "[section ..." bug.
337 0.98.15
338 -------
340 * Rdoff changes (?).
341 * Fix fixes to memory leaks.
343 0.98.14
344 -------
346 * Fix memory leaks.
347 * (there was no '.13)
349 0.98.12
350 -------
352 * Update optimization (new function of "-O1")
353 * Changes to test/bintest.asm (?).
355 0.98.11
356 -------
358 * Optimization changes.
359 * Ndisasm fixed.
360 * (there was no '.10)
362 0.98.09
363 -------
365 * Add multiple sections support to "-f bin".
366 * Changed GLOBAL_TEMP_BASE in outelf.c from 6 to 15.
367 * Add "-v" as an alias to the "-r" switch.
368 * Remove "#ifdef" from Tasm compatibility options.
369 * Remove redundant size-overrides on "mov ds, ex", etc.
370 * Fixes to SSE2, other insns.dat (?).
371 * Enable uppercase "I" and "P" switches.
372 * Case insinsitive "seg" and "wrt".
373 * Update install.sh (?).
374 * Allocate tokens in blocks.
375 * Improve "invalid effective address" messages.
377 0.98.08
378 -------
380 * Add "%strlen" and "%substr" macro operators
381 * Fixed broken c16.mac.
382 * Unterminated string error reported.
383 * Fixed bugs as per 0.98bf
386 0.98.09b with John Coffman patches released 28-Oct-2001
387 -------------------------------------------------------
389 Changes from 0.98.07 release to 98.09b as of 28-Oct-2001
391 * More closely compatible with 0.98 when -O0 is implied
392 or specified.  Not strictly identical, since backward 
393 branches in range of short offsets are recognized, and signed
394 byte values with no explicit size specification will be
395 assembled as a single byte.
397 * More forgiving with the PUSH instruction.  0.98 requires
398 a size to be specified always.  0.98.09b will imply the size
399 from the current BITS setting (16 or 32).
401 * Changed definition of the optimization flag:
403         -O0     strict two-pass assembly, JMP and Jcc are
404                 handled more like 0.98, except that back-
405                 ward JMPs are short, if possible.
407         -O1     strict two-pass assembly, but forward
408                 branches are assembled with code guaranteed
409                 to reach; may produce larger code than
410                 -O0, but will produce successful assembly
411                 more often if branch offset sizes are not
412                 specified.
414         -O2     multi-pass optimization, minimize branch
415                 offsets; also will minimize signed immed-
416                 iate bytes, overriding size specification.
418         -O3     like -O2, but more passes taken, if needed
421 0.98.07 released 01/28/01
422 -------------------------
424 *       Added Stepane Denis' SSE2 instructions to a *working*
425         version of the code - some earlier versions were based on
426         broken code - sorry 'bout that. version "0.98.07"
429 01/28/01
430 --------
432 *       Cosmetic modifications to nasm.c, nasm.h,
433         AUTHORS, MODIFIED
436 0.98.06f released 01/18/01
437 --------------------------
439 *       - Add "metalbrain"s jecxz bug fix in insns.dat
440         - alter nasmdoc.src to match - version "0.98.06f"
443 0.98.06e released 01/09/01
444 --------------------------
446 *       Removed the "outforms.h" file - it appears to be
447         someone's old backup of "outform.h". version "0.98.06e" 
450 01/09/01
451 --------
453 * fbk - finally added the fix for the "multiple %includes bug",
454         known since 7/27/99 - reported originally (?) and sent to
455         us by Austin Lunnen - he reports that John Fine had a fix
456         within the day. Here it is...
458 * Nelson Rush resigns from the group. Big thanks to Nelson for
459   his leadership and enthusiasm in getting these changes
460   incorporated into Nasm!
462 * fbk - [list +], [list -] directives - ineptly implemented, should
463         be re-written or removed, perhaps.
465 * Brian Raiter / fbk - "elfso bug" fix - applied to aoutb format
466                        as well - testing might be desirable...
469 08/07/00
470 --------
472 * James Seter - -postfix, -prefix command line switches.
473 * Yuri Zaporogets - rdoff utility changes.
476 0.98p1
477 ------
479 * GAS-like palign (Panos Minos)
480 * FIXME: Someone, fill this in with details
483 0.98bf (bug-fixed)
484 ----------------------------------
486 * Fixed - elf and aoutb bug - shared libraries
487         - multiple "%include" bug in "-f obj"   
488         - jcxz, jecxz bug
489         - unrecognized option bug in ndisasm 
491 0.98.03 with John Coffman's changes released 27-Jul-2000
492 --------------------------------------------------------
494 * Added signed byte optimizations for the 0x81/0x83 class
495 of instructions: ADC, ADD, AND, CMP, OR, SBB, SUB, XOR:
496 when used as 'ADD reg16,imm' or 'ADD reg32,imm.'  Also
497 optimization of signed byte form of 'PUSH imm' and 'IMUL
498 reg,imm'/'IMUL reg,reg,imm.'  No size specification is needed.
500 * Added multi-pass JMP and Jcc offset optimization.  Offsets
501 on forward references will preferentially use the short form,
502 without the need to code a specific size (short or near) for
503 the branch.  Added instructions for 'Jcc label' to use the
504 form 'Jnotcc $+3/JMP label', in cases where a short offset
505 is out of bounds.  If compiling for a 386 or higher CPU, then
506 the 386 form of Jcc will be used instead.
508 This feature is controlled by a new command-line switch: "O",
509 (upper case letter O).  "-O0" reverts the assembler to no
510 extra optimization passes, "-O1" allows up to 5 extra passes,
511 and "-O2"(default), allows up to 10 extra optimization passes.
513 * Added a new directive:  'cpu XXX', where XXX is any of: 
514 8086, 186, 286, 386, 486, 586, pentium, 686, PPro, P2, P3 or
515 Katmai.  All are case insensitive.  All instructions will
516 be selected only if they apply to the selected cpu or lower.
517 Corrected a couple of bugs in cpu-dependence in 'insns.dat'.
519 * Added to 'standard.mac', the "use16" and "use32" forms of
520 the "bits 16/32" directive. This is nothing new, just conforms
521 to a lot of other assemblers. (minor)
523 * Changed label allocation from 320/32 (10000 labels @ 200K+) 
524 to 32/37 (1000 labels); makes running under DOS much easier.
525 Since additional label space is allocated dynamically, this
526 should have no effect on large programs with lots of labels.
527 The 37 is a prime, believed to be better for hashing. (minor)
529 * Integrated patchfile 0.98-0.98.01.  I call this version
530 0.98.03, for historical reasons:  0.98.02 was trashed.
532 --John Coffman <johninsd@san.rr.com>               27-Jul-2000
535 Kendall Bennett's SciTech MGL changes
536 -------------------------------------
537 Note that you must define "TASM_COMPAT" at compile-time
538 to get the Tasm Ideal Mode compatibility.
540 All changes can be compiled in and out using the TASM_COMPAT macros,
541 and when compiled without TASM_COMPAT defined we get the exact same
542 binary as the unmodified 0.98 sources.
544 standard.mac, macros.c:
545  . Added macros to ignore TASM directives before first include
547 nasm.h:
548  . Added extern declaration for tasm_compatible_mode
550 nasm.c:
551  . Added global variable tasm_compatible_mode
552  . Added command line switch for TASM compatible mode (-t)
553  . Changed version command line to reflect when compiled with TASM additions
554  . Added response file processing to allow all arguments on a single
555    line (response file is @resp rather than -@resp for NASM format).
557 labels.c:
558  . Changes islocal() macro to support TASM style @@local labels.
559  . Added islocalchar() macro to support TASM style @@local labels.
561 parser.c:
562  . Added support for TASM style memory references (ie: mov [DWORD eax],10
563    rather than the NASM style mov DWORD [eax],10).
565 preproc.c:
566  . Added new directives, %arg, %local, %stacksize to directives table
567  . Added support for TASM style directives without a leading % symbol.
569 Integrated a block of changes from Andrew Zabolotny <bit@eltech.ru>:
571 * A new keyword %xdefine and its case-insensitive counterpart %ixdefine.
572     They work almost the same way as %define and %idefine but expand
573     the definition immediately, not on the invocation. Something like a cross
574     between %define and %assign. The "x" suffix stands for "eXpand", so
575     "xdefine" can be deciphered as "expand-and-define". Thus you can do
576     things like this:
578         %assign ofs     0
579         
580         %macro  arg     1
581                 %xdefine %1 dword [esp+ofs]
582                 %assign ofs ofs+4
583         %endmacro
585 * Changed the place where the expansion of %$name macros are expanded.
586     Now they are converted into ..@ctxnum.name form when detokenizing, so
587     there are no quirks as before when using %$name arguments to macros,
588     in macros etc. For example:
590         %macro  abc     1
591                 %define %1 hello
592         %endm
594         abc     %$here
595         %$here
597     Now last line will be expanded into "hello" as expected. This also allows
598     for lots of goodies, a good example are extended "proc" macros included
599     in this archive.
601 * Added a check for "cstk" in smacro_defined() before calling get_ctx() -
602     this allows for things like:
604         %ifdef %$abc
605         %endif
607     to work without warnings even in no context.
609 * Added a check for "cstk" in %if*ctx and %elif*ctx directives -
610     this allows to use %ifctx without excessive warnings. If there is
611     no active context, %ifctx goes through "false" branch.
613 * Removed "user error: " prefix with %error directive: it just clobbers the
614     output and has absolutely no functionality. Besides, this allows to write
615     macros that does not differ from built-in functions in any way.
617 * Added expansion of string that is output by %error directive. Now you
618     can do things like:
620         %define hello(x) Hello, x!
622         %define %$name andy
623         %error "hello(%$name)"
625     Same happened with %include directive.
627 * Now all directives that expect an identifier will try to expand and
628     concatenate everything without whitespaces in between before usage.
629     For example, with "unfixed" nasm the commands
631         %define %$abc hello
632         %define __%$abc goodbye
633         __%$abc
635     would produce "incorrect" output: last line will expand to
637         hello goodbyehello
639     Not quite what you expected, eh? :-) The answer is that preprocessor
640     treats the %define construct as if it would be
642         %define __ %$abc goodbye
644     (note the white space between __ and %$abc). After my "fix" it
645     will "correctly" expand into
647         goodbye
649     as expected. Note that I use quotes around words "correct", "incorrect"
650     etc because this is rather a feature not a bug; however current behaviour
651     is more logical (and allows more advanced macro usage :-).
653     Same change was applied to:
654         %push,%macro,%imacro,%define,%idefine,%xdefine,%ixdefine,
655         %assign,%iassign,%undef
657 * A new directive [WARNING {+|-}warning-id] have been added. It works only
658     if the assembly phase is enabled (i.e. it doesn't work with nasm -e).
660 * A new warning type: macro-selfref. By default this warning is disabled;
661     when enabled NASM warns when a macro self-references itself; for example
662     the following source:
664         [WARNING macro-selfref]
666         %macro          push    1-*
667                 %rep    %0
668                         push    %1
669                         %rotate 1
670                 %endrep
671         %endmacro
673                         push    eax,ebx,ecx
675     will produce a warning, but if we remove the first line we won't see it
676     anymore (which is The Right Thing To Do {tm} IMHO since C preprocessor
677     eats such constructs without warnings at all).
679 * Added a "error" routine to preprocessor which always will set ERR_PASS1
680     bit in severity_code. This removes annoying repeated errors on first
681     and second passes from preprocessor.
683 * Added the %+ operator in single-line macros for concatenating two
684     identifiers. Usage example:
686         %define _myfunc _otherfunc
687         %define cextern(x) _ %+ x
688         cextern (myfunc)
690     After first expansion, third line will become "_myfunc". After this
691     expansion is performed again so it becomes "_otherunc".
693 * Now if preprocessor is in a non-emmitting state, no warning or error
694     will be emmitted. Example:
696         %if 1
697                 mov     eax,ebx
698         %else
699                 put anything you want between these two brackets,
700                 even macro-parameter references %1 or local labels %$zz
701                 or macro-local labels %%zz - no warning will be emmitted.
702         %endif
704 * Context-local variables on expansion as a last resort are looked up
705     in outer contexts. For example, the following piece:
707         %push   outer
708         %define %$a [esp]
710                 %push   inner
711                 %$a
712                 %pop
713         %pop
715     will expand correctly the fourth line to [esp]; if we'll define another
716     %$a inside the "inner" context, it will take precedence over outer
717     definition. However, this modification has been applied only to
718     expand_smacro and not to smacro_define: as a consequence expansion
719     looks in outer contexts, but %ifdef won't look in outer contexts.
721     This behaviour is needed because we don't want nested contexts to
722     act on already defined local macros. Example:
724         %define %$arg1  [esp+4]
725         test    eax,eax
726         if      nz
727                 mov     eax,%$arg1
728         endif
730     In this example the "if" mmacro enters into the "if" context, so %$arg1
731     is not valid anymore inside "if". Of course it could be worked around
732     by using explicitely %$$arg1 but this is ugly IMHO.
734 * Fixed memory leak in %undef. The origline wasn't freed before
735     exiting on success.
737 * Fixed trap in preprocessor when line expanded to empty set of tokens.
738     This happens, for example, in the following case:
740         #define SOMETHING
741         SOMETHING
744 0.98
745 ----
747 All changes since NASM 0.98p3 have been produced by H. Peter Anvin <hpa@zytor.com>.
749 * The documentation comment delimiter is \# not #.
750 * Allow EQU definitions to refer to external labels; reported by
751   Pedro Gimeno.
752 * Re-enable support for RDOFF v1; reported by Pedro Gimeno.
753 * Updated License file per OK from Simon and Julian.
756 0.98p9
757 ------
759 * Update documentation (although the instruction set reference will
760   have to wait; I don't want to hold up the 0.98 release for it.)
761 * Verified that the NASM implementation of the PEXTRW and PMOVMSKB
762   instructions is correct.  The encoding differs from what the Intel
763   manuals document, but the Pentium III behaviour matches NASM, not
764   the Intel manuals.
765 * Fix handling of implicit sizes in PSHUFW and PINSRW, reported by
766   Stefan Hoffmeister.
767 * Resurrect the -s option, which was removed when changing the
768   diagnostic output to stdout.
771 0.98p8
772 ------
774 * Fix for "DB" when NASM is running on a bigendian machine.
775 * Invoke insns.pl once for each output script, making Makefile.in
776   legal for "make -j".
777 * Improve the Unix configure-based makefiles to make package
778   creation easier.
779 * Included an RPM .spec file for building RPM (RedHat Package Manager)
780   packages on Linux or Unix systems.
781 * Fix Makefile dependency problems.
782 * Change src/rdsrc.pl to include sectioning information in info
783   output; required for install-info to work.
784 * Updated the RDOFF distribution to version 2 from Jules; minor
785   massaging to make it compile in my environment.
786 * Split doc files that can be built by anyone with a Perl interpreter off
787   into a separate archive.
788 * "Dress rehearsal" release!
791 0.98p7
792 ------
794 * Fixed opcodes with a third byte-sized immediate argument to not
795   complain if given "byte" on the immediate.
796 * Allow %undef to remove single-line macros with arguments.  This
797   matches the behaviour of #undef in the C preprocessor.
798 * Allow -d, -u, -i and -p to be specified as -D, -U, -I and -P for
799   compatibility with most C compilers and preprocessors.  This allows
800   Makefile options to be shared between cc and nasm, for example.
801 * Minor cleanups.
802 * Went through the list of Katmai instructions and hopefully fixed the
803   (rather few) mistakes in it.
804 * (Hopefully) fixed a number of disassembler bugs related to ambiguous
805   instructions (disambiguated by -p) and SSE instructions with REP.
806 * Fix for bug reported by Mark Junger: "call dword 0x12345678" should
807   work and may add an OSP (affected CALL, JMP, Jcc).
808 * Fix for environments when "stderr" isn't a compile-time constant.
811 0.98p6
812 ------
814 * Took officially over coordination of the 0.98 release; so drop
815   the p3.x notation. Skipped p4 and p5 to avoid confusion with John
816   Fine's J4 and J5 releases.
817 * Update the documentation; however, it still doesn't include
818   documentation for the various new instructions.  I somehow wonder if
819   it makes sense to have an instruction set reference in the assembler
820   manual when Intel et al have PDF versions of their manuals online.
821 * Recognize "idt" or "centaur" for the -p option to ndisasm.
822 * Changed error messages back to stderr where they belong, but add an
823   -E option to redirect them elsewhere (the DOS shell cannot redirect
824   stderr.)
825 * -M option to generate Makefile dependencies (based on code from Alex
826   Verstak.)
827 * %undef preprocessor directive, and -u option, that undefines a
828   single-line macro.
829 * OS/2 Makefile (Mkfiles/Makefile.os2) for Borland under OS/2; from
830   Chuck Crayne.
831 * Various minor bugfixes (reported by):
832   - Dangling %s in preproc.c (Martin Junker)
833 * THERE ARE KNOWN BUGS IN SSE AND THE OTHER KATMAI INSTRUCTIONS.  I am
834   on a trip and didn't bring the Katmai instruction reference, so I
835   can't work on them right now.
836 * Updated the License file per agreement with Simon and Jules to
837   include a GPL distribution clause.
840 0.98p3.7
841 --------
843 * (Hopefully) fixed the canned Makefiles to include the outrdf2 and
844   zoutieee modules.
845 * Renamed changes.asm to changed.asm.
848 0.98p3.6
849 --------
851 * Fixed a bunch of instructions that were added in 0.98p3.5 which had
852   memory operands, and the address-size prefix was missing from the
853   instruction pattern.
856 0.98p3.5
857 --------
859 * Merged in changes from John S. Fine's 0.98-J5 release.  John's based
860   0.98-J5 on my 0.98p3.3 release; this merges the changes.
861 * Expanded the instructions flag field to a long so we can fit more
862   flags; mark SSE (KNI) and AMD or Katmai-specific instructions as
863   such.
864 * Fix the "PRIV" flag on a bunch of instructions, and create new
865   "PROT" flag for protected-mode-only instructions (orthogonal to if
866   the instruction is privileged!) and new "SMM" flag for SMM-only
867   instructions.
868 * Added AMD-only SYSCALL and SYSRET instructions.
869 * Make SSE actually work, and add new Katmai MMX instructions.
870 * Added a -p (preferred vendor) option to ndisasm so that it can
871   distinguish e.g. Cyrix opcodes also used in SSE.  For example:
873         ndisasm -p cyrix aliased.bin
874         00000000  670F514310        paddsiw mm0,[ebx+0x10]
875         00000005  670F514320        paddsiw mm0,[ebx+0x20]
876         ndisasm -p intel aliased.bin
877         00000000  670F514310        sqrtps xmm0,[ebx+0x10]
878         00000005  670F514320        sqrtps xmm0,[ebx+0x20]
879 * Added a bunch of Cyrix-specific instructions.
882 0.98p3.4
883 --------
885 * Made at least an attempt to modify all the additional Makefiles (in
886   the Mkfiles directory).  I can't test it, but this was the best I
887   could do.
888 * DOS DJGPP+"Opus Make" Makefile from John S. Fine.
889 * changes.asm changes from John S. Fine.
892 0.98p3.3
893 --------
895 * Patch from Conan Brink to allow nesting of %rep directives.
896 * If we're going to allow INT01 as an alias for INT1/ICEBP (one of
897   Jules 0.98p3 changes), then we should allow INT03 as an alias for INT3
898   as well.
899 * Updated changes.asm to include the latest changes.
900 * Tried to clean up the <CR>s that had snuck in from a DOS/Windows
901   environment into my Unix environment, and try to make sure than
902   DOS/Windows users get them back.
903 * We would silently generate broken tools if insns.dat wasn't sorted
904   properly.  Change insns.pl so that the order doesn't matter.
905 * Fix bug in insns.pl (introduced by me) which would cause conditional
906   instructions to have an extra "cc" in disassembly, e.g. "jnz"
907   disassembled as "jccnz".
910 0.98p3.2
911 --------
913 * Merged in John S. Fine's changes from his 0.98-J4 prerelease; see
914   http://www.csoft.net/cz/johnfine/
915 * Changed previous "spotless" Makefile target (appropriate for distribution)
916   to "distclean", and added "cleaner" target which is same as "clean"
917   except deletes files generated by Perl scripts; "spotless" is union.
918 * Removed BASIC programs from distribution.  Get a Perl interpreter
919   instead (see below.)
920 * Calling this "pre-release 3.2" rather than "p3-hpa2" because of
921   John's contributions.
922 * Actually link in the IEEE output format (zoutieee.c); fix a bunch of
923   compiler warnings in that file.  Note I don't know what IEEE output
924   is supposed to look like, so these changes were made "blind".
927 0.98p3-hpa
928 ----------
930 * Merged nasm098p3.zip with nasm-0.97.tar.gz to create a fully
931   buildable version for Unix systems (Makefile.in updates, etc.)
932 * Changed insns.pl to create the instruction tables in nasm.h and
933   names.c, so that a new instruction can be added by adding it *only*
934   to insns.dat.
935 * Added the following new instructions: SYSENTER, SYSEXIT, FXSAVE,
936   FXRSTOR, UD1, UD2 (the latter two are two opcodes that Intel
937   guarantee will never be used; one of them is documented as UD2 in
938   Intel documentation, the other one just as "Undefined Opcode" --
939   calling it UD1 seemed to make sense.)
940 * MAX_SYMBOL was defined to be 9, but LOADALL286 and LOADALL386 are 10
941   characters long.  Now MAX_SYMBOL is derived from insns.dat.
942 * A note on the BASIC programs included: forget them.  insns.bas is
943   already out of date.  Get yourself a Perl interpreter for your
944   platform of choice at:
946         http://www.cpan.org/ports/index.html
949 0.98 pre-release 3
950 -------------------
952 added response file support, improved command line handling, new layout
953 help screen
955 fixed limit checking bug, 'OUT byte nn, reg' bug, and a couple of rdoff
956 related bugs, updated Wishlist; 0.98 Prerelease 3.
959 0.98 pre-release 2
960 -------------------
962 fixed bug in outcoff.c to do with truncating section names longer
963 than 8 characters, referencing beyond end of string; 0.98 pre-release 2
966 0.98 pre-released May 1999
967 --------------------------
969 Fixed a bug whereby STRUC didn't work at all in RDF.
971 Fixed a problem with group specification in PUBDEFs in OBJ.
973 Improved ease of adding new output formats. Contribution due to
974 Fox Cutter.
976 Fixed a bug in relocations in the `bin' format: was showing up when
977 a relocatable reference crossed an 8192-byte boundary in any output
978 section.
980 Fixed a bug in local labels: local-label lookups were inconsistent
981 between passes one and two if an EQU occurred between the definition
982 of a global label and the subsequent use of a local label local to
983 that global.
985 Fixed a seg-fault in the preprocessor (again) which happened when
986 you use a blank line as the first line of a multi-line macro
987 definition and then defined a label on the same line as a call to
988 that macro.
990 Fixed a stale-pointer bug in the handling of the NASM environment
991 variable. Thanks to Thomas McWilliams.
993 ELF had a hard limit on the number of sections which caused
994 segfaults when transgressed. Fixed.
996 Added ability for ndisasm to read from stdin by using `-' as the
997 filename.
999 ndisasm wasn't outputting the TO keyword. Fixed.
1001 Fixed error cascade on bogus expression in %if - an error in
1002 evaluation was causing the entire %if to be discarded, thus creating
1003 trouble later when the %else or %endif was encountered.
1005 Forward reference tracking was instruction-granular not operand-
1006 granular, which was causing 286-specific code to be generated
1007 needlessly on code of the form `shr word [forwardref],1'. Thanks to
1008 Jim Hague for sending a patch.
1010 All messages now appear on stdout, as sending them to stderr serves
1011 no useful purpose other than to make redirection difficult.
1013 Fixed the problem with EQUs pointing to an external symbol - this
1014 now generates an error message.
1016 Allowed multiple size prefixes to an operand, of which only the first
1017 is taken into account.
1019 Incorporated John Fine's changes, including fixes of a large number
1020 of preprocessor bugs, some small problems in OBJ, and a reworking of
1021 label handling to define labels before their line is assembled, rather
1022 than after.
1024 Reformatted a lot of the source code to be more readable. Included
1025 'coding.txt' as a guideline for how to format code for contributors.
1027 Stopped nested %reps causing a panic - they now cause a slightly more
1028 friendly error message instead.
1030 Fixed floating point constant problems (patch by Pedro Gimeno)
1032 Fixed the return value of insn_size() not being checked for -1, indicating
1033 an error.
1035 Incorporated 3D now instructions.
1037 Fixed the 'mov eax, eax + ebx' bug.
1039 Fixed the GLOBAL EQU bug in ELF. Released developers release 3.
1041 Incorporated John Fine's command line parsing changes
1043 Incorporated David Lindauer's OMF debug support
1045 Made changes for LCC 4.0 support (__NASM_CDecl__, removed register size
1046 specification warning when sizes agree).
1048 Released NASM 0.98 Pre-release 1
1051 0.97 released December 1997
1052 ---------------------------
1054 This was entirely a bug-fix release to 0.96, which seems to have got
1055 cursed. Silly me.
1057 Fixed stupid mistake in OBJ which caused `MOV EAX,<constant>' to
1058 fail. Caused by an error in the `MOV EAX,<segment>' support.
1060 ndisasm hung at EOF when compiled with lcc on Linux because lcc on
1061 Linux somehow breaks feof(). ndisasm now does not rely on feof().
1063 A heading in the documentation was missing due to a markup error in
1064 the indexing. Fixed.
1066 Fixed failure to update all pointers on realloc() within extended-
1067 operand code in parser.c. Was causing wrong behaviour and seg faults
1068 on lines such as `dd 0.0,0.0,0.0,0.0,...'
1070 Fixed a subtle preprocessor bug whereby invoking one multi-line
1071 macro on the first line of the expansion of another, when the second
1072 had been invoked with a label defined before it, didn't expand the
1073 inner macro. 
1075 Added internal.doc back in to the distribution archives - it was
1076 missing in 0.96 *blush*
1078 Fixed bug causing 0.96 to be unable to assemble its own test files,
1079 specifically objtest.asm. *blush again*
1081 Fixed seg-faults and bogus error messages caused by mismatching
1082 %rep and %endrep within multi-line macro definitions.
1084 Fixed a problem with buffer overrun in OBJ, which was causing
1085 corruption at ends of long PUBDEF records.
1087 Separated DOS archives into main-program and documentation to reduce
1088 download size.
1091 0.96 released November 1997
1092 ---------------------------
1094 Fixed a bug whereby, if `nasm sourcefile' would cause a filename
1095 collision warning and put output into `nasm.out', then `nasm
1096 sourcefile -o outputfile' still gave the warning even though the
1097 `-o' was honoured.
1099 Fixed name pollution under Digital UNIX: one of its header files
1100 defined R_SP, which broke the enum in nasm.h.
1102 Fixed minor instruction table problems: FUCOM and FUCOMP didn't have
1103 two-operand forms; NDISASM didn't recognise the longer register
1104 forms of PUSH and POP (eg FF F3 for PUSH BX); TEST mem,imm32 was
1105 flagged as undocumented; the 32-bit forms of CMOV had 16-bit operand
1106 size prefixes; `AAD imm' and `AAM imm' are no longer flagged as
1107 undocumented because the Intel Architecture reference documents
1108 them.
1110 Fixed a problem with the local-label mechanism, whereby strange
1111 types of symbol (EQUs, auto-defined OBJ segment base symbols)
1112 interfered with the `previous global label' value and screwed up
1113 local labels.
1115 Fixed a bug whereby the stub preprocessor didn't communicate with
1116 the listing file generator, so that the -a and -l options in
1117 conjunction would produce a useless listing file.
1119 Merged `os2' object file format back into `obj', after discovering
1120 that `obj' _also_ shouldn't have a link pass separator in a module
1121 containing a non-trivial MODEND. Flat segments are now declared
1122 using the FLAT attribute. `os2' is no longer a valid object format
1123 name: use `obj'.
1125 Removed the fixed-size temporary storage in the evaluator. Very very
1126 long expressions (like `mov ax,1+1+1+1+...' for two hundred 1s or
1127 so) should now no longer crash NASM.
1129 Fixed a bug involving segfaults on disassembly of MMX instructions,
1130 by changing the meaning of one of the operand-type flags in nasm.h.
1131 This may cause other apparently unrelated MMX problems; it needs to
1132 be tested thoroughly.
1134 Fixed some buffer overrun problems with large OBJ output files.
1135 Thanks to DJ Delorie for the bug report and fix.
1137 Made preprocess-only mode actually listen to the %line markers as it
1138 prints them, so that it can report errors more sanely.
1140 Re-designed the evaluator to keep more sensible track of expressions
1141 involving forward references: can now cope with previously-nightmare
1142 situations such as
1143    mov ax,foo | bar
1144    foo equ 1
1145    bar equ 2
1147 Added the ALIGN and ALIGNB standard macros.
1149 Added PIC support in ELF: use of WRT to obtain the four extra
1150 relocation types needed.
1152 Added the ability for output file formats to define their own
1153 extensions to the GLOBAL, COMMON and EXTERN directives.
1155 Implemented common-variable alignment, and global-symbol type and
1156 size declarations, in ELF.
1158 Implemented NEAR and FAR keywords for common variables, plus
1159 far-common element size specification, in OBJ.
1161 Added a feature whereby EXTERNs and COMMONs in OBJ can be given a
1162 default WRT specification (either a segment or a group).
1164 Transformed the Unix NASM archive into an auto-configuring package.
1166 Added a sanity-check for people applying SEG to things which are
1167 already segment bases: this previously went unnoticed by the SEG
1168 processing and caused OBJ-driver panics later.
1170 Added the ability, in OBJ format, to deal with `MOV EAX,<segment>'
1171 type references: OBJ doesn't directly support dword-size segment
1172 base fixups, but as long as the low two bytes of the constant term
1173 are zero, a word-size fixup can be generated instead and it will
1174 work.
1176 Added the ability to specify sections' alignment requirements in
1177 Win32 object files and pure binary files.
1179 Added preprocess-time expression evaluation: the %assign (and
1180 %iassign) directive and the bare %if (and %elif) conditional. Added
1181 relational operators to the evaluator, for use only in %if
1182 constructs: the standard relationals = < > <= >= <> (and C-like
1183 synonyms == and !=) plus low-precedence logical operators &&, ^^ and
1186 Added a preprocessor repeat construct: %rep / %exitrep / %endrep.
1188 Added the __FILE__ and __LINE__ standard macros.
1190 Added a sanity check for number constants being greater than
1191 0xFFFFFFFF. The warning can be disabled.
1193 Added the %0 token whereby a variadic multi-line macro can tell how
1194 many parameters it's been given in a specific invocation.
1196 Added %rotate, allowing multi-line macro parameters to be cycled.
1198 Added the `*' option for the maximum parameter count on multi-line
1199 macros, allowing them to take arbitrarily many parameters.
1201 Added the ability for the user-level forms of EXTERN, GLOBAL and
1202 COMMON to take more than one argument.
1204 Added the IMPORT and EXPORT directives in OBJ format, to deal with
1205 Windows DLLs.
1207 Added some more preprocessor %if constructs: %ifidn / %ifidni (exact
1208 textual identity), and %ifid / %ifnum / %ifstr (token type testing).
1210 Added the ability to distinguish SHL AX,1 (the 8086 version) from
1211 SHL AX,BYTE 1 (the 286-and-upwards version whose constant happens to
1212 be 1).
1214 Added NetBSD/FreeBSD/OpenBSD's variant of a.out format, complete
1215 with PIC shared library features.
1217 Changed NASM's idiosyncratic handling of FCLEX, FDISI, FENI, FINIT,
1218 FSAVE, FSTCW, FSTENV, and FSTSW to bring it into line with the
1219 otherwise accepted standard. The previous behaviour, though it was a
1220 deliberate feature, was a deliberate feature based on a
1221 misunderstanding. Apologies for the inconvenience.
1223 Improved the flexibility of ABSOLUTE: you can now give it an
1224 expression rather than being restricted to a constant, and it can
1225 take relocatable arguments as well.
1227 Added the ability for a variable to be declared as EXTERN multiple
1228 times, and the subsequent definitions are just ignored.
1230 We now allow instruction prefixes (CS, DS, LOCK, REPZ etc) to be
1231 alone on a line (without a following instruction).
1233 Improved sanity checks on whether the arguments to EXTERN, GLOBAL
1234 and COMMON are valid identifiers.
1236 Added misc/exebin.mac to allow direct generation of .EXE files by
1237 hacking up an EXE header using DB and DW; also added test/binexe.asm
1238 to demonstrate the use of this. Thanks to Yann Guidon for
1239 contributing the EXE header code.
1241 ndisasm forgot to check whether the input file had been successfully
1242 opened. Now it does. Doh!
1244 Added the Cyrix extensions to the MMX instruction set.
1246 Added a hinting mechanism to allow [EAX+EBX] and [EBX+EAX] to be
1247 assembled differently. This is important since [ESI+EBP] and
1248 [EBP+ESI] have different default base segment registers.
1250 Added support for the PharLap OMF extension for 4096-byte segment
1251 alignment.
1254 0.95 released July 1997
1255 -----------------------
1257 Fixed yet another ELF bug. This one manifested if the user relied on
1258 the default segment, and attempted to define global symbols without
1259 first explicitly declaring the target segment.
1261 Added makefiles (for NASM and the RDF tools) to build Win32 console
1262 apps under Symantec C++. Donated by Mark Junker.
1264 Added `macros.bas' and `insns.bas', QBasic versions of the Perl
1265 scripts that convert `standard.mac' to `macros.c' and convert
1266 `insns.dat' to `insnsa.c' and `insnsd.c'. Also thanks to Mark
1267 Junker.
1269 Changed the diassembled forms of the conditional instructions so
1270 that JB is now emitted as JC, and other similar changes. Suggested
1271 list by Ulrich Doewich.
1273 Added `@' to the list of valid characters to begin an identifier
1274 with.
1276 Documentary changes, notably the addition of the `Common Problems'
1277 section in nasm.doc.
1279 Fixed a bug relating to 32-bit PC-relative fixups in OBJ.
1281 Fixed a bug in perm_copy() in labels.c which was causing exceptions
1282 in cleanup_labels() on some systems.
1284 Positivity sanity check in TIMES argument changed from a warning to
1285 an error following a further complaint.
1287 Changed the acceptable limits on byte and word operands to allow
1288 things like `~10111001b' to work.
1290 Fixed a major problem in the preprocessor which caused seg-faults if
1291 macro definitions contained blank lines or comment-only lines.
1293 Fixed inadequate error checking on the commas separating the
1294 arguments to `db', `dw' etc.
1296 Fixed a crippling bug in the handling of macros with operand counts
1297 defined with a `+' modifier.
1299 Fixed a bug whereby object file formats which stored the input file
1300 name in the output file (such as OBJ and COFF) weren't doing so
1301 correctly when the output file name was specified on the command
1302 line.
1304 Removed [INC] and [INCLUDE] support for good, since they were
1305 obsolete anyway.
1307 Fixed a bug in OBJ which caused all fixups to be output in 16-bit
1308 (old-format) FIXUPP records, rather than putting the 32-bit ones in
1309 FIXUPP32 (new-format) records.
1311 Added, tentatively, OS/2 object file support (as a minor variant on
1312 OBJ).
1314 Updates to Fox Cutter's Borland C makefile, Makefile.bc2.
1316 Removed a spurious second fclose() on the output file.
1318 Added the `-s' command line option to redirect all messages which
1319 would go to stderr (errors, help text) to stdout instead.
1321 Added the `-w' command line option to selectively suppress some
1322 classes of assembly warning messages.
1324 Added the `-p' pre-include and `-d' pre-define command-line options.
1326 Added an include file search path: the `-i' command line option.
1328 Fixed a silly little preprocessor bug whereby starting a line with a
1329 `%!' environment-variable reference caused an `unknown directive'
1330 error.
1332 Added the long-awaited listing file support: the `-l' command line
1333 option.
1335 Fixed a problem with OBJ format whereby, in the absence of any
1336 explicit segment definition, non-global symbols declared in the
1337 implicit default segment generated spurious EXTDEF records in the
1338 output.
1340 Added the NASM environment variable.
1342 From this version forward, Win32 console-mode binaries will be
1343 included in the DOS distribution in addition to the 16-bit binaries.
1344 Added Makefile.vc for this purpose.
1346 Added `return 0;' to test/objlink.c to prevent compiler warnings.
1348 Added the __NASM_MAJOR__ and __NASM_MINOR__ standard defines.
1350 Added an alternative memory-reference syntax in which prefixing an
1351 operand with `&' is equivalent to enclosing it in square brackets,
1352 at the request of Fox Cutter.
1354 Errors in pass two now cause the program to return a non-zero error
1355 code, which they didn't before.
1357 Fixed the single-line macro cycle detection, which didn't work at
1358 all on macros with no parameters (caused an infinite loop). Also
1359 changed the behaviour of single-line macro cycle detection to work
1360 like cpp, so that macros like `extrn' as given in the documentation
1361 can be implemented.
1363 Fixed the implementation of WRT, which was too restrictive in that
1364 you couldn't do `mov ax,[di+abc wrt dgroup]' because (di+abc) wasn't
1365 a relocatable reference.
1368 0.94 released April 1997
1369 ------------------------
1371 Major item: added the macro processor.
1373 Added undocumented instructions SMI, IBTS, XBTS and LOADALL286. Also
1374 reorganised CMPXCHG instruction into early-486 and Pentium forms.
1375 Thanks to Thobias Jones for the information.
1377 Fixed two more stupid bugs in ELF, which were causing `ld' to
1378 continue to seg-fault in a lot of non-trivial cases.
1380 Fixed a seg-fault in the label manager.
1382 Stopped FBLD and FBSTP from _requiring_ the TWORD keyword, which is
1383 the only option for BCD loads/stores in any case.
1385 Ensured FLDCW, FSTCW and FSTSW can cope with the WORD keyword, if
1386 anyone bothers to provide it. Previously they complained unless no
1387 keyword at all was present.
1389 Some forms of FDIV/FDIVR and FSUB/FSUBR were still inverted: a
1390 vestige of a bug that I thought had been fixed in 0.92. This was
1391 fixed, hopefully for good this time...
1393 Another minor phase error (insofar as a phase error can _ever_ be
1394 minor) fixed, this one occurring in code of the form
1395    rol ax,forward_reference
1396    forward_reference equ 1
1398 The number supplied to TIMES is now sanity-checked for positivity,
1399 and also may be greater than 64K (which previously didn't work on
1400 16-bit systems).
1402 Added Watcom C makefiles, and misc/pmw.bat, donated by Dominik Behr.
1404 Added the INCBIN pseudo-opcode.
1406 Due to the advent of the preprocessor, the [INCLUDE] and [INC]
1407 directives have become obsolete. They are still supported in this
1408 version, with a warning, but won't be in the next.
1410 Fixed a bug in OBJ format, which caused incorrect object records to
1411 be output when absolute labels were made global.
1413 Updates to RDOFF subdirectory, and changes to outrdf.c.
1416 0.93 released January 1997
1417 --------------------------
1419 This release went out in a great hurry after semi-crippling bugs
1420 were found in 0.92.
1422 Really _did_ fix the stack overflows this time. *blush*
1424 Had problems with EA instruction sizes changing between passes, when
1425 an offset contained a forward reference and so 4 bytes were
1426 allocated for the offset in pass one; by pass two the symbol had
1427 been defined and happened to be a small absolute value, so only 1
1428 byte got allocated, causing instruction size mismatch between passes
1429 and hence incorrect address calculations. Fixed.
1431 Stupid bug in the revised ELF section generation fixed (associated
1432 string-table section for .symtab was hard-coded as 7, even when this
1433 didn't fit with the real section table). Was causing `ld' to
1434 seg-fault under Linux.
1436 Included a new Borland C makefile, Makefile.bc2, donated by Fox
1437 Cutter <lmb@comtch.iea.com>.
1440 0.92 released January 1997
1441 --------------------------
1443 The FDIVP/FDIVRP and FSUBP/FSUBRP pairs had been inverted: this was
1444 fixed. This also affected the LCC driver.
1446 Fixed a bug regarding 32-bit effective addresses of the form
1447 [other_register+ESP].
1449 Documentary changes, notably documentation of the fact that Borland
1450 Win32 compilers use `obj' rather than `win32' object format.
1452 Fixed the COMENT record in OBJ files, which was formatted
1453 incorrectly.
1455 Fixed a bug causing segfaults in large RDF files.
1457 OBJ format now strips initial periods from segment and group
1458 definitions, in order to avoid complications with the local label
1459 syntax.
1461 Fixed a bug in disassembling far calls and jumps in NDISASM.
1463 Added support for user-defined sections in COFF and ELF files.
1465 Compiled the DOS binaries with a sensible amount of stack, to
1466 prevent stack overflows on any arithmetic expression containing
1467 parentheses.
1469 Fixed a bug in handling of files that do not terminate in a newline.
1472 0.91 released November 1996
1473 ---------------------------
1475 Loads of bug fixes.
1476 Support for RDF added.
1477 Support for DBG debugging format added.
1478 Support for 32-bit extensions to Microsoft OBJ format added.
1479 Revised for Borland C: some variable names changed, makefile added.
1480 LCC support revised to actually work.
1481 JMP/CALL NEAR/FAR notation added.
1482 `a16', `o16', `a32' and `o32' prefixes added.
1483 Range checking on short jumps implemented.
1484 MMX instruction support added.
1485 Negative floating point constant support added.
1486 Memory handling improved to bypass 64K barrier under DOS.
1487 $ prefix to force treatment of reserved words as identifiers added.
1488 Default-size mechanism for object formats added.
1489 Compile-time configurability added.
1490 `#', `@', `~' and `?' are now valid characters in labels.
1491 `-e' and `-k' options in NDISASM added.
1494 0.90 released October 1996
1495 --------------------------
1497 First release version. First support for object file output. Other
1498 changes from previous version (0.3x) too numerous to document.