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