Sunteți pe pagina 1din 3

Microsoft Macro Assembler

From Wikipedia, the free encyclopedia

The Microsoft Macro Assembler (MASM ) is an x86 assembler that uses the Intel syntax for MS-DOS and Microsoft Windows. Beginning with MASM 8.0 there are two versions of the assembler one for 16-bit and 32-bit assembly sources, and another (ML64) for 64-bit sources only. MASM is maintained by Microsoft, but since version 6.12 has not been sold as a separate product, it is instead supplied with various Microsoft SDKs and C compilers. Recent versions of MASM are included with Microsoft Visual Studio.

Microsoft Macro Assembler


Developer(s) Stable release Microsoft 11.00.60610.1 / June 26, 2013

Operating system Microsoft Windows and MSDOS Type License Assembler Microsoft EULA

Contents
1 History 2 Object module formats supported by MASM 3 Some third-party tools that support MASM 3.1 IDEs 3.2 Debuggers 3.3 Disassemblers 4 Assemblers compatible with MASM 5 See also 6 References 7 External links

History
The earliest versions of MASM date back to 1981.[1] Up to version 5.0, MASM was available as an MS-DOS application only. Versions 5.1 and 6.0 were available as both MS-DOS and OS/2 applications.[2] Version 6.0, released in 1992, added high-level programming support and a more C-like syntax. By the end of the year, version 6.1A updated the memory management to be compatible with code produced by Visual C++. In 1993 full support for 32-bit applications and the Pentium instruction set was added. The MASM binary at that time was shipped as a "bimodal" DOS-extended binary (using the Phar Lap TNT DOS extender). Versions 6.12 to 6.14 were implemented as patches for version 6.11. These patches changed the type of the binary to native PE format; version 6.11 is the last version of MASM that will run under MS-DOS. By the end of 1997 MASM fully supported Windows 95 and included some AMD-specific instructions.[3] In 1999 Intel released macros for SIMD and MMX instructions, which were shortly after supported natively by MASM. With the 6.15 release in 2000, Microsoft discontinued support for MASM as a separate product, instead subsuming it into the Visual Studio toolset. Though it was still compatible with Windows 98, current versions of Visual Studio were not.[3] Support for 64-bit processors was not added until the release of Visual Studio 2005, with MASM 8.0.

Object module formats supported by MASM

Early versions of MASM generated object modules using the OMF format, which was used to create binaries for MSDOS or OS/2. Since version 6.1, MASM is able to produce object modules in the Portable Executable[4][5] (PE/COFF) format. PE/COFF is compatible with recent Microsoft C compilers, and object modules produced by either MASM or the C compiler can be routinely intermixed and linked into Win32 and Win64 binaries.

Some third-party tools that support MASM


IDEs
RadASM[6] WinAsm Studio[7] EasyCode[8] Visual Studio [9]

Debuggers
OllyDbg[10]

Disassemblers
IDAPro the Interactive Disassembler

Assemblers compatible with MASM


Some other assemblers can assemble most code written for MASM, with the exception of more complex macros. Turbo Assembler (TASM) developed by Borland, later owned by Embarcadero, last updated in 2002 and supplied with Delphi and C++Builder for several years, later discontinued. JWASM Macro Assembler, licenced under the Sybase Open Watcom EULA. Pelle's Macro Assembler, a component of the Pelles C development environment.

See also
Assembly language High-level assembler Comparison of assemblers

References
1. ^ Watt, Peggy; Christine McGeever (January 7, 1985). "Macintosh Vs. IBM PC At One Year" (http://books.google.com/books?id=-i4EAAAAMBAJ&pg=PA16). InfoWorld 7 (1): pp. 1516. ISSN 0199-6649 (//www.worldcat.org/issn/0199-6649). The IBM PC Macro Assembler was released in December 1981. 2. ^ Marshall, Martin (April 29, 1991). "Macro Assembler Update Adds High-Level Features" (http://books.google.com/books? id=y1AEAAAAMBAJ&pg=PT20). InfoWorld 13 (17): p. 21. ISSN 0199-6649 (//www.worldcat.org/issn/0199-6649). 3. ^ a b R. E. Harvey (2007). "Assemblers" (http://web.archive.org/web/20080216121237/http://ourworld.compuserve.com/homepages/r_harvey/doc_book.htm). Archived from the original (http://ourworld.compuserve.com/homepages/r_harvey/doc_book.htm) on 16 February 2008. Retrieved 4 February 2010. 4. ^ http://download.microsoft.com/download/e/b/a/eba1050f-a31d-436b-9281-92cdfeae4b45/pecoff.doc

5. 6. 7. 8. 9. 10.

^ http://www.microsoft.com/whdc/system/platform/firmware/PECOFF.mspx ^ http://radasm.cherrytree.at/ ^ http://www.winasm.net/ ^ http://www.easycode.cat/English/index.htm ^ http://www.codeproject.com/Articles/271627/Assembly-Programming-with-Visual-Studio-2010-2012 ^ http://www.ollydbg.de/

External links
Official Microsoft Macro Assembler Reference (http://msdn.microsoft.com/en-us/library/afzk3475.aspx) Intro to MASM Win32 (http://www.infernodevelopment.com/introduction-masm32) Win32 assembly tutorials using MASM (http://www.win32developer.com/asm/windows_tutorial_1.shtm) Win32 Radasm (http://www.assembly.com.br) Retrieved from "http://en.wikipedia.org/w/index.php?title=Microsoft_Macro_Assembler&oldid=570106005" Categories: Assemblers Microsoft development tools DOS software Windows software This page was last modified on 25 August 2013 at 09:32. Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.

S-ar putea să vă placă și