aboutsummaryrefslogtreecommitdiffstats log msg author committer range
path: root/doc/latex/src/changelog.tex
blob: 4a03a6be94e3b8d64e833af2b9b17daf2b988dd1 (plain)
 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 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304  pre { line-height: 125%; } td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } .highlight .hll { background-color: #ffffcc } .highlight .c { color: #888888 } /* Comment */ .highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */ .highlight .k { color: #008800; font-weight: bold } /* Keyword */ .highlight .ch { color: #888888 } /* Comment.Hashbang */ .highlight .cm { color: #888888 } /* Comment.Multiline */ .highlight .cp { color: #cc0000; font-weight: bold } /* Comment.Preproc */ .highlight .cpf { color: #888888 } /* Comment.PreprocFile */ .highlight .c1 { color: #888888 } /* Comment.Single */ .highlight .cs { color: #cc0000; font-weight: bold; background-color: #fff0f0 } /* Comment.Special */ .highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */ .highlight .ge { font-style: italic } /* Generic.Emph */ .highlight .gr { color: #aa0000 } /* Generic.Error */ .highlight .gh { color: #333333 } /* Generic.Heading */ .highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ .highlight .go { color: #888888 } /* Generic.Output */ .highlight .gp { color: #555555 } /* Generic.Prompt */ .highlight .gs { font-weight: bold } /* Generic.Strong */ .highlight .gu { color: #666666 } /* Generic.Subheading */ .highlight .gt { color: #aa0000 } /* Generic.Traceback */ .highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ .highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ .highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ .highlight .kp { color: #008800 } /* Keyword.Pseudo */ .highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ .highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */ .highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */ .highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */% % vim: ts=4 sw=4 et % \xchapter{changelog}{\textindexlc{NASM Version History}} \xsection{cl-2.xx}{NASM 2 Series} The NASM 2 series supports x86-64, and is the production version of NASM since 2007. \xsubsection{cl-2.15}{Version 2.15} \begin{itemize} \item{The state of warnings can now be saved and restored via the \code{[WARNING PUSH]} and \code{[WARNING POP]} directives. See \nref{asmdir-warning}}. \end{itemize} \xsubsection{cl-2.14.03}{Version 2.14.03} \begin{itemize} \item{Suppress nuisance "\code{label changed during code generation}" messages after a real error.} \end{itemize} \xsubsection{cl-2.14.02}{Version 2.14.02} \begin{itemize} \item{Fix crash due to multiple errors or warnings during the code generation pass if a list file is specified.} \end{itemize} \xsubsection{cl-2.14.01}{Version 2.14.01} \begin{itemize} \item{Create all system-defined macros defore processing command-line given preprocessing directives (\code{-p}, \code{-d}, \code{-u}, \code{--pragma}, \code{--before}).} \item{If debugging is enabled, define a \code{\_\_DEBUG\_FORMAT\_\_} predefined macro. See \nref{dfmtm}.} \item{Fix an assert for the case in the \code{obj} format when a \code{SEG} operator refers to an \code{EXTERN} symbol declared further down in the code.} \item{Fix a corner case in the floating-point code where a binary, octal or hexadecimal floating-point having at least 32, 11, or 8 mantissa digits could produce slightly incorrect results under very specific conditions.} \item{Support \code{-MD} without a filename, for \code{gcc} compatibility. \code{-MF} can be used to set the dependencies output filename. See \nref{opt-MD}.} \item{Fix \code{-E} in combination with \code{-MD}. See \nref{opt-E}.} \item{Fix missing errors on redefined labels; would cause convergence failure instead which is very slow and not easy to debug.} \item{Duplicate definitions of the same label \emph{with the same value} is now explicitly permitted (2.14 would allow it in some circumstances.)} \item{Add the option \code{--no-line} to ignore \code{\%line} directives in the source. See \nref{opt-no-line} and \nref{line}.} \end{itemize} \xsubsection{cl-2.14}{Version 2.14} \begin{itemize} \item{Changed \code{-I} option semantics by adding a trailing path separator unconditionally.} \item{Fixed null dereference in corrupted invalid single line macros.} \item{Fixed division by zero which may happen if source code is malformed.} \item{Fixed out of bound access in processing of malformed segment override.} \item{Fixed out of bound access in certain \code{EQU} parsing.} \item{Fixed buffer underflow in float parsing.} \item{Added \code{SGX} (Intel Software Guard Extensions) instructions.} \item{Added \code{+n} syntax for multiple contiguous registers.} \item{Fixed \code{subsections\_via\_symbols} for \code{macho} object format.} \item{Added the \code{--gprefix}, \code{--gpostfix}, \code{--lprefix}, and \code{--lpostfix} command line options, to allow command line base symbol renaming. See \nref{opt-pfix}.} \item{Allow label renaming to be specified by \code{\%pragma} in addition to from the command line. See \nref{mangling}.} \item{Supported generic \code{\%pragma} namespaces, \code{output} and \code{debug}. See \nref{gen-namespace}.} \item{Added the \code{--pragma} command line option to inject a \code{\%pragma} directive. See \nref{opt-pragma}.} \item{Added the \code{--before} command line option to accept preprocess statement before input. See \nref{opt-before}.} \item{Added \code{AVX512} \code{VBMI2} (Additional Bit Manipulation), \code{VNNI} (Vector Neural Network), \code{BITALG} (Bit Algorithm), and \code{GFNI} (Galois Field New Instruction) instructions.} \item{Added the \code{STATIC} directive for local symbols that should be renamed using global-symbol rules. See \nref{static}.} \item{Allow a symbol to be defined as \code{EXTERN} and then later overridden as \code{GLOBAL} or \code{COMMON}. Furthermore, a symbol declared \code{EXTERN} and then defined will be treated as \code{GLOBAL}. See \nref{extern}.} \item{The \code{GLOBAL} directive no longer is required to precede the definition of the symbol.} \item{Support \code{private\_extern} as \code{macho} specific extension to the \code{GLOBAL} directive. See \nref{macho-pext}.} \item{Updated \code{UD0} encoding to match with the specification} \item{Added the \code{--limit-X} command line option to set execution limits. See \nref{opt-limit}.} \item{Updated the \code{Codeview} version number to be aligned with \code{MASM}.} \item{Added the \code{--keep-all} command line option to preserve output files. See \nref{opt-keep-all}.} \item{Added the \code{--include} command line option, an alias to \code{-P} (\nref{opt-p}).} \item{Added the \code{--help} command line option as an alias to \code{-h} (\nref{syntax}).} \item{Added \code{-W}, \code{-D}, and \code{-Q} suffix aliases for \code{RET} instructions so the operand sizes of these instructions can be encoded without using \code{o16}, \code{o32} or \code{o64}.} \end{itemize} \xsubsection{cl-2.13.03}{Version 2.13.03} \begin{itemize} \item{Added AVX and AVX512 \code{VAES*} and \code{VPCLMULQDQ} instructions.} \item{Fixed missing dwarf record in x32 ELF output format.} \end{itemize} \xsubsection{cl-2.13.02}{Version 2.13.02} \begin{itemize} \item{Fix false positive in testing of numeric overflows.} \item{Fix generation of \code{PEXTRW} instruction.} \item{Fix \code{smartalign} package which could trigger an error during optimization if the alignment code expanded too much due to optimization of the previous code.} \item{Fix a case where negative value in \code{TIMES} directive causes panic instead of an error.} \item{Always finalize \code{.debug\_abbrev} section with a null in \code{dwarf} output format.} \item{Support \code{debug} flag in section attributes for \code{macho} output format. See \nref{machosect}.} \item{Support up to 16 characters in section names for \code{macho} output format.} \item{Fix missing update of global \code{BITS} setting if \code{SECTION} directive specified a bit size using output format-specific extensions (e.g. \code{USE32} for the \code{obj} output format.)} \item{Fix the incorrect generation of VEX-encoded instruction when static mode decorators are specified on scalar instructions, losing the decorators as they require EVEX encoding.} \item{Option \code{-MW} to quote dependency outputs according to Watcom Make conventions instead of POSIX Make conventions. See \nref{opt-MW}.} \item{The \code{obj} output format now contains embedded dependency file information, unless disabled with \code{\%pragma obj nodepend}. See \nref{objdepend}.} \item{Fix generation of dependency lists.} \item{Fix a number of null pointer reference and memory allocation errors.} \item{Always generate symbol-relative relocations for the \code{macho64} output format; at least some versions of the XCode/LLVM linker fails for section-relative relocations.} \end{itemize} \xsubsection{cl-2.13.01}{Version 2.13.01} \begin{itemize} \item{Fix incorrect output for some types of \code{FAR} or \code{SEG} references in the \code{obj} output format, and possibly other 16-bit output formats.} \item{Fix the address in the list file for an instruction containing a \code{TIMES} directive.} \item{Fix error with \code{TIMES} used together with an instruction which can vary in size, e.g. \code{JMP}.} \item{Fix breakage on some uses of the \code{DZ} pseudo-op.} \end{itemize} \xsubsection{cl-2.13}{Version 2.13} \begin{itemize} \item{Support the official forms of the \code{UD0} and \code{UD1} instructions.} \item{Allow self-segment-relative expressions in immediates and displacements, even when combined with an external or otherwise out-of-segment special symbol, e.g.: \begin{lstlisting} extern foo mov eax,[foo - $+ ebx] ; Now legal \end{lstlisting}} \item{Handle a 64-bit origin in NDISASM.} \item{NASM can now generate sparse output files for relevant output formats, if the underlying operating system supports them.} \item{The \code{macho} object format now supports the \code{subsections\_via\_symbols} and \code{no\_dead\_strip} directives, see \nref{macho-ssvs}.} \item{The \code{macho} object format now supports the \code{no\_dead\_strip}, \code{live\_support} and \code{strip\_static\_syms} section flags, see \nref{machosect}.} \item{The \code{macho} object format now supports the \code{dwarf} debugging format, as required by newer toolchains.} \item{All warnings can now be suppressed if desired; warnings not otherwise part of any warning class are now considered its own warning class called \code{other} (e.g. \code{-w-other}). Furthermore, warning-as-error can now be controlled on a per warning class basis, using the syntax \code{-w+error=}\emph{warning-class} and its equivalent for all other warning control options. See \nref{opt-w} for the command-line options and warning classes and \nref{asmdir-warning} for the \code{[WARNING]} directive.} \item{Fix a number of bugs related to AVX-512 decorators.} \item{Significant improvements to building NASM with Microsoft Visual Studio via \code{Mkfiles/msvc.mak}. It is now possible to build the full Windows installer binary as long as the necessary prerequisites are installed; see \code{Mkfiles/README}} \item{To build NASM with custom modifications (table changes) or from the git tree now requires Perl 5.8 at the very minimum, quite possibly a higher version (Perl 5.24.1 tested.) There is no requirement to have Perl on your system at all if all you want to do is build unmodified NASM from source archives.} \item{Fix the \code{\{z\}} decorator on AVX-512 \code{VMOVDQ*} instructions.} \item{Add new warnings for certain dangerous constructs which never ought to have been allowed. In particular, the \code{RESB} family of instructions should have been taking a critical expression all along.} \item{Fix the EVEX (AVX-512) versions of the \code{VPBROADCAST}, \code{VPEXTR}, and \code{VPINSR} instructions.} \item{Support contracted forms of additional instructions. As a general rule, if an instruction has a non-destructive source immediately after a destination register that isn't used as an input, NASM supports omitting that source register, using the destination register as that value. This among other things makes it easier to convert SSE code to the equivalent AVX code: \begin{lstlisting} addps xmm1,xmm0 ; SSE instruction vaddps ymm1,ymm1,ymm0 ; AVX official long form vaddps ymm1,ymm0 ; AVX contracted form \end{lstlisting}} \item{Fix Codeview malformed compiler version record.} \item{Add the \code{CLWB} and \code{PCOMMIT} instructions. Note that the \code{PCOMMIT} instruction has been deprecated and will never be included in a shipping product; it is included for completeness only.} \item{Add the \code{\%pragma} preprocessor directive for soft-error directives.} \item{Add the \code{RDPID} instruction.} \end{itemize} \xsubsection{cl-2.12.02}{Version 2.12.02} \begin{itemize} \item{Fix preprocessor errors, especially \code{\%error} and \code{\%warning}, inside \code{\%if} statements.} \item{Fix relative relocations in 32-bit Mach-O.} \item{More Codeview debug format fixes.} \item{If the MASM \code{PTR} keyword is encountered, issue a warning. This is much more likely to indicate a MASM-ism encountered in NASM than it is a valid label. This warning can be suppressed with \code{-w-ptr}, the \code{[warning]} directive (see \nref{opt-w}) or by the macro definition \code{\%idefine ptr \$\%} (see \nref{selfref}).} \item{When an error or a warning comes from the expansion of a multi-line macro, display the file and line numbers for the expanded macros. Macros defined with \code{.nolist} do not get displayed.} \item{Add macros \code{ilog2fw()} and \code{ilog2cw()} to the \code{ifunc} macro package. See \nref{ilog2}.} \end{itemize} \xsubsection{cl-2.12.01}{Version 2.12.01} \begin{itemize} \item{Portability fixes for some platforms.} \item{Fix error when not specifying a list file.} \item{Correct the handling of macro-local labels in the Codeview debugging format.} \item{Add \code{CLZERO}, \code{MONITORX} and \code{MWAITX} instructions.} \end{itemize} \xsubsection{cl-2.12}{Version 2.12} \begin{itemize} \item{Major fixes to the \code{macho} backend (\nref{machofmt}); earlier versions would produce invalid symbols and relocations on a regular basis.} \item{Support for thread-local storage in Mach-O.} \item{Support for arbitrary sections in Mach-O.} \item{Fix wrong negative size treated as a big positive value passed into backend causing NASM to crash.} \item{Fix handling of zero-extending unsigned relocations, we have been printing wrong message and forgot to assign segment with predefined value before passing it into output format.} \item{Fix potential write of oversized (with size greater than allowed in output format) relative relocations.} \item{Portability fixes for building NASM with the LLVM compiler.} \item{Add support of Codeview version 8 (\code{cv8}) debug format for \code{win32} and \code{win64} formats in the \code{COFF} backend, see \nref{codeview}.} \item{Allow 64-bit outputs in 16/32-bit only backends. Unsigned 64-bit relocations are zero-extended from 32-bits with a warning (suppressible via \code{-w-zext-reloc}); signed 64-bit relocations are an error.} \item{Line numbers in list files now correspond to the lines in the source files, instead of simply being sequential.} \item{There is now an official 64-bit (x64 a.k.a. x86-64) build for Windows.} \end{itemize} \xsubsection{cl-2.11.09}{Version 2.11.09} \begin{itemize} \item{Fix potential stack overwrite in \code{macho32} backend.} \item{Fix relocation records in \code{macho64} backend.} \item{Fix symbol lookup computation in \code{macho64} backend.} \item{Adjust \code{.symtab} and \code{.rela.text} sections alignments to 8 bytes in \code{elf64} backed.} \item{Fix section length computation in \code{bin} backend which leaded in incorrect relocation records.} \end{itemize} \xsubsection{cl-2.11.08}{Version 2.11.08} \begin{itemize} \item{Fix section length computation in \code{bin} backend which leaded in incorrect relocation records.} \item{Add a warning for numeric preprocessor definitions passed via command line which might have unexpected results otherwise.} \item{Add ability to specify a module name record in \code{rdoff} linker with \code{-mn} option.} \item{Increase label length capacity up to 256 bytes in \code{rdoff} backend for FreePascal sake, which tends to generate very long labels for procedures.} \item{Fix segmentation failure when rip addressing is used in \code{macho64} backend.} \item{Fix access on out of memory when handling strings with a single grave. We have sixed similar problem in previous release but not all cases were covered.} \item{Fix NULL dereference in disassembled on \code{BND} instruction.} \end{itemize} \xsubsection{cl-2.11.07}{Version 2.11.07} \begin{itemize} \item{Fix 256 bit \code{VMOVNTPS} instruction.} \item{Fix \code{-MD} option handling, which was rather broken in previous release changing command line api.} \item{Fix access to unitialized space when handling strings with a single grave.} \item{Fix nil dereference in handling memory reference parsing.} \end{itemize} \xsubsection{cl-2.11.06}{Version 2.11.06} \begin{itemize} \item{Update AVX512 instructions based on the Extension Reference (319433-021 Sept 2014).} \item{Fix the behavior of \code{-MF} and \code{-MD} options (Bugzilla 3392280)} \item{Updated Win32 Makefile to fix issue with build} \end{itemize} \xsubsection{cl-2.11.05}{Version 2.11.05} \begin{itemize} \item{Add \code{--v} as an alias for \code{-v} (see \nref{opt-v}), for command-line compatibility with Yasm.} \item{Fix a bug introduced in 2.11.03 whereby certain instructions would contain multiple REX prefixes, and thus be corrupt.} \end{itemize} \xsubsection{cl-2.11.04}{Version 2.11.04} \begin{itemize} \item{Removed an invalid error checking code. Sometimes a memref only with a displacement can also set an evex flag. For example: \begin{lstlisting} vmovdqu32 [0xabcd]{k1}, zmm0 \end{lstlisting}} \item{Fixed a bug in disassembler that EVEX.L'L vector length was not matched when EVEX.b was set because it was simply considered as EVEC.RC. Separated EVEX.L'L case from EVEX.RC which is ignored in matching.} \end{itemize} \xsubsection{cl-2.11.03}{Version 2.11.03} \begin{itemize} \item{Fix a bug there REX prefixes were missing on instructions inside a \code{TIMES} statement.} \end{itemize} \xsubsection{cl-2.11.02}{Version 2.11.02} \begin{itemize} \item{Add the \code{XSAVEC}, \code{XSAVES} and \code{XRSTORS} family instructions.} \item{Add the \code{CLFLUSHOPT} instruction.} \end{itemize} \xsubsection{cl-2.11.01}{Version 2.11.01} \begin{itemize} \item{Allow instructions which implicitly uses \code{XMM0} (\code{VBLENDVPD}, \code{VBLENDVPS}, \code{PBLENDVB} and \code{SHA256RNDS2}) to be specified without an explicit \code{xmm0} on the assembly line. In other words, the following two lines produce the same output: \begin{lstlisting} vblendvpd xmm2,xmm1,xmm0 ; Last operand is fixed xmm0 vblendvpd xmm2,xmm1 ; Implicit xmm0 omitted \end{lstlisting}} \item{In the ELF backends, don't crash the assembler if \code{section align} is specified without a value.} \end{itemize} \xsubsection{cl-2.11}{Version 2.11} \begin{itemize} \item{Add support for the Intel AVX-512 instruction set:} \item{16 new, 512-bit SIMD registers. Total 32 \code{(ZMM0 \textasciitilde ZMM31)}} \item{8 new opmask registers \code{(K0 \textasciitilde K7)}. One of 7 registers \code{(K1 \textasciitilde K7)} can be used as an opmask for conditional execution.} \item{A new EVEX encoding prefix. EVEX is based on VEX and provides more capabilities: opmasks, broadcasting, embedded rounding and compressed displacements. \begin{lstlisting} ; opmask: conditional vector operation ; using opmask k1 and {z} is for zero-masking VDIVPD zmm0{k1}{z}, zmm1, zmm3 ; broadcasting: load single-precision float and ; replicate it 16 times. 32 * 16 = 512 VDIVPS zmm4, zmm5, [rbx]{1to16} ; embedded rounding: round toward zero. note that : it is used as if a separate operand. it comes after ; the last SIMD operand VCVTSI2SD xmm6, xmm7, {rz-sae}, rax \end{lstlisting}} \item{Add support for \code{ZWORD} (512 bits), \code{DZ} and \code{RESZ}.} \item{Add support for the MPX and SHA instruction sets.} \item{Better handling of section redefinition.} \item{Generate manpages when running \code{'make dist'}.} \item{Handle all token chains in mmacro params range.} \item{Support split [base,index] effective address: \begin{lstlisting} ; eax=base, ecx=index, 4=scale, 8=disp mov eax,[eax+8,ecx*4] \end{lstlisting} This is expected to be most useful for the MPX instructions.} \item{Support \code{BND} prefix for branch instructions (for MPX).} \item{The \code{DEFAULT} directive can now take \code{BND} and \code{NOBND} options to indicate whether all relevant branches should be getting \code{BND} prefixes. This is expected to be the normal for use in MPX code.} \item{Add \code{{evex}}, \code{{vex3}} and \code{{vex2}} instruction prefixes to have NASM encode the corresponding instruction, if possible, with an EVEX, 3-byte VEX, or 2-byte VEX prefix, respectively.} \item{Support for section names longer than 8 bytes in Win32/Win64 COFF.} \item{The \code{NOSPLIT} directive by itself no longer forces a single register to become an index register, unless it has an explicit multiplier. \begin{lstlisting} mov eax,[nosplit eax] ; eax as base register mov eax,[nosplit eax*1] ; eax as index register \end{lstlisting}} \end{itemize} \xsubsection{cl-2.10.09}{Version 2.10.09} \begin{itemize} \item{Pregenerate man pages.} \end{itemize} \xsubsection{cl-2.10.08}{Version 2.10.08} \begin{itemize} \item{Fix \code{VMOVNTDQA}, \code{MOVNTDQA} and \code{MOVLPD} instructions.} \item{Fix collision for \code{VGATHERQPS}, \code{VPGATHERQD} instructions.} \item{Fix \code{VPMOVSXBQ}, \code{VGATHERQPD}, \code{VSPLLW} instructions.} \item{Add a bunch of AMD TBM instructions.} \item{Fix potential stack overwrite in numbers conversion.} \item{Allow byte size in \code{PREFETCHTx} instructions.} \item{Make manual pages up to date.} \item{Make \code{F3} and \code{F2} SSE prefixes to override \code{66}.} \item{Support of AMD SVM instructions in 32 bit mode.} \item{Fix near offsets code generation for \code{JMP}, \code{CALL} instrictions in long mode.} \item{Fix preprocessor parse regression when id is expanding to a whitespace.} \end{itemize} \xsubsection{cl-2.10.07}{Version 2.10.07} \begin{itemize} \item{Fix line continuation parsing being broken in previous version.} \end{itemize} \xsubsection{cl-2.10.06}{Version 2.10.06} \begin{itemize} \item{Always quote the dependency source names when using the automatic dependency generation options.} \item{If no dependency target name is specified via the \code{-MT} or \code{-MQ} options, quote the default output name.} \item{Fix assembly of shift operations in \code{CPU 8086} mode.} \item{Fix incorrect generation of explicit immediate byte for shift by 1 under certain circumstances.} \item{Fix assembly of the \code{VPCMPGTQ} instruction.} \item{Fix RIP-relative relocations in the \code{macho64} backend.} \end{itemize} \xsubsection{cl-2.10.05}{Version 2.10.05} \begin{itemize} \item{Add the \code{CLAC} and \code{STAC} instructions.} \end{itemize} \xsubsection{cl-2.10.04}{Version 2.10.04} \begin{itemize} \item{Add back the inadvertently deleted 256-bit version of the \code{VORPD} instruction.} \item{Correct disassembly of instructions starting with byte \code{82} hex.} \item{Fix corner cases in token pasting, for example: \begin{lstlisting} %define N 1e%++%+ 5 dd N, 1e+5 \end{lstlisting}} \end{itemize} \xsubsection{cl-2.10.03}{Version 2.10.03} \begin{itemize} \item{Correct the assembly of the instruction: \begin{lstlisting} XRELEASE MOV [absolute],AL \end{lstlisting} Previous versions would incorrectly generate \code{F3 A2} for this instruction and issue a warning; correct behavior is to emit \code{F3 88 05}.} \end{itemize} \xsubsection{cl-2.10.02}{Version 2.10.02} \begin{itemize} \item{Add the \code{ifunc} macro package with integer functions, currently only integer logarithms. See \nref{pkgifunc}.} \item{Add the \code{RDSEED}, \code{ADCX} and \code{ADOX} instructions.} \end{itemize} \xsubsection{cl-2.10.01}{Version 2.10.01} \begin{itemize} \item{Add missing VPMOVMSKB instruction with reg32, ymmreg operands.} \end{itemize} \xsubsection{cl-2.10}{Version 2.10} \begin{itemize} \item{When optimization is enabled, \code{mov r64,imm} now optimizes to the shortest form possible between: \begin{lstlisting} mov r32,imm32 ; 5 bytes mov r64,imm32 ; 7 bytes mov r64,imm64 ; 10 bytes \end{lstlisting} To force a specific form, use the \code{STRICT} keyword, see \nref{strict}.} \item{Add support for the Intel AVX2 instruction set.} \item{Add support for Bit Manipulation Instructions 1 and 2.} \item{Add support for Intel Transactional Synchronization Extensions (TSX).} \item{Add support for x32 ELF (32-bit ELF with the CPU in 64-bit mode.) See \nref{elffmt}.} \item{Add support for bigendian UTF-16 and UTF-32. See \nref{unicode}.} \end{itemize} \xsubsection{cl-2.09.10}{Version 2.09.10} \begin{itemize} \item{Fix up NSIS script to protect uninstaller against registry keys absence or corruption. It brings in a few additional questions to a user during deinstallation procedure but still it is better than unpredictable file removal.} \end{itemize} \xsubsection{cl-2.09.09}{Version 2.09.09} \begin{itemize} \item{Fix initialization of section attributes of \code{bin} output format.} \item{Fix \code{mach64} output format bug that crashes NASM due to NULL symbols.} \end{itemize} \xsubsection{cl-2.09.08}{Version 2.09.08} \begin{itemize} \item{Fix \code{\_\_OUTPUT\_FORMAT\_\_} assignment when output driver alias is used. For example when \code{-f elf} is used \code{\_\_OUTPUT\_FORMAT\_\_} must be set to \code{elf}, if \code{-f elf32} is used \code{\_\_OUTPUT\_FORMAT\_\_} must be assigned accordingly, i.e. to \code{elf32}. The rule applies to all output driver aliases. See \nref{ofmtm}.} \end{itemize} \xsubsection{cl-2.09.07}{Version 2.09.07} \begin{itemize} \item{Fix attempts to close same file several times when \code{-a} option is used.} \item{Fixes for VEXTRACTF128, VMASKMOVPS encoding.} \end{itemize} \xsubsection{cl-2.09.06}{Version 2.09.06} \begin{itemize} \item{Fix missed section attribute initialization in \code{bin} output target.} \end{itemize} \xsubsection{cl-2.09.05}{Version 2.09.05} \begin{itemize} \item{Fix arguments encoding for VPEXTRW instruction.} \item{Remove invalid form of VPEXTRW instruction.} \item{Add \code{VLDDQU} as alias for \code{VLDQQU} to match specification.} \end{itemize} \xsubsection{cl-2.09.04}{Version 2.09.04} \begin{itemize} \item{Fix incorrect labels offset for VEX intructions.} \item{Eliminate bogus warning on implicit operand size override.} \item{\code{\%if} term could not handle 64 bit numbers.} \item{The COFF backend was limiting relocations number to 16 bits even if in real there were a way more relocations.} \end{itemize} \xsubsection{cl-2.09.03}{Version 2.09.03} \begin{itemize} \item{Print \code{\%macro} name inside \code{\%rep} blocks on error.} \item{Fix preprocessor expansion behaviour. It happened sometime too early and sometime simply wrong. Move behaviour back to the origins (down to NASM 2.05.01).} \item{Fix unitialized data dereference on OMF output format.} \item{Issue warning on unterminated \code{\%\{} construct.} \item{Fix for documentation typo.} \end{itemize} \xsubsection{cl-2.09.02}{Version 2.09.02} \begin{itemize} \item{Fix reversed tokens when \code{\%deftok} produces more than one output token.} \item{Fix segmentation fault on disassembling some VEX instructions.} \item{Missing \code{\%endif} did not always cause error.} \item{Fix typo in documentation.} \item{Compound context local preprocessor single line macro identifiers were not expanded early enough and as result lead to unresolved symbols.} \end{itemize} \xsubsection{cl-2.09.01}{Version 2.09.01} \begin{itemize} \item{Fix NULL dereference on missed \code{\%deftok} second parameter.} \item{Fix NULL dereference on invalid \code{\%substr} parameters.} \end{itemize} \xsubsection{cl-2.09}{Version 2.09} \begin{itemize} \item{Fixed assignment the magnitude of \code{\%rep} counter. It is limited to 62 bits now.} \item{Fixed NULL dereference if argument of \code{\%strlen} resolves to whitespace. For example if nonexistent macro parameter is used.} \item{\code{\%ifenv}, \code{\%elifenv}, \code{\%ifnenv}, and \code{\%elifnenv} directives introduced. See \nref{ifenv}.} \item{Fixed NULL dereference if environment variable is missed.} \item{Updates of new AVX v7 Intel instructions.} \item{\code{PUSH imm32} is now officially documented.} \item{Fix for encoding the LFS, LGS and LSS in 64-bit mode.} \item{Fixes for compatibility with OpenWatcom compiler and DOS 8.3 file format limitation.} \item{Macros parameters range expansion introduced. See \nref{mlmacrange}.} \item{Backward compatibility on expanging of local sigle macros restored.} \item{8 bit relocations for \code{elf} and \code{bin} output formats are introduced.} \item{Short intersegment jumps are permitted now.} \item{An alignment more than 64 bytes are allowed for \code{win32}, \code{win64} output formats.} \item{\code{SECTALIGN} directive introduced. See \nref{sectalign}.} \item{\code{nojmp} option introduced in \code{smartalign} package. See \nref{pkgsmartalign}.} \item{Short aliases \code{win}, \code{elf} and \code{macho} for output formats are introduced. Each stands for \code{win32}, \code{elf32} and \code{macho32} accordingly.} \item{Faster handling of missing directives implemented.} \item{Various small improvements in documentation.} \item{No hang anymore if unable to open malloc.log file.} \item{The environments without vsnprintf function are able to build nasm again.} \item{AMD LWP instructions updated.} \item{Tighten EA checks. We warn a user if there overflow in EA addressing.} \item{Make \code{-Ox} the default optimization level. For the legacy behavior, specify \code{-O0} explicitly. See \nref{opt-O}.} \item{Environment variables read with \code{\%!} or tested with \code{\%ifenv} can now contain non-identifier characters if surrounded by quotes. See \nref{getenv}.} \item{Add a new standard macro package \code{\%use fp} for floating-point convenience macros. See \nref{pkgfp}.} \end{itemize} \xsubsection{cl-2.08.02}{Version 2.08.02} \begin{itemize} \item{Fix crash under certain circumstances when using the \code{\%+} operator.} \end{itemize} \xsubsection{cl-2.08.01}{Version 2.08.01} \begin{itemize} \item{Fix the \code{\%use} statement, which was broken in 2.08.} \end{itemize} \xsubsection{cl-2.08}{Version 2.08} \begin{itemize} \item{A number of enhancements/fixes in macros area.} \item{Support for converting strings to tokens. See \nref{deftok}.} \item{Fuzzy operand size logic introduced.} \item{Fix COFF stack overrun on too long export identifiers.} \item{Fix Macho-O alignment bug.} \item{Fix crashes with \code{-fwin32} on file with many exports.} \item{Fix stack overrun for too long [DEBUG id].} \item{Fix incorrect sbyte usage in IMUL (hit only if optimization flag passed).} \item{Append ending token for \code{.stabs} records in the ELF output format.} \item{New NSIS script which uses ModernUI and MultiUser approach.} \item{Visual Studio 2008 NASM integration (rules file).} \item{Warn a user if a constant is too long (and as result will be stripped).} \item{The obsoleted pre-XOP AMD SSE5 instruction set which was never actualized was removed.} \item{Fix stack overrun on too long error file name passed from the command line.} \item{Bind symbols to the .text section by default (ie in case if \code{SECTION} directive was omitted) in the ELF output format.} \item{Fix sync points array index wrapping.} \item{A few fixes for FMA4 and XOP instruction templates.} \item{Add AMD Lightweight Profiling (LWP) instructions.} \item{Fix the offset for \code{\%arg} in 64-bit mode.} \item{An undefined local macro (\code{\%\}) no longer matches a global macro with the same name.} \item{Fix NULL dereference on too long local labels.} \end{itemize} \xsubsection{cl-2.07}{Version 2.07} \begin{itemize} \item{NASM is now under the 2-clause BSD license. See \nref{license}.} \item{Fix the section type for the \code{.strtab} section in the \code{elf64} output format.} \item{Fix the handling of \code{COMMON} directives in the \code{obj} output format.} \item{New \code{ith} and \code{srec} output formats; these are variants of the \code{bin} output format which output Intel hex and Motorola S-records, respectively. See \nref{ithfmt} and \nref{srecfmt}.} \item{\code{rdf2ihx} replaced with an enhanced \code{rdf2bin}, which can output binary, COM, Intel hex or Motorola S-records.} \item{The Windows installer now puts the NASM directory first in the \code{PATH} of the NASM Shell''.} \item{Revert the early expansion behavior of \code{\%+} to pre-2.06 behavior: \code{\%+} is only expanded late.} \item{Yet another Mach-O alignment fix.} \item{Don't delete the list file on errors. Also, include error and warning information in the list file.} \item{Support for 64-bit Mach-O output, see \nref{machofmt}.} \item{Fix assert failure on certain operations that involve strings with high-bit bytes.} \end{itemize} \xsubsection{cl-2.06}{Version 2.06} \begin{itemize} \item{This release is dedicated to the memory of Charles A. Crayne, long time NASM developer as well as moderator of \code{comp.lang.asm.x86} and author of the book \emph{Serious Assembler}. We miss you, Chuck.} \item{Support for indirect macro expansion (\code{\%[...]}). See \nref{indmacro}.} \item{\code{\%pop} can now take an argument, see \nref{pushpop}.} \item{The argument to \code{\%use} is no longer macro-expanded. Use \code{\%[...]} if macro expansion is desired.} \item{Support for thread-local storage in ELF32 and ELF64. See \nref{elftls}.} \item{Fix crash on \code{\%ifmacro} without an argument.} \item{Correct the arguments to the \code{POPCNT} instruction.} \item{Fix section alignment in the Mach-O format.} \item{Update AVX support to version 5 of the Intel specification.} \item{Fix the handling of accesses to context-local macros from higher levels in the context stack.} \item{Treat \code{WAIT} as a prefix rather than as an instruction, thereby allowing constructs like \code{O16 FSAVE} to work correctly.} \item{Support for structures with a non-zero base offset. See \nref{struc}.} \item{Correctly handle preprocessor token concatenation (see \nref{concat}) involving floating-point numbers.} \item{The \code{PINSR} series of instructions have been corrected and rationalized.} \item{Removed AMD SSE5, replaced with the new XOP/FMA4/CVT16 (rev 3.03) spec.} \item{The ELF backends no longer automatically generate a \code{.comment} section.} \item{Add additional "well-known" ELF sections with default attributes. See \nref{elfsect}.} \end{itemize} \xsubsection{cl-2.05.01}{Version 2.05.01} \begin{itemize} \item{Fix the \code{-w}/\code{-W} option parsing, which was broken in NASM 2.05.} \end{itemize} \xsubsection{cl-2.05}{Version 2.05} \begin{itemize} \item{Fix redundant REX.W prefix on \code{JMP reg64}.} \item{Make the behaviour of \code{-O0} match NASM 0.98 legacy behavior. See \nref{opt-O}.} \item{\code{-w-user} can be used to suppress the output of \code{\%warning} directives. See \nref{opt-w}.} \item{Fix bug where \code{ALIGN} would issue a full alignment datum instead of zero bytes.} \item{Fix offsets in list files.} \item{Fix \code{\%include} inside multi-line macros or loops.} \item{Fix error where NASM would generate a spurious warning on valid optimizations of immediate values.} \item{Fix arguments to a number of the \code{CVT} SSE instructions.} \item{Fix RIP-relative offsets when the instruction carries an immediate.} \item{Massive overhaul of the ELF64 backend for spec compliance.} \item{Fix the Geode \code{PFRCPV} and \code{PFRSQRTV} instruction.} \item{Fix the SSE 4.2 \code{CRC32} instruction.} \end{itemize} \xsubsection{cl-2.04}{Version 2.04} \begin{itemize} \item{Sanitize macro handing in the \code{\%error} directive.} \item{New \code{\%warning} directive to issue user-controlled warnings.} \item{\code{\%error} directives are now deferred to the final assembly phase.} \item{New \code{\%fatal} directive to immediately terminate assembly.} \item{New \code{\%strcat} directive to join quoted strings together.} \item{New \code{\%use} macro directive to support standard macro directives. See \nref{use}.} \item{Excess default parameters to \code{\%macro} now issues a warning by default. See \nref{mlmacro}.} \item{Fix \code{\%ifn} and \code{\%elifn}.} \item{Fix nested \code{\%else} clauses.} \item{Correct the handling of nested \code{\%rep}s.} \item{New \code{\%unmacro} directive to undeclare a multi-line macro. See \nref{unmacro}.} \item{Builtin macro \code{\_\_PASS\_\_} which expands to the current assembly pass. See \nref{passdef}.} \item{\code{\_\_utf16\_\_} and \code{\_\_utf32\_\_} operators to generate UTF-16 and UTF-32 strings. See \nref{unicode}.} \item{Fix bug in case-insensitive matching when compiled on platforms that don't use the \code{configure} script. Of the official release binaries, that only affected the OS/2 binary.} \item{Support for x87 packed BCD constants. See \nref{bcdconst}.} \item{Correct the \code{LTR} and \code{SLDT} instructions in 64-bit mode.} \item{Fix unnecessary REX.W prefix on indirect jumps in 64-bit mode.} \item{Add AVX versions of the AES instructions (\code{VAES}...).} \item{Fix the 256-bit FMA instructions.} \item{Add 256-bit AVX stores per the latest AVX spec.} \item{VIA XCRYPT instructions can now be written either with or without \code{REP}, apparently different versions of the VIA spec wrote them differently.} \item{Add missing 64-bit \code{MOVNTI} instruction.} \item{Fix the operand size of \code{VMREAD} and \code{VMWRITE}.} \item{Numerous bug fixes, especially to the AES, AVX and VTX instructions.} \item{The optimizer now always runs until it converges. It also runs even when disabled, but doesn't optimize. This allows most forward references to be resolved properly.} \item{\code{\%push} no longer needs a context identifier; omitting the context identifier results in an anonymous context.} \end{itemize} \xsubsection{cl-2.03.01}{Version 2.03.01} \begin{itemize} \item{Fix buffer overflow in the listing module.} \item{Fix the handling of hexadecimal escape codes in ... strings.} \item{The Postscript/PDF documentation has been reformatted.} \item{The \code{-F} option now implies \code{-g}.} \end{itemize} \xsubsection{cl-2.03}{Version 2.03} \begin{itemize} \item{Add support for Intel AVX, CLMUL and FMA instructions, including YMM registers.} \item{\code{dy}, \code{resy} and \code{yword} for 32-byte operands.} \item{Fix some SSE5 instructions.} \item{Intel \code{INVEPT}, \code{INVVPID} and \code{MOVBE} instructions.} \item{Fix checking for critical expressions when the optimizer is enabled.} \item{Support the DWARF debugging format for ELF targets.} \item{Fix optimizations of signed bytes.} \item{Fix operation on bigendian machines.} \item{Fix buffer overflow in the preprocessor.} \item{\code{SAFESEH} support for Win32, \code{IMAGEREL} for Win64 (SEH).} \item{\code{\%?} and \code{\%??} to refer to the name of a macro itself. In particular, \code{\%idefine keyword \\%?} can be used to make a keyword "disappear".} \item{New options for dependency generation: \code{-MD}, \code{-MF}, \code{-MP}, \code{-MT}, \code{-MQ}.} \item{New preprocessor directives \code{\%pathsearch} and \code{\%depend}; \code{INCBIN} reimplemented as a macro.} \item{\code{\%include} now resolves macros in a sane manner.} \item{\code{\%substr} can now be used to get other than one-character substrings.} \item{New type of character/string constants, using backquotes (\code{...}), which support C-style escape sequences.} \item{\code{\%defstr} and \code{\%idefstr} to stringize macro definitions before creation.} \item{Fix forward references used in \code{EQU} statements.} \end{itemize} \xsubsection{cl-2.02}{Version 2.02} \begin{itemize} \item{Additional fixes for MMX operands with explicit \code{qword}, as well as (hopefully) SSE operands with \code{oword}.} \item{Fix handling of truncated strings with \code{DO}.} \item{Fix segfaults due to memory overwrites when floating-point constants were used.} \item{Fix segfaults due to missing include files.} \item{Fix OpenWatcom Makefiles for DOS and OS/2.} \item{Add autogenerated instruction list back into the documentation.} \item{ELF: Fix segfault when generating stabs, and no symbols have been defined.} \item{ELF: Experimental support for DWARF debugging information.} \item{New compile date and time standard macros.} \item{\code{\%ifnum} now returns true for negative numbers.} \item{New \code{\%iftoken} test for a single token.} \item{New \code{\%ifempty} test for empty expansion.} \item{Add support for the \code{XSAVE} instruction group.} \item{Makefile for Netware/gcc.} \item{Fix issue with some warnings getting emitted way too many times.} \item{Autogenerated instruction list added to the documentation.} \end{itemize} \xsubsection{cl-2.01}{Version 2.01} \begin{itemize} \item{Fix the handling of MMX registers with explicit \code{qword} tags on memory (broken in 2.00 due to 64-bit changes.)} \item{Fix the PREFETCH instructions.} \item{Fix the documentation.} \item{Fix debugging info when using \code{-f elf} (backwards compatibility alias for \code{-f elf32}).} \item{Man pages for rdoff tools (from the Debian project.)} \item{ELF: handle large numbers of sections.} \item{Fix corrupt output when the optimizer runs out of passes.} \end{itemize} \xsubsection{cl-2.00}{Version 2.00} \begin{itemize} \item{Added c99 data-type compliance.} \item{Added general x86-64 support.} \item{Added win64 (x86-64 COFF) output format.} \item{Added \code{\_\_BITS\_\_} standard macro.} \item{Renamed the \code{elf} output format to \code{elf32} for clarity.} \item{Added \code{elf64} and \code{macho} (MacOS X) output formats.} \item{Added Numeric constants in \code{dq} directive.} \item{Added \code{oword}, \code{do} and \code{reso} pseudo operands.} \item{Allow underscores in numbers.} \item{Added 8-, 16- and 128-bit floating-point formats.} \item{Added binary, octal and hexadecimal floating-point.} \item{Correct the generation of floating-point constants.} \item{Added floating-point option control.} \item{Added Infinity and NaN floating point support.} \item{Added ELF Symbol Visibility support.} \item{Added setting OSABI value in ELF header directive.} \item{Added Generate Makefile Dependencies option.} \item{Added Unlimited Optimization Passes option.} \item{Added \code{\%ifn} and \code{\%elifn} support.} \item{Added Logical Negation Operator.} \item{Enhanced Stack Relative Preprocessor Directives.} \item{Enhanced ELF Debug Formats.} \item{Enhanced Send Errors to a File option.} \item{Added SSSE3, SSE4.1, SSE4.2, SSE5 support.} \item{Added a large number of additional instructions.} \item{Significant performance improvements.} \item{\code{-w+warning} and \code{-w-warning} can now be written as -Wwarning and -Wno-warning, respectively. See \nref{opt-w}.} \item{Add \code{-w+error} to treat warnings as errors. See \nref{opt-w}.} \item{Add \code{-w+all} and \code{-w-all} to enable or disable all suppressible warnings. See \nref{opt-w}.} \end{itemize} \xsection{cl-0.98.xx}{NASM 0.98 Series} The 0.98 series was the production versions of NASM from 1999 to 2007. \xsubsection{cl-0.98.39}{Version 0.98.39} \begin{itemize} \item{fix buffer overflow} \item{fix outas86's \code{.bss} handling} \item{"make spotless" no longer deletes config.h.in.} \item{\code{\%(el)if(n)idn} insensitivity to string quotes difference (\#809300).} \item{(nasm.c)\code{\_\_OUTPUT\_FORMAT\_\_} changed to string value instead of symbol.} \end{itemize} \xsubsection{cl-0.98.38}{Version 0.98.38} \begin{itemize} \item{Add Makefile for 16-bit DOS binaries under OpenWatcom, and modify \code{mkdep.pl} to be able to generate completely pathless dependencies, as required by OpenWatcom wmake (it supports path searches, but not explicit paths.)} \item{Fix the \code{STR} instruction.} \item{Fix the ELF output format, which was broken under certain circumstances due to the addition of stabs support.} \item{Quick-fix Borland format debug-info for \code{-f obj}} \item{Fix for \code{\%rep} with no arguments (\#560568)} \item{Fix concatenation of preprocessor function call (\#794686)} \item{Fix long label causes coredump (\#677841)} \item{Use autoheader as well as autoconf to keep configure from generating ridiculously long command lines.} \item{Make sure that all of the formats which support debugging output actually will suppress debugging output when \code{-g} not specified.} \end{itemize} \xsubsection{cl-0.98.37}{Version 0.98.37} \begin{itemize} \item{Paths given in \code{-I} switch searched for \code{incbin}-ed as well as \code{\%include}-ed files.} \item{Added stabs debugging for the ELF output format, patch from Martin Wawro.} \item{Fix \code{output/outbin.c} to allow origin > 80000000h.} \item{Make \code{-U} switch work.} \item{Fix the use of relative offsets with explicit prefixes, e.g. \code{a32 loop foo}.} \item{Remove \code{backslash()}.} \item{Fix the \code{SMSW} and \code{SLDT} instructions.} \item{\code{-O2} and \code{-O3} are no longer aliases for \code{-O10} and \code{-O15}. If you mean the latter, please say so! :)} \end{itemize} \xsubsection{cl-0.98.36}{Version 0.98.36} \begin{itemize} \item{Update rdoff - librarian/archiver - common rec - docs!} \item{Fix signed/unsigned problems.} \item{Fix \code{JMP FAR label} and \code{CALL FAR label}.} \item{Add new multisection support - map files - fix align bug} \item{Fix sysexit, movhps/movlps reg,reg bugs in insns.dat} \item{\code{Q} or \code{O} suffixes indicate octal} \item{Support Prescott new instructions (PNI).} \item{Cyrix \code{XSTORE} instruction.} \end{itemize} \xsubsection{cl-0.98.35}{Version 0.98.35} \begin{itemize} \item{Fix build failure on 16-bit DOS (Makefile.bc3 workaround for compiler bug.)} \item{Fix dependencies and compiler warnings.} \item{Add "const" in a number of places.} \item{Add -X option to specify error reporting format (use -Xvc to integrate with Microsoft Visual Studio.)} \item{Minor changes for code legibility.} \item{Drop use of tmpnam() in rdoff (security fix.)} \end{itemize} \xsubsection{cl-0.98.34}{Version 0.98.34} \begin{itemize} \item{Correct additional address-size vs. operand-size confusions.} \item{Generate dependencies for all Makefiles automatically.} \item{Add support for unimplemented (but theoretically available) registers such as tr0 and cr5. Segment registers 6 and 7 are called segr6 and segr7 for the operations which they can be represented.} \item{Correct some disassembler bugs related to redundant address-size prefixes. Some work still remains in this area.} \item{Correctly generate an error for things like "SEG eax".} \item{Add the JMPE instruction, enabled by "CPU IA64".} \item{Correct compilation on newer gcc/glibc platforms.} \item{Issue an error on things like "jmp far eax".} \end{itemize} \xsubsection{cl-0.98.33}{Version 0.98.33} \begin{itemize} \item{New \_\_NASM\_PATCHLEVEL\_\_ and \_\_NASM\_VERSION\_ID\_\_ standard macros to round out the version-query macros. version.pl now understands X.YYplWW or X.YY.ZZplWW as a version number, equivalent to X.YY.ZZ.WW (or X.YY.0.WW, as appropriate).} \item{New keyword "strict" to disable the optimization of specific operands.} \item{Fix the handing of size overrides with JMP instructions (instructions such as "jmp dword foo".)} \item{Fix the handling of "ABSOLUTE label", where "label" points into a relocatable segment.} \item{Fix OBJ output format with lots of externs.} \item{More documentation updates.} \item{Add -Ov option to get verbose information about optimizations.} \item{Undo a braindead change which broke \code{\%elif} directives.} \item{Makefile updates.} \end{itemize} \xsubsection{cl-0.98.32}{Version 0.98.32} \begin{itemize} \item{Fix NASM crashing when \code{\%macro} directives were left unterminated.} \item{Lots of documentation updates.} \item{Complete rewrite of the PostScript/PDF documentation generator.} \item{The MS Visual C++ Makefile was updated and corrected.} \item{Recognize .rodata as a standard section name in ELF.} \item{Fix some obsolete Perl4-isms in Perl scripts.} \item{Fix configure.in to work with autoconf 2.5x.} \item{Fix a couple of "make cleaner" misses.} \item{Make the normal "./configure \&\& make" work with Cygwin.} \end{itemize} \xsubsection{cl-0.98.31}{Version 0.98.31} \begin{itemize} \item{Correctly build in a separate object directory again.} \item{Derive all references to the version number from the version file.} \item{New standard macros \code{\_\_NASM\_SUBMINOR\_\_} and \code{\_\_NASM\_VER\_\_} macros.} \item{Lots of Makefile updates and bug fixes.} \item{New \code{\%ifmacro} directive to test for multiline macros.} \item{Documentation updates.} \item{Fixes for 16-bit OBJ format output.} \item{Changed the NASM environment variable to NASMENV.} \end{itemize} \xsubsection{cl-0.98.30}{Version 0.98.30} \begin{itemize} \item{Changed doc files a lot: completely removed old READMExx and Wishlist files, incorporating all information in CHANGES and TODO.} \item{I waited a long time to rename zoutieee.c to (original) outieee.c} \item{moved all output modules to output/ subdirectory.} \item{Added 'make strip' target to strip debug info from nasm \& ndisasm.} \item{Added INSTALL file with installation instructions.} \item{Added -v option description to nasm man.} \item{Added dist makefile target to produce source distributions.} \item{16-bit support for ELF output format (GNU extension, but useful.)} \end{itemize} \xsubsection{cl-0.98.28}{Version 0.98.28} \begin{itemize} \item{Fastcooked this for Debian's Woody release: Frank applied the \code{INCBIN} bug patch to 0.98.25alt and called it 0.98.28 to not confuse poor little apt-get.} \end{itemize} \xsubsection{cl-0.98.26}{Version 0.98.26} \begin{itemize} \item{Reorganised files even better from 0.98.25alt} \end{itemize} \xsubsection{cl-0.98.25alt}{Version 0.98.25alt} \begin{itemize} \item{Prettified the source tree. Moved files to more reasonable places.} \item{Added findleak.pl script to misc/ directory.} \item{Attempted to fix doc.} \end{itemize} \xsubsection{cl-0.98.25}{Version 0.98.25} \begin{itemize} \item{Line continuation character \code{\\}.} \item{Docs inadvertantly reverted - "dos packaging".} \end{itemize} \xsubsection{cl-0.98.24p1}{Version 0.98.24p1} \begin{itemize} \item{FIXME: Someone, document this please.} \end{itemize} \xsubsection{cl-0.98.24}{Version 0.98.24} \begin{itemize} \item{Documentation - Ndisasm doc added to Nasm.doc.} \end{itemize} \xsubsection{cl-0.98.23}{Version 0.98.23} \begin{itemize} \item{Attempted to remove rdoff version1} \item{Lino Mastrodomenico's patches to preproc.c (\%\$\$ bug?).} \end{itemize} \xsubsection{cl-0.98.22}{Version 0.98.22} \begin{itemize} \item{Update rdoff2 - attempt to remove v1.} \end{itemize} \xsubsection{cl-0.98.21}{Version 0.98.21} \begin{itemize} \item{Optimization fixes.} \end{itemize} \xsubsection{cl-0.98.20}{Version 0.98.20} \begin{itemize} \item{Optimization fixes.} \end{itemize} \xsubsection{cl-0.98.19}{Version 0.98.19} \begin{itemize} \item{H. J. Lu's patch back out.} \end{itemize} \xsubsection{cl-0.98.18}{Version 0.98.18} \begin{itemize} \item{Added ".rdata" to "-f win32".} \end{itemize} \xsubsection{cl-0.98.17}{Version 0.98.17} \begin{itemize} \item{H. J. Lu's "bogus elf" patch. (Red Hat problem?)} \end{itemize} \xsubsection{cl-0.98.16}{Version 0.98.16} \begin{itemize} \item{Fix whitespace before \code{[section \dots]} bug.} \end{itemize} \xsubsection{cl-0.98.15}{Version 0.98.15} \begin{itemize} \item{Rdoff changes (?).} \item{Fix fixes to memory leaks.} \end{itemize} \xsubsection{cl-0.98.14}{Version 0.98.14} \begin{itemize} \item{Fix memory leaks.} \end{itemize} \xsubsection{cl-0.98.13}{Version 0.98.13} \begin{itemize} \item{There was no 0.98.13} \end{itemize} \xsubsection{cl-0.98.12}{Version 0.98.12} \begin{itemize} \item{Update optimization (new function of \code{-O1}).} \item{Changes to test/bintest.asm (?).} \end{itemize} \xsubsection{cl-0.98.11}{Version 0.98.11} \begin{itemize} \item{Optimization changes.} \item{Ndisasm fixed.} \end{itemize} \xsubsection{cl-0.98.10}{Version 0.98.10} \begin{itemize} \item{There was no 0.98.10} \end{itemize} \xsubsection{cl-0.98.09}{Version 0.98.09} \begin{itemize} \item{Add multiple sections support to \code{-f bin}.} \item{Changed \code{GLOBAL\_TEMP\_BASE} in outelf.c from 6 to 15.} \item{Add \code{-v} as an alias to the \code{-r} switch.} \item{Remove \code{\#ifdef} from Tasm compatibility options.} \item{Remove redundant size-overrides on \code{mov ds, ex}, etc.} \item{Fixes to SSE2, other insns.dat (?).} \item{Enable uppercase "I" and "P" switches.} \item{Case insinsitive \code{seg} and \code{wrt}.} \item{Update install.sh (?).} \item{Allocate tokens in blocks.} \item{Improve "invalid effective address" messages.} \end{itemize} \xsubsection{cl-0.98.08}{Version 0.98.08} \begin{itemize} \item{Add \code{\%strlen} and \code{\%substr} macro operators.} \item{Fixed broken c16.mac.} \item{Unterminated string error reported.} \item{Fixed bugs as per 0.98bf} \end{itemize} \xsubsection{cl-0.98.09b}{Version 0.98.09b with John Coffman patches released 28-Oct-2001} Changes from 0.98.07 release to 98.09b as of 28-Oct-2001 \begin{itemize} \item{More closely compatible with 0.98 when \code{-O0} is implied or specified. Not strictly identical, since backward branches in range of short offsets are recognized, and signed byte values with no explicit size specification will be assembled as a single byte.} \item{More forgiving with the PUSH instruction. 0.98 requires a size to be specified always. 0.98.09b will imply the size from the current BITS setting (16 or 32).} \item{Changed definition of the optimization flag \begin{itemize} \item{\code{-O0}: strict two-pass assembly, JMP and Jcc are handled more like 0.98, except that back ward JMPs are short, if possible.} \item{\code{-O1}: strict two-pass assembly, but forward branches are assembled with code guaranteed to reach; may produce larger code than \code{-O0}, but will produce successful assembly more often if branch offset sizes are not specified.} \item{\code{-O2}: multi-pass optimization, minimize branch offsets; also will minimize signed immediate bytes, overriding size specification.} \item{\code{-O3}: like \code{-O2}, but more passes taken, if needed} \end{itemize}} \end{itemize} \xsubsection{cl-0.98.07}{Version 0.98.07 released 01/28/01} \begin{itemize} \item{Added Stepane Denis' SSE2 instructions to a \emph{working} version of the code - some earlier versions were based on broken code - sorry 'bout that. version "0.98.07"} \item{Cosmetic modifications to nasm.c, nasm.h, AUTHORS, MODIFIED} \end{itemize} \xsubsection{cl-0.98.06f}{Version 0.98.06f released 01/18/01} \begin{itemize} \item{Add "metalbrain"s jecxz bug fix in insns.dat} \item{Alter nasmdoc.src to match - version "0.98.06f"} \end{itemize} \xsubsection{cl-0.98.06e}{Version 0.98.06e released 01/09/01} \begin{itemize} \item{Removed the "outforms.h" file - it appears to be someone's old backup of "outform.h". version "0.98.06e"} \item{fbk - finally added the fix for the "multiple \code{\%include} bug", known since 7/27/99 - reported originally (?) and sent to us by Austin Lunnen - he reports that John Fine had a fix within the day. Here it is...} \item{Nelson Rush resigns from the group. Big thanks to Nelson for his leadership and enthusiasm in getting these changes incorporated into Nasm!} \item{fbk - \code{[list +]}, \code{[list -]} directives - ineptly implemented, should be re-written or removed, perhaps.} \item{Brian Raiter / fbk - "elfso bug" fix - applied to aoutb format as well - testing might be desirable...} \item{James Seter - -postfix, -prefix command line switches.} \item{Yuri Zaporozhets - rdoff utility changes.} \end{itemize} \xsubsection{cl-0.98p1}{Version 0.98p1} \begin{itemize} \item{GAS-like palign (Panos Minos)} \item{FIXME: Someone, fill this in with details} \end{itemize} \xsubsection{cl-0.98bf}{Version 0.98bf (bug-fixed)} \begin{itemize} \item{Fixed - elf and aoutb bug - shared libraries} \item{multiple \code{\%include} bug in "-f obj"} \item{jcxz, jecxz bug} \item{unrecognized option bug in ndisasm} \end{itemize} \xsubsection{cl-0.98.03}{Version 0.98.03 with John Coffman's changes released 27-Jul-2000} \begin{itemize} \item{Added signed byte optimizations for the 0x81/0x83 class of instructions: ADC, ADD, AND, CMP, OR, SBB, SUB, XOR: when used as 'ADD reg16,imm' or 'ADD reg32,imm.' Also optimization of signed byte form of 'PUSH imm' and 'IMUL reg,imm'/'IMUL reg,reg,imm.' No size specification is needed.} \item{Added multi-pass JMP and Jcc offset optimization. Offsets on forward references will preferentially use the short form, without the need to code a specific size (short or near) for the branch. Added instructions for 'Jcc label' to use the form 'Jnotcc \$+3/JMP label', in cases where a short offset is out of bounds. If compiling for a 386 or higher CPU, then the 386 form of Jcc will be used instead. This feature is controlled by a new command-line switch: "O", (upper case letter O). "-O0" reverts the assembler to no extra optimization passes, "-O1" allows up to 5 extra passes, and "-O2"(default), allows up to 10 extra optimization passes.} \item{Added a new directive: 'cpu XXX', where XXX is any of: 8086, 186, 286, 386, 486, 586, pentium, 686, PPro, P2, P3 or Katmai. All are case insensitive. All instructions will be selected only if they apply to the selected cpu or lower. Corrected a couple of bugs in cpu-dependence in 'insns.dat'.} \item{Added to 'standard.mac', the "use16" and "use32" forms of the "bits 16/32" directive. This is nothing new, just conforms to a lot of other assemblers. (minor)} \item{Changed label allocation from 320/32 (10000 labels @ 200K+) to 32/37 (1000 labels); makes running under DOS much easier. Since additional label space is allocated dynamically, this should have no effect on large programs with lots of labels. The 37 is a prime, believed to be better for hashing. (minor)} \end{itemize} \xsubsection{cl-0.98.03}{Version 0.98.03} "Integrated patchfile 0.98-0.98.01. I call this version 0.98.03 for historical reasons: 0.98.02 was trashed." --John Coffman , 27-Jul-2000 \begin{itemize} \item{Kendall Bennett's SciTech MGL changes} \item{Note that you must define "TASM\_COMPAT" at compile-time to get the Tasm Ideal Mode compatibility.} \item{All changes can be compiled in and out using the TASM\_COMPAT macros, and when compiled without TASM\_COMPAT defined we get the exact same binary as the unmodified 0.98 sources.} \item{standard.mac, macros.c: Added macros to ignore TASM directives before first include} \item{nasm.h: Added extern declaration for tasm\_compatible\_mode} \item{nasm.c: Added global variable tasm\_compatible\_mode} \item{Added command line switch for TASM compatible mode (-t)} \item{Changed version command line to reflect when compiled with TASM additions} \item{Added response file processing to allow all arguments on a single line (response file is @resp rather than -@resp for NASM format).} \item{labels.c: Changes islocal() macro to support TASM style @@local labels.} \item{Added islocalchar() macro to support TASM style @@local labels.} \item{parser.c: Added support for TASM style memory references (ie: mov [DWORD eax],10 rather than the NASM style mov DWORD [eax],10).} \item{preproc.c: Added new directives, \code{\%arg}, \code{\%local}, \code{\%stacksize} to directives table} \item{Added support for TASM style directives without a leading \% symbol.} \item{Integrated a block of changes from Andrew Zabolotny :} \item{A new keyword \code{\%xdefine} and its case-insensitive counterpart \code{\%ixdefine}. They work almost the same way as \code{\%define} and \code{\%idefine} but expand the definition immediately, not on the invocation. Something like a cross between \code{\%define} and \code{\%assign}. The "x" suffix stands for "eXpand", so "xdefine" can be deciphered as "expand-and-define". Thus you can do things like this: \begin{lstlisting} %assign ofs 0 %macro arg 1 %xdefine %1 dword [esp+ofs] %assign ofs ofs+4 %endmacro \end{lstlisting}} \item{Changed the place where the expansion of \%\$name macros are expanded. Now they are converted into ..@ctxnum.name form when detokenizing, so there are no quirks as before when using \%\$name arguments to macros, in macros etc. For example: \begin{lstlisting} %macro abc 1 %define %1 hello %endm abc %$here %$here \end{lstlisting} Now last line will be expanded into "hello" as expected. This also allows for lots of goodies, a good example are extended "proc" macros included in this archive.} \item{Added a check for "cstk" in smacro\_defined() before calling get\_ctx() - this allows for things like: \begin{lstlisting} %ifdef %$abc %endif \end{lstlisting} work without warnings even in no context.} \item{Added a check for "cstk" in \%if*ctx and \%elif*ctx directives - this allows to use \code{\%ifctx} without excessive warnings. If there is no active context, \code{\%ifctx} goes through "false" branch.} \item{Removed "user error: " prefix with \code{\%error} directive: it just clobbers the output and has absolutely no functionality. Besides, this allows to write macros that does not differ from built-in functions in any way.} \item{Added expansion of string that is output by \code{\%error} directive. Now you can do things like: \begin{lstlisting} %define hello(x) Hello, x! %define %$name andy %error "hello(%$name)" \end{lstlisting} Same happened with \code{\%include} directive.} \item{Now all directives that expect an identifier will try to expand and concatenate everything without whitespaces in between before usage. For example, with "unfixed" nasm the commands \begin{lstlisting} %define %$abc hello %define __%$abc goodbye __%$abc \end{lstlisting} would produce "incorrect" output: last line will expand to \begin{lstlisting} hello goodbyehello \end{lstlisting} Not quite what you expected, eh? :-) The answer is that preprocessor treats the \code{\%define} construct as if it would be \begin{lstlisting} %define __ %$abc goodbye \end{lstlisting} (note the white space between \_\_ and \%\$abc). After my "fix" it will "correctly" expand into \begin{lstlisting} goodbye \end{lstlisting} as expected. Note that I use quotes around words "correct", "incorrect" etc because this is rather a feature not a bug; however current behaviour is more logical (and allows more advanced macro usage :-). Same change was applied to: \code{\%push},\code{\%macro},\code{\%imacro}, \code{\%define},\code{\%idefine},\code{\%xdefine},\code{\%ixdefine}, \code{\%assign},\code{\%iassign},\code{\%undef}} \item{A new directive \code{[WARNING {+|-}warning-id]} have been added. It works only if the assembly phase is enabled (i.e. it doesn't work with nasm -e).} \item{A new warning type: macro-selfref. By default this warning is disabled; when enabled NASM warns when a macro self-references itself; for example the following source: \begin{lstlisting} [WARNING macro-selfref] %macro push 1-* %rep %0 push %1 %rotate 1 %endrep %endmacro push eax,ebx,ecx \end{lstlisting} will produce a warning, but if we remove the first line we won't see it anymore (which is The Right Thing To Do \texttrademark IMHO since C preprocessor eats such constructs without warnings at all).} \item{Added a "error" routine to preprocessor which always will set ERR\_PASS1 bit in severity\_code. This removes annoying repeated errors on first and second passes from preprocessor.} \item{Added the \%+ operator in single-line macros for concatenating two identifiers. Usage example: \begin{lstlisting} %define _myfunc _otherfunc %define cextern(x) _ %+ x cextern (myfunc) \end{lstlisting} After first expansion, third line will become "\_myfunc". After this expansion is performed again so it becomes "\_otherunc".} \item{Now if preprocessor is in a non-emitting state, no warning or error will be emitted. Example: \begin{lstlisting} %if 1 mov eax,ebx %else put anything you want between these two brackets, even macro-parameter references %1 or local labels %$zz or macro-local labels %%zz - no warning will be emitted. %endif \end{lstlisting}} \item{Context-local variables on expansion as a last resort are looked up in outer contexts. For example, the following piece: \begin{lstlisting} %push outer %define %$a [esp] %push inner %$a %pop %pop \end{lstlisting} will expand correctly the fourth line to [esp]; if we'll define another \%\$a inside the "inner" context, it will take precedence over outer definition. However, this modification has been applied only to expand\_smacro and not to smacro\_define: as a consequence expansion looks in outer contexts, but \code{\%ifdef} won't look in outer contexts. This behaviour is needed because we don't want nested contexts to act on already defined local macros. Example: \begin{lstlisting} %define %$arg1 [esp+4] test eax,eax if nz mov eax,%$arg1 endif \end{lstlisting} In this example the "if" mmacro enters into the "if" context, so \%\$arg1 is not valid anymore inside "if". Of course it could be worked around by using explicitely \%\$\$arg1 but this is ugly IMHO.} \item{Fixed memory leak in \code{\%undef}. The origline wasn't freed before exiting on success.} \item{Fixed trap in preprocessor when line expanded to empty set of tokens. This happens, for example, in the following case: \begin{lstlisting} #define SOMETHING SOMETHING \end{lstlisting}} \end{itemize} \xsubsection{cl-0.98}{Version 0.98} All changes since NASM 0.98p3 have been produced by H. Peter Anvin . \begin{itemize} \item{The documentation comment delimiter is \code{\textbackslash \#} not \code{\#}.} \item{Allow EQU definitions to refer to external labels; reported by Pedro Gimeno.} \item{Re-enable support for RDOFF v1; reported by Pedro Gimeno.} \item{Updated License file per OK from Simon and Julian.} \end{itemize} \xsubsection{cl-0.98p9}{Version 0.98p9} \begin{itemize} \item{Update documentation (although the instruction set reference will have to wait; I don't want to hold up the 0.98 release for it.)} \item{Verified that the NASM implementation of the PEXTRW and PMOVMSKB instructions is correct. The encoding differs from what the Intel manuals document, but the Pentium III behaviour matches NASM, not the Intel manuals.} \item{Fix handling of implicit sizes in PSHUFW and PINSRW, reported by Stefan Hoffmeister.} \item{Resurrect the -s option, which was removed when changing the diagnostic output to stdout.} \end{itemize} \xsubsection{cl-0.98p8}{Version 0.98p8} \begin{itemize} \item{Fix for "DB" when NASM is running on a bigendian machine.} \item{Invoke insns.pl once for each output script, making Makefile.in legal for "make -j".} \item{Improve the Unix configure-based makefiles to make package creation easier.} \item{Included an RPM .spec file for building RPM (RedHat Package Manager) packages on Linux or Unix systems.} \item{Fix Makefile dependency problems.} \item{Change src/rdsrc.pl to include sectioning information in info output; required for install-info to work.} \item{Updated the RDOFF distribution to version 2 from Jules; minor massaging to make it compile in my environment.} \item{Split doc files that can be built by anyone with a Perl interpreter off into a separate archive.} \item{"Dress rehearsal" release!} \end{itemize} \xsubsection{cl-0.98p7}{Version 0.98p7} \begin{itemize} \item{Fixed opcodes with a third byte-sized immediate argument to not complain if given "byte" on the immediate.} \item{Allow \code{\%undef} to remove single-line macros with arguments. This matches the behaviour of \#undef in the C preprocessor.} \item{Allow -d, -u, -i and -p to be specified as -D, -U, -I and -P for compatibility with most C compilers and preprocessors. This allows Makefile options to be shared between cc and nasm, for example.} \item{Minor cleanups.} \item{Went through the list of Katmai instructions and hopefully fixed the (rather few) mistakes in it.} \item{(Hopefully) fixed a number of disassembler bugs related to ambiguous instructions (disambiguated by -p) and SSE instructions with REP.} \item{Fix for bug reported by Mark Junger: "call dword 0x12345678" should work and may add an OSP (affected CALL, JMP, Jcc).} \item{Fix for environments when "stderr" isn't a compile-time constant.} \end{itemize} \xsubsection{cl-0.98p6}{Version 0.98p6} \begin{itemize} \item{Took officially over coordination of the 0.98 release; so drop the p3.x notation. Skipped p4 and p5 to avoid confusion with John Fine's J4 and J5 releases.} \item{Update the documentation; however, it still doesn't include documentation for the various new instructions. I somehow wonder if it makes sense to have an instruction set reference in the assembler manual when Intel et al have PDF versions of their manuals online.} \item{Recognize "idt" or "centaur" for the -p option to ndisasm.} \item{Changed error messages back to stderr where they belong, but add an -E option to redirect them elsewhere (the DOS shell cannot redirect stderr.)} \item{-M option to generate Makefile dependencies (based on code from Alex Verstak.)} \item{\code{\%undef} preprocessor directive, and -u option, that undefines a single-line macro.} \item{OS/2 Makefile (Mkfiles/Makefile.os2) for Borland under OS/2; from Chuck Crayne.} \item{Various minor bugfixes (reported by): - Dangling \code{\%s} in preproc.c (Martin Junker)} \item{THERE ARE KNOWN BUGS IN SSE AND THE OTHER KATMAI INSTRUCTIONS. I am on a trip and didn't bring the Katmai instruction reference, so I can't work on them right now.} \item{Updated the License file per agreement with Simon and Jules to include a GPL distribution clause.} \end{itemize} \xsubsection{cl-0.98p3.7}{Version 0.98p3.7} \begin{itemize} \item{(Hopefully) fixed the canned Makefiles to include the outrdf2 and zoutieee modules.} \item{Renamed changes.asm to changed.asm.} \end{itemize} \xsubsection{cl-0.98p3.6}{Version 0.98p3.6} \begin{itemize} \item{Fixed a bunch of instructions that were added in 0.98p3.5 which had memory operands, and the address-size prefix was missing from the instruction pattern.} \end{itemize} \xsubsection{cl-0.98p3.5}{Version 0.98p3.5} \begin{itemize} \item{Merged in changes from John S. Fine's 0.98-J5 release. John's based 0.98-J5 on my 0.98p3.3 release; this merges the changes.} \item{Expanded the instructions flag field to a long so we can fit more flags; mark SSE (KNI) and AMD or Katmai-specific instructions as such.} \item{Fix the "PRIV" flag on a bunch of instructions, and create new "PROT" flag for protected-mode-only instructions (orthogonal to if the instruction is privileged!) and new "SMM" flag for SMM-only instructions.} \item{Added AMD-only SYSCALL and SYSRET instructions.} \item{Make SSE actually work, and add new Katmai MMX instructions.} \item{Added a -p (preferred vendor) option to ndisasm so that it can distinguish e.g. Cyrix opcodes also used in SSE. For example: \begin{lstlisting} ndisasm -p cyrix aliased.bin 00000000 670F514310 paddsiw mm0,[ebx+0x10] 00000005 670F514320 paddsiw mm0,[ebx+0x20] ndisasm -p intel aliased.bin 00000000 670F514310 sqrtps xmm0,[ebx+0x10] 00000005 670F514320 sqrtps xmm0,[ebx+0x20] \end{lstlisting}} \item{Added a bunch of Cyrix-specific instructions.} \end{itemize} \xsubsection{cl-0.98p3.4}{Version 0.98p3.4} \begin{itemize} \item{Made at least an attempt to modify all the additional Makefiles (in the Mkfiles directory). I can't test it, but this was the best I could do.} \item{DOS DJGPP+"Opus Make" Makefile from John S. Fine.} \item{changes.asm changes from John S. Fine.} \end{itemize} \xsubsection{cl-0.98p3.3}{Version 0.98p3.3} \begin{itemize} \item{Patch from Conan Brink to allow nesting of \code{\%rep} directives.} \item{If we're going to allow INT01 as an alias for INT1/ICEBP (one of Jules 0.98p3 changes), then we should allow INT03 as an alias for INT3 as well.} \item{Updated changes.asm to include the latest changes.} \item{Tried to clean up the s that had snuck in from a DOS/Windows environment into my Unix environment, and try to make sure than DOS/Windows users get them back.} \item{We would silently generate broken tools if insns.dat wasn't sorted properly. Change insns.pl so that the order doesn't matter.} \item{Fix bug in insns.pl (introduced by me) which would cause conditional instructions to have an extra "cc" in disassembly, e.g. "jnz" disassembled as "jccnz".} \end{itemize} \xsubsection{cl-0.98p3.2}{Version 0.98p3.2} \begin{itemize} \item{Merged in John S. Fine's changes from his 0.98-J4 prerelease; see http://www.csoft.net/cz/johnfine/} \item{Changed previous "spotless" Makefile target (appropriate for distribution) to "distclean", and added "cleaner" target which is same as "clean" except deletes files generated by Perl scripts; "spotless" is union.} \item{Removed BASIC programs from distribution. Get a Perl interpreter instead (see below.)} \item{Calling this "pre-release 3.2" rather than "p3-hpa2" because of John's contributions.} \item{Actually link in the IEEE output format (zoutieee.c); fix a bunch of compiler warnings in that file. Note I don't know what IEEE output is supposed to look like, so these changes were made "blind".} \end{itemize} \xsubsection{cl-0.98p3-hpa}{Version 0.98p3-hpa} \begin{itemize} \item{Merged nasm098p3.zip with nasm-0.97.tar.gz to create a fully buildable version for Unix systems (Makefile.in updates, etc.)} \item{Changed insns.pl to create the instruction tables in nasm.h and names.c, so that a new instruction can be added by adding it *only* to insns.dat.} \item{Added the following new instructions: SYSENTER, SYSEXIT, FXSAVE, FXRSTOR, UD1, UD2 (the latter two are two opcodes that Intel guarantee will never be used; one of them is documented as UD2 in Intel documentation, the other one just as "Undefined Opcode" -- calling it UD1 seemed to make sense.)} \item{MAX\_SYMBOL was defined to be 9, but LOADALL286 and LOADALL386 are 10 characters long. Now MAX\_SYMBOL is derived from insns.dat.} \item{A note on the BASIC programs included: forget them. insns.bas is already out of date. Get yourself a Perl interpreter for your platform of choice at \href{http://www.cpan.org/ports/index.html} {http://www.cpan.org/ports/index.html}.} \end{itemize} \xsubsection{cl-0.98p3}{Version 0.98 pre-release 3} \begin{itemize} \item{added response file support, improved command line handling, new layout help screen} \item{fixed limit checking bug, 'OUT byte nn, reg' bug, and a couple of rdoff related bugs, updated Wishlist; 0.98 Prerelease 3.} \end{itemize} \xsubsection{cl-0.98p2}{Version 0.98 pre-release 2} \begin{itemize} \item{fixed bug in outcoff.c to do with truncating section names longer than 8 characters, referencing beyond end of string; 0.98 pre-release 2} \end{itemize} \xsubsection{cl-0.98p1}{Version 0.98 pre-release 1} \begin{itemize} \item{Fixed a bug whereby STRUC didn't work at all in RDF.} \item{Fixed a problem with group specification in PUBDEFs in OBJ.} \item{Improved ease of adding new output formats. Contribution due to Fox Cutter.} \item{Fixed a bug in relocations in the bin' format: was showing up when a relocatable reference crossed an 8192-byte boundary in any output section.} \item{Fixed a bug in local labels: local-label lookups were inconsistent between passes one and two if an EQU occurred between the definition of a global label and the subsequent use of a local label local to that global.} \item{Fixed a seg-fault in the preprocessor (again) which happened when you use a blank line as the first line of a multi-line macro definition and then defined a label on the same line as a call to that macro.} \item{Fixed a stale-pointer bug in the handling of the NASM environment variable. Thanks to Thomas McWilliams.} \item{ELF had a hard limit on the number of sections which caused segfaults when transgressed. Fixed.} \item{Added ability for ndisasm to read from stdin by using -' as the filename.} \item{ndisasm wasn't outputting the TO keyword. Fixed.} \item{Fixed error cascade on bogus expression in \code{\%if} - an error in evaluation was causing the entire \code{\%if} to be discarded, thus creating trouble later when the \code{\%else} or \code{\%endif} was encountered.} \item{Forward reference tracking was instruction-granular not operand- granular, which was causing 286-specific code to be generated needlessly on code of the form shr word [forwardref],1'. Thanks to Jim Hague for sending a patch.} \item{All messages now appear on stdout, as sending them to stderr serves no useful purpose other than to make redirection difficult.} \item{Fixed the problem with EQUs pointing to an external symbol - this now generates an error message.} \item{Allowed multiple size prefixes to an operand, of which only the first is taken into account.} \item{Incorporated John Fine's changes, including fixes of a large number of preprocessor bugs, some small problems in OBJ, and a reworking of label handling to define labels before their line is assembled, rather than after.} \item{Reformatted a lot of the source code to be more readable. Included 'coding.txt' as a guideline for how to format code for contributors.} \item{Stopped nested \code{\%reps} causing a panic - they now cause a slightly more friendly error message instead.} \item{Fixed floating point constant problems (patch by Pedro Gimeno)} \item{Fixed the return value of insn\_size() not being checked for -1, indicating an error.} \item{Incorporated 3Dnow! instructions.} \item{Fixed the 'mov eax, eax + ebx' bug.} \item{Fixed the GLOBAL EQU bug in ELF. Released developers release 3.} \item{Incorporated John Fine's command line parsing changes} \item{Incorporated David Lindauer's OMF debug support} \item{Made changes for LCC 4.0 support (\code{\_\_NASM\_CDecl\_\_}, removed register size specification warning when sizes agree).} \end{itemize} \xsection{cl-0.9x}{NASM 0.9 Series} Revisions before 0.98. \xsubsection{cl-0.97}{Version 0.97 released December 1997} \begin{itemize} \item{This was entirely a bug-fix release to 0.96, which seems to have got cursed. Silly me.} \item{Fixed stupid mistake in OBJ which caused MOV EAX,' to fail. Caused by an error in the MOV EAX,' support.} \item{ndisasm hung at EOF when compiled with lcc on Linux because lcc on Linux somehow breaks feof(). ndisasm now does not rely on feof().} \item{A heading in the documentation was missing due to a markup error in the indexing. Fixed.} \item{Fixed failure to update all pointers on realloc() within extended- operand code in parser.c. Was causing wrong behaviour and seg faults on lines such as dd 0.0,0.0,0.0,0.0,...'} \item{Fixed a subtle preprocessor bug whereby invoking one multi-line macro on the first line of the expansion of another, when the second had been invoked with a label defined before it, didn't expand the inner macro.} \item{Added internal.doc back in to the distribution archives - it was missing in 0.96 *blush*} \item{Fixed bug causing 0.96 to be unable to assemble its own test files, specifically objtest.asm. *blush again*} \item{Fixed seg-faults and bogus error messages caused by mismatching \code{\%rep} and \code{\%endrep} within multi-line macro definitions.} \item{Fixed a problem with buffer overrun in OBJ, which was causing corruption at ends of long PUBDEF records.} \item{Separated DOS archives into main-program and documentation to reduce download size.} \end{itemize} \xsubsection{cl-0.96}{Version 0.96 released November 1997} \begin{itemize} \item{Fixed a bug whereby, if nasm sourcefile' would cause a filename collision warning and put output into nasm.out', then nasm sourcefile -o outputfile' still gave the warning even though the -o' was honoured. Fixed name pollution under Digital UNIX: one of its header files defined R\_SP, which broke the enum in nasm.h.} \item{Fixed minor instruction table problems: FUCOM and FUCOMP didn't have two-operand forms; NDISASM didn't recognise the longer register forms of PUSH and POP (eg FF F3 for PUSH BX); TEST mem,imm32 was flagged as undocumented; the 32-bit forms of CMOV had 16-bit operand size prefixes; AAD imm' and AAM imm' are no longer flagged as undocumented because the Intel Architecture reference documents them.} \item{Fixed a problem with the local-label mechanism, whereby strange types of symbol (EQUs, auto-defined OBJ segment base symbols) interfered with the previous global label' value and screwed up local labels.} \item{Fixed a bug whereby the stub preprocessor didn't communicate with the listing file generator, so that the -a and -l options in conjunction would produce a useless listing file.} \item{Merged os2' object file format back into obj', after discovering that obj' \emph{also} shouldn't have a link pass separator in a module containing a non-trivial MODEND. Flat segments are now declared using the FLAT attribute. os2' is no longer a valid object format name: use obj'.} \item{Removed the fixed-size temporary storage in the evaluator. Very very long expressions (like mov ax,1+1+1+1+...' for two hundred 1s or so) should now no longer crash NASM.} \item{Fixed a bug involving segfaults on disassembly of MMX instructions, by changing the meaning of one of the operand-type flags in nasm.h. This may cause other apparently unrelated MMX problems; it needs to be tested thoroughly.} \item{Fixed some buffer overrun problems with large OBJ output files. Thanks to DJ Delorie for the bug report and fix.} \item{Made preprocess-only mode actually listen to the \code{\%line} markers as it prints them, so that it can report errors more sanely.} \item{Re-designed the evaluator to keep more sensible track of expressions involving forward references: can now cope with previously-nightmare situations such as: \begin{lstlisting} mov ax,foo | bar foo equ 1 bar equ 2 \end{lstlisting}} \item{Added the ALIGN and ALIGNB standard macros.} \item{Added PIC support in ELF: use of WRT to obtain the four extra relocation types needed.} \item{Added the ability for output file formats to define their own extensions to the GLOBAL, COMMON and EXTERN directives.} \item{Implemented common-variable alignment, and global-symbol type and size declarations, in ELF.} \item{Implemented NEAR and FAR keywords for common variables, plus far-common element size specification, in OBJ.} \item{Added a feature whereby EXTERNs and COMMONs in OBJ can be given a default WRT specification (either a segment or a group).} \item{Transformed the Unix NASM archive into an auto-configuring package.} \item{Added a sanity-check for people applying SEG to things which are already segment bases: this previously went unnoticed by the SEG processing and caused OBJ-driver panics later.} \item{Added the ability, in OBJ format, to deal with MOV EAX,' type references: OBJ doesn't directly support dword-size segment base fixups, but as long as the low two bytes of the constant term are zero, a word-size fixup can be generated instead and it will work.} \item{Added the ability to specify sections' alignment requirements in Win32 object files and pure binary files.} \item{Added preprocess-time expression evaluation: the \code{\%assign} (and \code{\%iassign}) directive and the bare \code{\%if} (and \code{\%elif}) conditional. Added relational operators to the evaluator, for use only in \code{\%if} constructs: the standard relationals = < > <= >= <> (and C-like synonyms == and !=) plus low-precedence logical operators \&\&, \textasciicircum \textasciicircum and ||.} \item{Added a preprocessor repeat construct: \code{\%rep}, \code{\%exitrep}, \code{\%endrep}.} \item{Added the \_\_FILE\_\_ and \_\_LINE\_\_ standard macros.} \item{Added a sanity check for number constants being greater than 0xFFFFFFFF. The warning can be disabled.} \item{Added the \%0 token whereby a variadic multi-line macro can tell how many parameters it's been given in a specific invocation.} \item{Added \code{\%rotate}, allowing multi-line macro parameters to be cycled.} \item{Added the *' option for the maximum parameter count on multi-line macros, allowing them to take arbitrarily many parameters.} \item{Added the ability for the user-level forms of EXTERN, GLOBAL and COMMON to take more than one argument.} \item{Added the IMPORT and EXPORT directives in OBJ format, to deal with Windows DLLs.} \item{Added some more preprocessor \code{\%if} constructs: \code{\%ifidn}, \code{\%ifidni} (exact textual identity), and \code{\%ifid}, \code{\%ifnum}, \code{\%ifstr} (token type testing).} \item{Added the ability to distinguish SHL AX,1 (the 8086 version) from SHL AX,BYTE 1 (the 286-and-upwards version whose constant happens to be 1).} \item{Added NetBSD/FreeBSD/OpenBSD's variant of a.out format, complete with PIC shared library features.} \item{Changed NASM's idiosyncratic handling of FCLEX, FDISI, FENI, FINIT, FSAVE, FSTCW, FSTENV, and FSTSW to bring it into line with the otherwise accepted standard. The previous behaviour, though it was a deliberate feature, was a deliberate feature based on a misunderstanding. Apologies for the inconvenience.} \item{Improved the flexibility of ABSOLUTE: you can now give it an expression rather than being restricted to a constant, and it can take relocatable arguments as well.} \item{Added the ability for a variable to be declared as EXTERN multiple times, and the subsequent definitions are just ignored.} \item{We now allow instruction prefixes (CS, DS, LOCK, REPZ etc) to be alone on a line (without a following instruction).} \item{Improved sanity checks on whether the arguments to EXTERN, GLOBAL and COMMON are valid identifiers.} \item{Added misc/exebin.mac to allow direct generation of .EXE files by hacking up an EXE header using DB and DW; also added test/binexe.asm to demonstrate the use of this. Thanks to Yann Guidon for contributing the EXE header code.} \item{ndisasm forgot to check whether the input file had been successfully opened. Now it does. Doh!} \item{Added the Cyrix extensions to the MMX instruction set.} \item{Added a hinting mechanism to allow [EAX+EBX] and [EBX+EAX] to be assembled differently. This is important since [ESI+EBP] and [EBP+ESI] have different default base segment registers.} \item{Added support for the PharLap OMF extension for 4096-byte segment alignment.} \end{itemize} \xsubsection{cl-0.95}{Version 0.95 released July 1997} \begin{itemize} \item{Fixed yet another ELF bug. This one manifested if the user relied on the default segment, and attempted to define global symbols without first explicitly declaring the target segment.} \item{Added makefiles (for NASM and the RDF tools) to build Win32 console apps under Symantec C++. Donated by Mark Junker.} \item{Added macros.bas' and insns.bas', QBasic versions of the Perl scripts that convert standard.mac' to macros.c' and convert insns.dat' to insnsa.c' and insnsd.c'. Also thanks to Mark Junker.} \item{Changed the diassembled forms of the conditional instructions so that JB is now emitted as JC, and other similar changes. Suggested list by Ulrich Doewich.} \item{Added @' to the list of valid characters to begin an identifier with.} \item{Documentary changes, notably the addition of the Common Problems' section in nasm.doc.} \item{Fixed a bug relating to 32-bit PC-relative fixups in OBJ.} \item{Fixed a bug in perm\_copy() in labels.c which was causing exceptions in cleanup\_labels() on some systems.} \item{Positivity sanity check in TIMES argument changed from a warning to an error following a further complaint.} \item{Changed the acceptable limits on byte and word operands to allow things like \textasciitilde 10111001b' to work.} \item{Fixed a major problem in the preprocessor which caused seg-faults if macro definitions contained blank lines or comment-only lines.} \item{Fixed inadequate error checking on the commas separating the arguments to db', dw' etc.} \item{Fixed a crippling bug in the handling of macros with operand counts defined with a +' modifier.} \item{Fixed a bug whereby object file formats which stored the input file name in the output file (such as OBJ and COFF) weren't doing so correctly when the output file name was specified on the command line.} \item{Removed [INC] and [INCLUDE] support for good, since they were obsolete anyway.} \item{Fixed a bug in OBJ which caused all fixups to be output in 16-bit (old-format) FIXUPP records, rather than putting the 32-bit ones in FIXUPP32 (new-format) records.} \item{Added, tentatively, OS/2 object file support (as a minor variant on OBJ).} \item{Updates to Fox Cutter's Borland C makefile, Makefile.bc2.} \item{Removed a spurious second fclose() on the output file.} \item{Added the -s' command line option to redirect all messages which would go to stderr (errors, help text) to stdout instead.} \item{Added the -w' command line option to selectively suppress some classes of assembly warning messages.} \item{Added the -p' pre-include and -d' pre-define command-line options.} \item{Added an include file search path: the -i' command line option.} \item{Fixed a silly little preprocessor bug whereby starting a line with a \%!' environment-variable reference caused an unknown directive' error.} \item{Added the long-awaited listing file support: the -l' command line option.} \item{Fixed a problem with OBJ format whereby, in the absence of any explicit segment definition, non-global symbols declared in the implicit default segment generated spurious EXTDEF records in the output.} \item{Added the NASM environment variable.} \item{From this version forward, Win32 console-mode binaries will be included in the DOS distribution in addition to the 16-bit binaries. Added Makefile.vc for this purpose.} \item{Added return 0;' to test/objlink.c to prevent compiler warnings.} \item{Added the \_\_NASM\_MAJOR\_\_ and \_\_NASM\_MINOR\_\_ standard defines.} \item{Added an alternative memory-reference syntax in which prefixing an operand with \&' is equivalent to enclosing it in square brackets, at the request of Fox Cutter.} \item{Errors in pass two now cause the program to return a non-zero error code, which they didn't before.} \item{Fixed the single-line macro cycle detection, which didn't work at all on macros with no parameters (caused an infinite loop). Also changed the behaviour of single-line macro cycle detection to work like cpp, so that macros like extrn' as given in the documentation can be implemented.} \item{Fixed the implementation of WRT, which was too restrictive in that you couldn't do mov ax,[di+abc wrt dgroup]' because (di+abc) wasn't a relocatable reference.} \end{itemize} \xsubsection{cl-0.94}{Version 0.94 released April 1997} \begin{itemize} \item{Major item: added the macro processor.} \item{Added undocumented instructions SMI, IBTS, XBTS and LOADALL286. Also reorganised CMPXCHG instruction into early-486 and Pentium forms. Thanks to Thobias Jones for the information.} \item{Fixed two more stupid bugs in ELF, which were causing ld' to continue to seg-fault in a lot of non-trivial cases.} \item{Fixed a seg-fault in the label manager.} \item{Stopped FBLD and FBSTP from \emph{requiring} the TWORD keyword, which is the only option for BCD loads/stores in any case.} \item{Ensured FLDCW, FSTCW and FSTSW can cope with the WORD keyword, if anyone bothers to provide it. Previously they complained unless no keyword at all was present.} \item{Some forms of FDIV/FDIVR and FSUB/FSUBR were still inverted: a vestige of a bug that I thought had been fixed in 0.92. This was fixed, hopefully for good this time...} \item{Another minor phase error (insofar as a phase error can \emph{ever} be minor) fixed, this one occurring in code of the form \begin{lstlisting} rol ax,forward_reference forward_reference equ 1 \end{lstlisting}} \item{The number supplied to TIMES is now sanity-checked for positivity, and also may be greater than 64K (which previously didn't work on 16-bit systems).} \item{Added Watcom C makefiles, and misc/pmw.bat, donated by Dominik Behr.} \item{Added the INCBIN pseudo-opcode.} \item{Due to the advent of the preprocessor, the [INCLUDE] and [INC] directives have become obsolete. They are still supported in this version, with a warning, but won't be in the next.} \item{Fixed a bug in OBJ format, which caused incorrect object records to be output when absolute labels were made global.} \item{Updates to RDOFF subdirectory, and changes to outrdf.c.} \end{itemize} \xsubsection{cl-0.93}{Version 0.93 released January 1997} This release went out in a great hurry after semi-crippling bugs were found in 0.92. \begin{itemize} \item{Really \emph{did} fix the stack overflows this time. *blush*} \item{Had problems with EA instruction sizes changing between passes, when an offset contained a forward reference and so 4 bytes were allocated for the offset in pass one; by pass two the symbol had been defined and happened to be a small absolute value, so only 1 byte got allocated, causing instruction size mismatch between passes and hence incorrect address calculations. Fixed.} \item{Stupid bug in the revised ELF section generation fixed (associated string-table section for .symtab was hard-coded as 7, even when this didn't fit with the real section table). Was causing ld' to seg-fault under Linux.} \item{Included a new Borland C makefile, Makefile.bc2, donated by Fox Cutter .} \end{itemize} \xsubsection{cl-0.92}{Version 0.92 released January 1997} \begin{itemize} \item{The FDIVP/FDIVRP and FSUBP/FSUBRP pairs had been inverted: this was fixed. This also affected the LCC driver.} \item{Fixed a bug regarding 32-bit effective addresses of the form \code{[other\_register+ESP]}.} \item{Documentary changes, notably documentation of the fact that Borland Win32 compilers use obj' rather than win32' object format.} \item{Fixed the COMENT record in OBJ files, which was formatted incorrectly.} \item{Fixed a bug causing segfaults in large RDF files.} \item{OBJ format now strips initial periods from segment and group definitions, in order to avoid complications with the local label syntax.} \item{Fixed a bug in disassembling far calls and jumps in NDISASM.} \item{Added support for user-defined sections in COFF and ELF files.} \item{Compiled the DOS binaries with a sensible amount of stack, to prevent stack overflows on any arithmetic expression containing parentheses.} \item{Fixed a bug in handling of files that do not terminate in a newline.} \end{itemize} \xsubsection{cl-0.91}{Version 0.91 released November 1996} \begin{itemize} \item{Loads of bug fixes.} \item{Support for RDF added.} \item{Support for DBG debugging format added.} \item{Support for 32-bit extensions to Microsoft OBJ format added.} \item{Revised for Borland C: some variable names changed, makefile added.} \item{LCC support revised to actually work.} \item{JMP/CALL NEAR/FAR notation added.} \item{a16', o16', a32' and o32' prefixes added.} \item{Range checking on short jumps implemented.} \item{MMX instruction support added.} \item{Negative floating point constant support added.} \item{Memory handling improved to bypass 64K barrier under DOS.} \item{\code{\\$} prefix to force treatment of reserved words as identifiers added.} \item{Default-size mechanism for object formats added.} \item{Compile-time configurability added.} \item{\code{\#}, \code{\@}, \code{\textasciitilde} and \code{?} are now valid characters in labels.} \item{\code{-e} and \code{-k} options in NDISASM added.} \end{itemize} \xsubsection{cl-0.90} Version 0.90 released October 1996 First release version. First support for object file output. Other changes from previous version (0.3x) too numerous to document.