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