Filename: LMAETTTL.DOC Project:
Template: FRONTA1.DOT Author: Mike Eddy Last Saved By: Mike Eddy
Revision #: 4 Page: 1 of 1 Printed: 10/09/00 03:00 PM
Microsoft® MASM
Assembly-Language Development System
Version 6.1
For MS-DOS® and Windows
™
Operating Systems
Environment and Tools
Microsoft Corporation
Filename: LMAETCPY.DOC Project:
Template: FRONTA1.DOT Author: Mike Eddy Last Saved By: Mike Eddy
Revision #: 4 Page: 2 of 1 Printed: 10/09/00 02:53 PM
Information in this document is subject to change without notice. Companies, names, and data used in
examples herein are fictitious unless otherwise noted. No part of this document may be reproduced or
transmitted in any form or by any means, electronic or mechanical, for any purpose, without the
express written permission of Microsoft Corporation.
©1992 Microsoft Corporation. All rights reserved.
Microsoft, MS, MS-DOS, XENIX, CodeView, and QuickC are registered trademarks and Windows
and Windows NT are trademarks of Microsoft Corporation in the USA and other countries.
U.S. Patent No. 4955066
IBM is a registered trademark of International Business Machines Corporation.
Intel is a registered trademark of Intel Corporation.
UNIX is a registered trademark of American Telephone and Telegraph Company.
BRIEF is a registered trademark of SDC Software Partners II L.P.
Printed in the United States of America.
Document No. DB35751-1292
Contents iii
Filename: LMAETTOC.DOC Project:
Template: FRONTA1.DOT Author: Mike Eddy Last Saved By: Mike Eddy
Revision #: 5 Page: 3 of 1 Printed: 10/09/00 02:54 PM
Contents Overview
Introduction .........................................................xxi
Part 1 The Programmer’s WorkBench
Chapter 1 Introducing the Programmer’s WorkBench .................... 3
Chapter 2 Quick Start................................................. 7
Chapter 3 Managing Multimodule Programs............................ 35
Chapter 4 User Interface Details ...................................... 57
Chapter 5 Advanced PWB Techniques ................................ 77
Chapter 6 Customizing PWB ........................................ 109
Chapter 7 Programmer’s WorkBench Reference....................... 131
Part 2 The CodeView Debugger
Chapter 8 Getting Started with CodeView............................. 293
Chapter 9 The CodeView Environment ............................... 319
Chapter 10 Special Topics........................................... 351
Chapter 11 Using Expressions in CodeView ........................... 375
Chapter 12 CodeView Reference..................................... 393
Part 3 Compiling and Linking
Chapter 13 Linking Object Files with LINK ........................... 457
Chapter 14 Creating Module-Definition Files .......................... 491
Chapter 15 Using EXEHDR......................................... 513
Part 4 Utilities
Chapter 16 Managing Projects with NMAKE.......................... 527
Chapter 17 Managing Libraries with LIB.............................. 581
Chapter 18 Creating Help Files with HELPMAKE ..................... 593
Chapter 19 Browser Utilities......................................... 615
Chapter 20 Using Other Utilities ..................................... 631
Part 5 Using Help
Chapter 21 Using Help.............................................. 663
Appendixes
Appendix A Error Messages ......................................... 685
Appendix B Regular Expressions ..................................... 845
iv Contents
Filename: LMAETTOC.DOC Project:
Template: FRONTA1.DOT Author: Mike Eddy Last Saved By: Mike Eddy
Revision #: 5 Page: 4 of 2 Printed: 10/09/00 02:54 PM
Glossary................................................................................ 857
Index................................................................................... 873
Contents v
Filename: LMAETTOC.DOC Project:
Template: FRONTA1.DOT Author: Mike Eddy Last Saved By: Mike Eddy
Revision #: 5 Page: 5 of 3 Printed: 10/09/00 02:54 PM
Contents
Introduction .......................................................... xxi
Scope and Organization of This Book .................................. xxii
Microsoft Support Services............................................ xxiii
Support Services Within the United States ........................... xxiii
Support Services Worldwide........................................xxvi
Document Conventions .............................................. xxxiii
Part 1 The Programmer’s WorkBench
Chapter 1 Introducing the Programmer’s WorkBench....................... 3
What’s in Part 1 ....................................................... 4
Using the Tutorial...................................................... 4
Conventions in the Tutorial........................................... 5
Chapter 2 Quick Start.................................................. 7
The PWB Environment................................................. 7
The Microsoft Advisor............................................... 8
Entering Text ....................................................... 9
Saving a File ....................................................... 10
Indenting Text with PWB ........................................... 11
Opening an Existing File............................................. 14
Copying, Pasting, and Deleting Text .................................. 16
Single-Module Builds .................................................. 18
Setting Build Options ............................................... 18
Setting Other Options............................................... 21
Building the Program ............................................... 22
Fixing Build Errors ................................................. 23
Running the Program ............................................... 25
Debugging the Program ................................................ 26
Using CodeView to Isolate an Error .................................. 26
Working Through a Program to Debug it.............................. 29
Examining Memory in the Memory Window .......................... 33
Where to Go from Here ............................................... 34
Chapter 3 Managing Multimodule Programs.............................. 35
Multimodule Program Example ......................................... 35
Opening the Project ................................................ 36