The Waite Group's®
Microsoft
Macro Assembler
Bible
second edition
Nabajyoti Barkakati
and
Randall Hyde
SAMS
A Division of Prentice Hall Computer Publishing
Hill
North College, Carmel, Indiana 46032 USA
Contents
Preface to the Second Edition
Preface to the First Edition
Acknowledgments
Trademarks
About the Authors
Introduction
v
vi
ix
x
xi
xiii
:
/. Programming MS-DOS Systems
1 Overview of the MS-DOS Operating System
2 Programming with MASM
3 Debugging with CodeView and DEBUG
3
39
103
//. Processor Instructions
4
5
6
7
Data Movement Instructions
Arithmetic, Logical, and Bit Shift Operations
Procedures, Loops, and Jumps
Processor Control and Protected Mode Operation
133
191
287
339
Contents III
///. MASM Directives and Operators
8 Segment Declaration
9 Data Definition and Storage Allocation
10 Macros, Procedures, and Tools for
Modular Programs
11 Code Generation, Conditional Assembly,
Error Handling, and Listings
387
423
479
567
IV. Techniques
12 Writing Assembly Modules
for High-Level Languages
13 Using System Resources
14 Accessing and Controlling the Hardware
15 Text and Graphics User Interfaces
16 Programming trie 80386/486
17 Optimizing Tips
625
653
681
705
753
779
V. Appendixes
A
B
C
D
E
F
G
H
JV
ML and LINK Command-Line Options
DEBUG and CodeView Commands and Options
MS-DOS Data and Control Structures
BIOS and DOS Interrupts and Functions
EMS Functions and Errors
MS-DOS Error Returns
MASM Versions
ASCII Conversions
Index
Microsoft Macro Assembler Bible, 2nd Edition
787
791
799
803
883
895
899
915
927