Open Watcom Assembler Explained

Author:Open Watcom Assembler
Operating System:DOS for x86-based PCs, Microsoft Windows, Linux for x86-based PCs, OS/2 for x86-based PCs, FreeBSD for x86-based PCs.

Open Watcom Assembler or WASM is an x86 assembler produced by Watcom, based on the Watcom Assembler found in Watcom C/C++ compiler and Watcom FORTRAN 77.[1] [2] [3] Further development is being done on the 32- and 64-bit JWASM project,[4] which more closely matches the syntax of Microsoft's assembler.

There are experimental assemblers for PowerPC, Alpha AXP, and MIPS.

Technical details

Assembler

Disassembler

There is an associated Watcom disassembler, wdis. The assembler does not have listing facilities; instead the use of wdis for generating listings is recommended.[6] wdis can read OMF, COFF and ELF object files and PE and ELF executables. It supports 16-bit and 32-bit x86 instruction set including MMX, 3DNow!, SSE, SSE2, and SSE3. Support for PowerPC, Alpha AXP, MIPS, and SPARC V8 instruction sets is also built in.[7]

WASM forks

JWasm

JWasm is a fork of Wasm originated by Japheth with following features:

Japheth ceased development (or rather, was out of contact) of JWASM in January 2014 with version 2.12pre, but others on the Masm32 forum[9] picked up where Japheth left off.

HJWasm

HJWasm, adding the prefix H in reference to Masm32 forum member Habran who started off this second WASM development continuation. Version 2.13pre was originally announced in 2016.[10] New features include:

MOVQ and added in 2.13, to supplement MOVD.

VGATHERDPD, VGATHERQPD, VGATHERDPS, VGATHERQPS, VPGATHERDD, VPGATHERQD, VPGATHERDQ, VPGATHERQQ, VEX-encoded general purpose instructions added in 2.13. Remaining instructions added in 2.16.

VCMPxxPD, VCMPxxPS, VCMPxxSD, VCMPxxPD, VCMPxxSS, AVX-512F set, EVEX-encoded instructions added in 2.13; VMOVQ added 2.13, to supplement MOVD. Remaining instructions added in 2.16.

Added in 2.31.

HASM

HASM is a renamed version of HJWASM, starting in version 2.33. The name was used following a MASM Forum discussion thread that originally proposed a replacement name. The name HASM was proposed by forum member habran in Reply #6,[11] and was finalized at the end of discussion thread at Reply #33.[12] No known features are added in HASM's release cycle.

UASM

The name was actually used in version 2.33 (dated 2017-05-20) at Terraspace ltd's product page,[13] but it was only announced in version 2.34.[14] Changes to HJWASM includes:[15]

VAESDEC added in 2.38

ADCX, ADOX added in 2.38

Support of BND prefix added in 2.34. BND prefix removed from JCXZ instruction group in 2.40.

Added in 2.46.8, including pseudo-op forms of CLMUL.

CLAC added in 2.38.

CLFLUSHOPT added in 2.38.

External links

Notes and References

  1. Web site: WASM: The Open Watcom Assembler. 2017-09-11. Randall Hyde. bot: unknown. https://web.archive.org/web/20120302223548/http://webster.cs.ucr.edu/AsmTools/WASM/index.html. 2012-03-02.
  2. Book: Leiterman , James . 32/64-bit 80x86 assembly language architecture . MASM vs. NASM vs. TASM vs. WASM . 2005 . 978-1-59822-002-5 . Wordware Publishing, Inc. . 481. 2010-02-01.
  3. https://books.google.com/books?id=uxkz5ZBwOWEC&q=MASM+vs.+NASM+vs.+TASM+vs.+WASM&pg=PR1 Leiterman p482 on Google Books
  4. https://web.archive.org/web/20141010153046/http://www.japheth.de/JWasm.html JWASM
  5. http://www.openwatcom.org/index.php/Detailed_Contents#Assembler Open Watcom website: Assembler
  6. http://www.openwatcom.org/index.php/Wasm OpenWatcom:
  7. http://www.openwatcom.org/index.php/Detailed_Contents#Disassembler Open Watcom website: Disassembler
  8. The 1996 "WALK32 consists of the following main components:
    • A full-featured PE (Portable Executable) file linker called W32Link.
    • A main include file, containing Win32 constant, type, and structure definitions.
    • Another include file, containing the application and DLL startup source code.
    • Segment and PE section management macros.
    • Macros related to Unicode support.
    • Several demo applications and DLL’s.
    • A collection of programming utilities for various purposes." walk32.doc in walk32_1.zip
  9. https://web.archive.org/web/20190420233126/http://masm32.com/board/index.php?PHPSESSID=cd2ff284351b56abe5215e74fc367dec&board=51.0 UASM Assembler Development
  10. https://web.archive.org/web/20170317171202/http://masm32.com/board/index.php?PHPSESSID=f3e2c20195c95cf17a4268aa7a63e80c&topic=5035.0 HJWasm Releases
  11. https://web.archive.org/web/20171012003844/http://masm32.com/board/index.php?PHPSESSID=92d72278a40646986b9b7046551515ee&topic=6239.0 A New Name? (thread page 1)
  12. https://web.archive.org/web/20171012010027/http://masm32.com/board/index.php?PHPSESSID=92d72278a40646986b9b7046551515ee&topic=6239.30 A New Name? (thread page 3)
  13. https://web.archive.org/web/20170523115141/http://www.terraspace.co.uk/uasm.html UASM (2.33)
  14. https://web.archive.org/web/20171012012415/http://masm32.com/board/index.php?PHPSESSID=92d72278a40646986b9b7046551515ee&topic=6276.0 UASM 2.33 Release
  15. http://www.terraspace.co.uk/History.txt UASM ChangeLog