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