Codebase list fasm / upstream/1.71.56 whatsnew.txt
upstream/1.71.56

Tree @upstream/1.71.56 (Download .tar.gz)

whatsnew.txt @upstream/1.71.56raw · history · blame

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
Visit http://flatassembler.net/ for more information.


version 1.71.56 (Sep 19, 2016)

[+] Allowed underscore character to be put inside the number value.

[+] Allowed octal numbers ending with "q".


version 1.71.55 (Sep 18, 2016)

[-] Fixed generation of PLT relocations in ELF64 output.


version 1.71.54 (Jun 09, 2016)

[-] Corrected syntax options of "pextrb", "pextrd", "extractps" and "crc32"
    instructions in long mode to be consistent with how "pextrw" behaved already.
    They all now allow either 32-bit or 64-bit register as destination and this
    choice does not affect the result of the operation.

[-] The error message trigerred by "mov [eax],1.0" was misleading.


version 1.71.53 (May 21, 2016)

[+] Added missing "vmfunc" instruction.

[-] Fixed recently introduced bug in "swapgs" instruction.


version 1.71.52 (May 13, 2016)

[+] Added "rdpkru" and "wrpkru" instructions.

[-] Fixed a bug in processing the "-d" switch.


version 1.71.51 (Feb 08, 2016)

[-] Corrected the signalling of "operand size not specified" error with
    AVX instructions.


version 1.71.50 (Jan 30, 2016)

[-] Overflow error in the RIP-relative addresses has been made recoverable.


version 1.71.49 (Dec 06, 2015)

[-] Few small fixes.


version 1.71.48 (Nov 18, 2015)

[-] Fixed recently introduced bug in MOV instruction with debug register
    as target.


version 1.71.47 (Nov 09, 2015)

[+] Added support for Intel MPX instructions.


version 1.71.46 (Oct 31, 2015)

[-] Another minor bug fixed.


version 1.71.45 (Oct 31, 2015)

[-] Few more bugs fixed in AVX encodings.


version 1.71.44 (Oct 27, 2015)

[-] Minor bug fixes.


version 1.71.43 (Oct 26, 2015)

[+] Added two missing instructions.

[-] Fixed few minor bugs in AVX-512 encodings.


version 1.71.42 (Oct 22, 2015)

[-] Fixed a couple of regression bugs.


version 1.71.41 (Oct 21, 2015)

[-] Fixed a bug that caused the "word" operator inside square brackets to
    have no effect.


version 1.71.40 (Oct 19, 2015)

[+] Added support for Intel AVX-512, SHA, CLFLUSHOPT, CLWB and
    PCOMMIT instruction sets.


version 1.71.39 (Mar 11, 2015)

[-] Minor bug fix.


version 1.71.38 (Mar 09, 2015)

[-] Minor bug fixes.


version 1.71.37 (Mar 03, 2015)

[-] Fixed a crash caused by incorrect handling of any error in definition
    provided through "-d" switch.


version 1.71.36 (Feb 26, 2015)

[-] Fixed a small bug with "irp" directive.


version 1.71.35 (Feb 25, 2015)

[-] Corrected a flaw that caused a crash when processing incomplete macro
    definitions within the "postpone" block.


version 1.71.34 (Feb 17, 2015)

[-] Fixed a recently introduced bug that caused assembler to hang when a
    missing closing parenthesis error was encountered.


version 1.71.33 (Jan 09, 2015)

[+] Default value for macroinstruction parameter can now be defined with ":"
    character as an alternative to "=".


version 1.71.32 (Jan 04, 2015)

[+] Brought back the "-d" switch for command line.


version 1.71.31 (Dec 08, 2014)

[-] Removed dependence on size context for expression operators like NOT and XOR.

[-] Relaxed range checking to allow extended negative range for all sizes.


version 1.71.30 (Dec 07, 2014)

[-] Clearing the instruction data field when filling the addend for 64-bit ELF
    relocaiton.


version 1.71.29 (Dec 05, 2014)

[-] Supressed error message when parsing some malformed expressions that do not
    get evaluated.


version 1.71.28 (Dec 01, 2014)

[-] The addend field of relocation structure for 64-bit ELF format is now filled with
    correct information.


version 1.71.27 (Nov 18, 2014)

[-] Corrected initial predictions of immediate size for "mov" and "test" instructions
    (this may sometimes help to generate smaller code).


version 1.71.26 (Nov 12, 2014)

[-] Fixed a bug introduced by previous version that allowed address values to
    bypass range checks.


version 1.71.25 (Nov 03, 2014)

[-] Fixed a bug that cause valued of argument starting with "<" character to be
    incorrectly processed when the parameter in question was marked with "&"
    character.


version 1.71.24 (Oct 27, 2014)

[+] In the definition of macroinstruction the last argument can now be followed by
    "&" character to indicate that this argument can be filled with all the remaining
    contents of line that called the macro. This feature cannot be combined with a
    multi-value arguments.


version 1.71.23 (Oct 21, 2014)

[+] Added "bsf" and "bsr" operators to numerical expressions.

[-] Removed the restriction that disallowed numerical constant to
    forward-reference its own value.


version 1.71.22 (Sep 28, 2014)

[-] Format MZ no longer allows the table of relocations to overflow.


version 1.71.21 (May 27, 2014)

[-] Fixed a bug in the 64-bit floating points value converter.


version 1.71.20 (Feb 27, 2014)

[-] Fixed a bug in the backward patching of PE fixups.


version 1.71.19 (Feb 09, 2014)

[-] Corrected some of the range errors in intermediate passes to be correctly
    resolvable.


version 1.71.18 (Feb 02, 2014)

[+] Added "irpv" directive.


version 1.71.17 (Jan 27, 2014)

[-] Minor corrections.


version 1.71.16 (Oct 30, 2013)

[-] Fixed some bugs in the ELF executable formatter.


version 1.71.15 (Oct 26, 2013)

[-] Fixed some bugs inadvertently introduced in the previous release.


version 1.71.14 (Oct 25, 2013)

[+] Added "postpone" directive to preprocessor.


version 1.71.13 (Sep 09, 2013)

[-] Fixed a bug that caused the expressions containing external symbols
    to overflow from time to time.


version 1.71.12 (Aug 04, 2013)

[-] Expressions in square brackets were incorrectly treated as valid numerical
    values when used in some logical expressions.

[-] A previous fix to "store" directive did not apply to all the cases when it
    was incorrectly leaving the data marked as uninitialized. The new fix
    addresses this issue.


version 1.71.11 (Jul 09, 2013)

[-] Modifying a value in uninitialized data block with "store" directive will
    now correctly mark this data as initialized when it is in a different
    addressing space.

[-] Missing quote will no longer cause the symbols generator to hang or crash.

[-] Address range restrictions for addressing modes no longer apply to addresses
    provided to assembler directives like "label", "virtual" or "load".


version 1.71.10 (Apr 03, 2013)

[-] Fixed a crashing "heap" directive in 64-bit PE format.


version 1.71.09 (Mar 30, 2013)

[-] "use16", "use32" and "use64" no longer allow to put another instruction in
    the same line.

[-] Fixed a bug in parser that caused it to hang while processing some
    specific ill-structured preprocessed lines.

[-] Modified memory allocation algorithm on Windows machines with large RAM.


version 1.71.08 (Mar 08, 2013)

[-] Fixed a bug that caused "irp" to skip processing a list with one empty
    element when default value for iterating variable was specified.


version 1.71.07 (Dec 23, 2012)

[-] Fixed a bug that was causing "used" operator to give incorrect results
    in some very specific cases.


version 1.71.06 (Nov 22, 2012)

[-] Fixed a few bugs caused by unnecesarily strong restrictions on allowed
    types of relocatable values in some places (like "label" directive).


version 1.71.05 (Oct 15, 2012)

[-] Fixed a bug which caused "load" and "store" directives to sometimes
    fail when assembler had preallocated very large amount of memory.


version 1.71.04 (Oct 10, 2012)

[-] Fixed another bug in "org" directive, which was causing it to deal
    incorrectly with negative addresses.


version 1.71.03 (Sep 27, 2012)

[-] Fixed a bug in "org" directive introduced by recent changes, which
    was manifesting with bases larger than 31-bit.


version 1.71.02 (Sep 26, 2012)

[-] Expression calculator now allows to calculate the difference of
    relocatable addresses in a reverse order (first substracting/negating
    and then adding the other one).


version 1.71.01 (Sep 23, 2012)

[+] Added support for ADX, RDSEED and SMAP instruction sets.

[-] Fixed the bugs related to creating a new addressing space inside the
    virtual block with "org" directive.


version 1.71.00 (Sep 21, 2012)

[+] Added ability to define a special kind of label identifying the
    addressing space. This label can the be used with "load" or "store"
    directives to allow operations on bytes in any addressing space,
    not just the current one. This special label is defined by following
    its name with double colon, and can only be used with "load" and
    "store" directive, where address can now be specified in two parts,
    first the adressing space label, then the colon and then the
    address inside that addressing space.


version 1.70.03 (Jun 29, 2012)

[-] Allowed to freely upgrade or downgrade the relocatable addresses in
    object format between the 32-bit or 64-bit size.


version 1.70.02 (May 22, 2012)

[-] Corrected the optimization of segment prefixes when the extended syntax
    of some string instructions ("cmps", "lods", "movs" and "outs") is
    used in long mode. Now it is consistent with optimizations done with
    all the other instructions.


version 1.70.01 (Apr 30, 2012)

[-] Corrected a recently introduced bug that caused some illegal
    address expressions to cause an error prematurely during the
    parsing stage.


version 1.70 (Apr 17, 2012)

[+] Added support for AVX, AVX2, AES, CLMUL, FMA, RDRAND, FSGSBASE, F16C,
    FMA4, XOP, MOVBE, BMI, TBM, INVPCID, HLE and RTM instruction sets.

[+] Added half-precision floating point values support.

[+] Extended the syntax of "rept" directive to allow numerical expressions
    to be calculated by preprocessor in its arguments.

[+] Added "large" and "NX" settings for PE format.

[+] Allowed PE fixups to be resolved anywhere in the generated executable.

[+] Allowed to specify branding value (use 3 for Linux) after the
    "format ELF executable" setting.

[+] Added "intepreter", "dynamic" and "note" keywords for creation of
    special segments in ELF executables.

[-] Fixed long mode opcode generator to allow absolute addresses to be
    generated with "qword" keyword inside square brackets.

[-] Disallowed negative immediates with "int", "enter", "ret" instructions.

[+] Allowed symbolic information dump file to be created even in case of error.
    In such case it contains only the preprocessed source that can be extracted
    with PREPSRC tool. If error occured during preprocessing, only the source up
    to the point of error is provided.

[+] Added symbol references table to symbolic dump file.

[-] Corrected the "defined" and "used" flags in the symbols dump to reflect the
    state from the final assembly pass.

[+] Added "assert" directive.

[-] Formatter symbols like "PE" or "readable" are now recognized only in the
    context of formatter directives, and thus are no longer disallowed as
    labels.

[+] Macroinstruction argument now can have default value, defined with "="
    symbol followed by value after the argument name in definition.

[+] Added "relativeto" operator, which can be used in logical expressions
    to test whether two values differ only by a constant and not relocatable
    amount.

[-] Revised the expression calculator, it now is able to correctly perform
    calculations in signed and unsigned ranges in full 64-bit. This fixes
    a number of issues - the overflow will now be correctly detected for
    64-bit values in cases, where previous versions could not distinguish
    whether it was an overflow or not. The effect of these corrections is
    that "dq" directive will now behave consistently with behavior of the
    data directives for smaller sizes, and the same applies to all the
    places where "qword" size for value is used.


version 1.68 (Jun 13, 2009)

[+] Added SSSE3 (Supplemental SSE3), SSE4.1, SSE4.2 and SSE4a instructions.

[+] Added the AMD SVM and Intel SMX instructions.

[+] Added "rdmsrq", "wrmsrq", "sysexitq" and "sysretq" mnemonics for the
    64-bit variants of respective instructions.

[+] Added "fstenvw", "fstenvd", "fsavew", "fsaved", "frstorw" and "frstord"
    mnemonics to allow choosing between 16-bit and 32-bit variants of
    structures used by the "fstenv", "fsave" and "frstor" instructions.

[+] Added "plt" operator for the ELF output format.

[+] Allowed "rva" operator to be used in MS COFF object format, and also
    added "static" keyword for the "public" directive.

[+] Added Intel-style aliases for the additional long mode 8-bit registers.

[-] The PE formatter now automatically detects whether relocatable labels
    should be used, depending on whether the fixups directory is placed
    somewhere into executable by programer, or not. This makes possible the
    more flexible use of the addressing symbols in case of PE executable fixed
    at some position.

[-] Added support for outputting the 32-bit address relocations in case of
    64-bit object formats and PE executable. This makes some specific
    instructions compilable, but it also forces linker to put such
    generated code into the low 2 gigabytes of addressing space.

[+] Added "EFI", "EFIboot" and "EFIruntime" subsystem keywords for PE format.

[-] Corrected the precedence of operators of macroinstruction line maker.
    The symbol escaping now has always the higher priority than symbol conversion,
    and both have higher precedence than concatenation.

[+] Allowed to check "@b" and "@f" symbols with "defined" operator.

[+] Allowed "as" operator to specify the output file extension when
    placed at the end of the "format" directive line.

[-] Definition of macro with the same name as one of the preprocessor's directives
    is no longer allowed.

[+] Allowed single quote character to be put inside the number value,
    to help improve long numbers readability.

[+] Added optional symbolic information output, and a set of tools that extract
    various kinds of information from it.

[+] Added "err" directive that allows to signalize error from the source.


version 1.66 (May 7, 2006)

[+] Added "define" directive to preprocessor, which defines symbolic constants,
    the same kind as "equ" directive, however there's an important difference
    that "define" doesn't process symbolic constants in the value before
    assigning it. For example:

        a equ 1
        a equ a+a

        define b 1
        define b b+b

    defines the "a" constant with value "1+1", but the "b" is defined with
    value "b+b". This directive may be useful in some advanced
    macroinstructions.

[-] Moved part of the conditional expression processing into parser,
    for slightly better performance and lesser memory usage by assembler.
    The logical values defined with "eq", "eqtype" and "in" operators are now
    evaluated by the parser and if they are enough to determine the condition,
    the whole block is processed accordingly. Thus this block:

        if eax eq EAX | 0/0
                nop
        end if

    is parsed into just "nop" instruction, since parser is able to determine
    that the condition is true, even though one of the logical values makes no
    sense - but since this is none of the "eq", "eqtype" and "in" expressions,
    the parser doesn't investigate.

[-] Also the assembler is now calculating only as many logical values as it
    needs to determine the condition. So this block:

        if defined alpha & alpha

        end if

    will not cause error when "alpha" is not defined, as it would with previous
    versions. This is because after checking that "defined alpha" is false
    condition it doesn't need to know the second logical value to determine the
    value of conjunction.

[+] Added "short" keyword for specifying jump type, the "jmp byte" form is now
    obsolete and no longer correct - use "jmp short" instead.

[-] The size operator applied to jump no longer applies to the size of relative
    displacement - now it applies to the size of target address.

[-] The "ret" instruction with 0 parameter is now assembled into short form,
    unless you force using the 16-bit immediate with "word" operator.

[+] Added missing extended registers for the 32-bit addressing in long mode.

[+] Added "linkremove" and "linkinfo" section flags for MS COFF output.

[+] Added support for GOT offsets in ELF object formatter, which can be useful
    when making position-independent code for shared libraries. For any label
    you can get its offset relative to GOT by preceding it with "rva" operator
    (the same keyword as for PE format is used, to avoid adding a new one,
    while this one has very similar meaning).

[-] Changed ELF executable to use "segment" directive in place of "section",
    to make the distinction between the run-time segments and linkable
    sections. If you had a "section" directive in your ELF executables and they
    no longer assemble, replace it with "segment".

[-] The PE formatter now always creates the fixups directory when told to -
    even when there are no fixups to be put there (in such case it creates the
    directory with one empty block).

[-] Some of the internal structures have been extended to provide the
    possibility of making extensive symbol dumps.

[-] Corrected "fix" directive to keep the value intact before assigning it to the
    prioritized constant.

[+] The ` operator now works with any kind of symbol; when used with quoted
    string it simply does nothing. Thus the sequence of ` operators applied to
    one symbol work the same as if there was just one. In similar manner, the
    sequence of # operators now works as if it was a single one - using such a
    sequence instead of escaping, which was kept for some backward
    compatibility, is now deprecated.

[-] Corrected order of identifying assembler directives ("if db eq db" was
    incorrectly interpreted as data definition).

[-] Many other small bugs fixed.


version 1.64 (Aug 8, 2005)

[+] Output of PE executables for Win64 architecture (with "format PE64"
    setting).

[+] Added "while" and "break" directives.

[+] Added "irp" and "irps" directives.

[+] The macro arguments can be marked as required with the "*" character.

[-] Fixed checking for overflow when multiplying 64-bit values - the result
    must always fit in the range of signed 64 integer now.

[-] Segment prefixes were generated incorrectly in 16-bit mode when BP was used
    as a second addressing register - fixed.

[-] The "local" directive was not creating unique labels in some cases - fixed.

[-] The "not encodable with long immediate" error in 64-bit mode was sometimes
    wrongly signaled - fixed.

[-] Other minor fixes and corrections.


version 1.62 (Jun 14, 2005)

[+] Escaping of symbols inside macroinstructions with backslash.

[+] Ability of outputting the COFF object files for Win64 architecture
    (with "format MS64 COFF" setting).

[+] New preprocessor directives: "restruc", "rept" and "match"

[+] VMX instructions support (not documented).

[+] Extended data directives to allow use of the "dup" operator.

[+] Extended "struc" features to allow custom definitions of main structure's
    label.

[-] When building resources from the the .RES file that contained more
    than one resource of the same string name, the separate resource
    directories were created with the same names - fixed.

[-] Several bugs in the ELF64 object output has been fixed.

[-] Corrected behavior of "fix" directive to more straightforward.

[-] Fixed bug in "include" directive, which caused files included from within
    macros to be processed the wrong way.