Programmer's guide for Microsoft Macro Assembler (MASM) version 6.1, covering enhanced language features, integrated development environment, and tools for…
This guide documents the Microsoft Macro Assembler (MASM) version 6.1 for MS-DOS and Windows operating systems. It is written for experienced assembly-language programmers and explains Microsoft-specific features, including the Programmer's WorkBench (PWB), CodeView debugger, and utilities such as LINK and NMAKE. The book covers new and extended features since versions 5.1 and 6.0, such as enhanced type handling, control-flow directives, procedure prototypes, macro improvements, flat memory model support, and dynamic-link library creation for Windows.
The guide includes chapters on organizing segments, using addresses and pointers, defining simple and complex data types, controlling program flow, sharing data among modules, using macros, and writing DLLs for Windows. Appendices detail differences between MASM 6.1 and 5.1, and generating assembly listings with instruction timings. The ML.EXE command-line driver assembles and links in one step, maintaining compatibility with earlier MASM command syntax.
| Version | 6.1 |
|---|---|
| Supported Operating Systems | MS-DOS and Windows |
| Architecture | 16-bit (with 32-bit protected mode ML) |
| Memory Models | Flat memory model supported |
| Command-Line Driver | ML.EXE |
| Debugging Support | CodeView 4.0 and later |
MASM 6.1 runs on MS-DOS and Windows operating systems.
MASM 6.1 adds enhanced type handling, control-flow directives (.REPEAT, .WHILE, .IF), procedure prototypes (PROTO, INVOKE), macro improvements (default arguments, VARARG, WHILE, macro functions), flat memory model support, and the H2INC utility for converting C headers.
MASM 6.1 provides the OPTION directive with M510 argument or the /Zm command-line option to set most features compatible with version 5.1 code.
ML.EXE is the command-line driver that assembles and links with one command, recognizing old MASM driver syntax for compatibility.