Title Page

Advanced MS-DOS Programming


Advanced MS-DOS Programming

The MicrosoftÒ Guide for Assembly Language and C Programmers

By Ray Duncan

PUBLISHED BY
Microsoft Press
A Division of Microsoft Corporation
16011 NE 36th Way, Box 97017, Redmond, Washington 98073-9717
Copyright Ó 1986, 1988 by Ray Duncan
Published 1986. Second edition 1988.
All rights reserved. No part of the contents of this book may be
reproduced or transmitted in any form or by any means without the written
permission of the publisher.
Library of Congress Cataloging in Publication Data

Duncan, Ray, 1952-
Advanced MS-DOS programming.
Rev. ed. of: Advanced MS-DOS. Ó1986.
Includes index.
1. MS-DOS (Computer operating system) 2. Assembler language
(Computer program language) 3. C (Computer program language)
I. Duncan, Ray, 1952- Advanced MS-DOS. II. Title.
QA76.76.063D858 1988 005.4'46 88-1251
ISBN 1-55615-157-8
Printed and bound in the United States of America.

1 2 3 4 5 6 7 8 9 FGFG 3 2 1 0 9 8

Distributed to the book trade in the United States by Harper & Row.

Distributed to the book trade in Canada by General Publishing Company,
Ltd.

Penguin Books Ltd., Harmondworth, Middlesex, England
Penguin Books Australia Ltd., Ringwood, Victoria, Australia
Penguin Books N.Z. Ltd., 182-190 Wairu Road, Auckland 10, New Zealand

British Cataloging in Publication Data available

IBMÒ, PC/ATÒ, and PS/2Ò are registered trademarks of International
Business Machines Corporation. CodeViewÒ, MicrosoftÒ, MS-DOSÒ, and
XENIXÒ are registered trademarks and InPort TM is a trademark of
Microsoft Corporation.

Dedication

For Carolyn


Acknowledgments
My renewed thanks to the outstanding editors and production staff at
Microsoft Press, who make beautiful books happen, and to the talented
Microsoft developers, who create great programs to write books about.
Special thanks to Mike Halvorson, Jeff Hinsch, Mary Ann Jones, Claudette
Moore, Dori Shattuck, and Mark Zbikowski; if this book has anything unique
to offer, these people deserve most of the credit.