Assembly Language for Intel-Based Computers

By Kip R. Irvine

Copyright Pearson Education, Inc, 2003. ISBN: 0-13-049756-8

This CD-ROM contains a full copy of Microsoft Macro Assembler (MASM) 6.15, provided through a distribution license from Microsoft Corporation.

The author maintains a discussion group to answer questions about the book. Look for "discussion group" in the list of headings on the book's Web site.


 

 

 

 

 

 

 

 

 

 

 


System Requirements

Operating System: To run the automated Setup program (Setup.exe) in the root directory of this CD-ROM, you must be running Microsoft Windows 98, Windows NT, Windows 2000, Windows XP, or Windows Millenium. View the readme.txt file on this CD-ROM for more details.

If you are running MS-DOS or Linux (using a DOS emulator), run the MASM 611 setup program.

To read the online Chapter 17 file, you will need the Adobe Acrobat Reader program. You can download it for free from www.adobe.com.

Return to top


 

 

 

 

 

 

 

 

 

 

 

 

 

 


Microsoft MASM 611 Setup Program

(Optional)

Microsoft's MS-DOS-based MASM Setup program was created in 1993. To use this setup program, do the following steps in order:

(At the current time, Microsoft does not publish an upgrade patch to MASM 6.15, unless you install the Visual Studio Processor pack. This could change, so be sure to check Microsoft's Web site for any updates.)

Return to top


 

 

 

 

 

 

 

 

 

 

 


Installing Microsoft Macro Assembler 6.15

To install the Assembler and all the sample programs for our book, run the Setup.exe program in the root directory of this CD-ROM.

You will be prompted for the install directory for MASM. We highly recommend that you select the default location of C:\Masm615. If you decide to select some other location for MASM, click here to find out how to modify the batch files for assembling and linking.

Return to top


 

 

 

 

 

 

 

 

 

 


Debugging Tools

For 32-bit Protected mode programming, two excellent debuggers you can use are:

Microsoft Visual C++ Debugger - This is an integral part of Microsoft Visual Studio. Look for a tutorial on our book's Web page that shows how to set up and use this debugger.

Microsoft WinDbg Debugger - This is a stand-alone debugging utility that can be used to debug both user-mode programs and kernel-mode programs (such as device drivers). At the current time, this debugger can be downloaded for free from Microsoft's Debugging Tools for Windows web page. If this link becomes inactive, check our book's Web site for an updated URL.

Return to top


 

 

 

 

 

 

 

 

 

 

 

 

 


Example Programs

If you run the Setup.exe program in the root directory of the CD-ROM, it will install all the example programs on your hard drive, in the C:\Masm615\Examples directory. (If you selected another install location, adjust the preceding path name accordingly.)

If you are using a DOS emulator under Linux, you will have to run the Setup.exe program located in the \MASM611 directory of the CD-ROM. After doing so, you can copy all files from the \Examples directory on the CD-ROM to a directory by the same name on your hard drive. The exact location is unimportant.

The example files are automatically write-protected on the CD-ROM, so you may want to un-protect them after copying them to the hard drive.

Click here to view a list of all example programs, ordered by chapter directory.

Return to top

 

 

 

 

 

 

 

 

 


Alternate MASM Install Locations

If you plan to install MASM in a different location from C:\Masm615, there are a couple of minor restrictions involved. Also, you will have to modify three files associated with assembling, linking, and debugging: make16.bat, make32.bat, and runCV.bat.

Customizing make16.bat

If you plan to write 16-bit Real-mode programs, you'll need to modify the make16.bat file. You can use NotePad, TextPad, or any other plain ASCII text editor. There are a couple of things to keep in mind:

Examples of valid paths:

D:\Masm615\ C:\Apps\Masm615\ M:\ASM\

Examples of invalid paths:

C:\Asm Prog\ \\AppServr C:\Program Files\Masm615

Find the following lines in make16.bat. Change each occurrence of "C:\Masm615" to the name of your install directory. Save the file with your changes:

PATH C:\Masm615
SET INCLUDE=C:\Masm615\INCLUDE
SET LIB=C:\Masm615\LIB

Customizing make32.bat

If you plan to write 32-bit Protected-mode programs (the default for Chapters 1-11), you'll need to modify the make32.bat file. Find the following lines, and change each occurrence of "C:\Masm615" to the name of your install directory. Save the file with your changes:

PATH C:\Masm615
SET INCLUDE=C:\Masm615\INCLUDE
SET LIB=C:\Masm615\LIB

Customizing runCV.bat

Find the following lines in runCV.bat. Change each occurrence of "C:\Masm615" to the name of your install directory. Save the file with your changes:

PATH C:\Masm615
SET HELPFILES=C:\Masm615
SET INIT=C:\Masm615

Return to top