PROGRAMMER's UTILITIES GUIDE for CONCURRENT™ DOS 86 EXPANDED MEMORY (XM) First Edition. November 1986 1065-2043-001

Total Page:16

File Type:pdf, Size:1020Kb

PROGRAMMER's UTILITIES GUIDE for CONCURRENT™ DOS 86 EXPANDED MEMORY (XM) First Edition. November 1986 1065-2043-001 PROGRAMMER'S UTILITIES GUIDE FOR CONCURRENT™ DOS 86 EXPANDED MEMORY (XM) First Edition. November 1986 1065-2043-001 COPYRIGHT Copyrighl © 1986 Oogolal Research All roghlS reserved No part of I hos p11hloca11011 111.ty be reproduced. lransrn11ted. transcribed. stored 1n a 1ct11cval svstcnl. or lrJnsl(jrecf into any language or computer language, '" any fornl or by any means. elcc1ron11: mechanical, magnetic. optical. chemical manual. or otherw1su. w11hout the p11or wr1Uen pernussoon of Digital Research. 60 Garden Co11rt. Bo• DAI. Mon1c1ey. Calolornod 93!142 DISCLAIMER DIGITAL RESEARCH MAKES NO REPRESENTATIONS OR WARRANTIES WITH RESPECT TO THE CONTENTS HEREOF ANO SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE Further.. Oogital Research Inc: reserves the right lo revise tho,; puhlocaloon and to ma~e changes lro;n time to time in lhe c:onlenl hereof wolhout olJligaloon of Digital Research Inc: to notify any person of suc:h rev111on or changes NOTICE TO USER This manual should nol be conslruetl as any represenlalion .,,r wdrranty with respect to lhe sollware named herein Occasionally changes or variations exist on ihe software that are not reflected in the mdnual Generally. ii such changes or variations are •nown to exill end to effect the product s1yn1l1cantly, e release note or REAOME DOC lile accompanies lhe manual and dislrobutoon do5Usl In thal event be sure lo read the release nole or REAOME DOC file before using lhc product TRADEMARKS Digital Research. CP/M· 86. and the D1911al Research logo are registered trademarks of Digital Research Inc: Concurrenl. and Concurrenl DOS 86. LIB-86. LINK-86. MP/M· 86. Pl/1-86. RASM-86. SID· 286. and XREF-86 are lrademarks of Digital Research We Make Compulers Worl is a service mark of D1911ul Research Inc lnlel is a regoslered trademark of Intel Corporal ion MCS ·86 is a lratlemark of Intel Corporation Foreword The e!<;>gr_~mf!l~_(§ __ .Qtj!it_i~s_ Quide for Concurrent T~-_[~_QS 86 (cited as the Progra_~ITl-~(~J)jiliti~~ Guide) assumes that you are familiar with the Concurrent environment. It also assumes that you are familiar with the basic elements of 8086 and 80286 assembly language programming. The e_~Qf)_r~i:D_ryu~r's ___ Utilities Guicje describes the operation of the following Concurrent DOS 86 native mode (CMD files) and PC DOS mode (EXE files) utilities: RASM-86™ Assembler for 8086, 80186, and 80286 assembly language that produces relocatable code in the Intel® Object Module Format. XREF-86™ Utilhy used with RASM-86 to produce a cross reference listing of the symbols used in a program. LINK-86™ Linkage editor that combines relocatable object modules and libraries to create executable files. LIB-86™ Utility that creates and maintains libraries of object modules for use with LINK-86 SID-86™ Symbolic Instruction Debugger used to test ·and debug object module code. The operation of the native mode and PC DOS mode versions of each utility are nearly identical; any specific differences are clearly documented. Since Concurrent DOS 86 supports both its native mode operating system calls. and PC DOS system calls. it is imperative that you not intermix the two modes in an executable module. That is, a PC DOS program (.EXE file) should not contain any calls to Concurrent DOS 86 native mode system calls. Likewise, a program written for the native mode (.CMD file) should not contain any PC DOS system calls. iii Typographical Conventions This guide uses the following notation to describe commands command parameter [option] A command is any of the commands described in this guide. fl parameter can be a filename. an address location. or any specifier tha1 is particular to the command. Optional items, such as command options or additional filenames, appear inside square brackets. Words joined by an underscore (_) represent a single command item or field. Examples of specific usage of a command are preceded by an A> prompt, and the user's input appears in bold print. For example A>;rasrri86 test illustates a specific usage of the RASM86 command. Characters used to represent values or variables in a command or instruction syntax may also appear in bold print in the text in which they are described. iv Contents 1 The RASM-86 Assembler 1.1 Introduction . 1-1 1.2 RASM-86 Operation . 1-1 1.3 RASM-86 Command Syntax . 1-1 1.3.1 RASM-86 Run-Time Parameters . 1-2 1.3 2 RASM-86 Command Line Examples. 1-4 1.4 Stopping RASM-86. 1-6 2 Elements of RASM-86 Assembly Language 2.1 Introduction . 2-1 2.2 RASM-86 Character Set . 2-1 2.3 Tokens and Separators. 2-2 2.4 Delimiters. 2-2 2.5 Constants. 2-3 2.5.1 Numeric Constants . 2*"4 2.5.2 Character String Constants. 2-5 2.6 Identifiers. 2-6 2.6.1 Keyword Identifiers. 2-6 2.6.2 Symbol Identifiers. 2-8 2.6.3 Example Identifiers . 2- rn 2.7 Operators. 2-10 2.7.1 Arithmetic Operators. 2-12 2.7.2 Logical Operators . 2-14 2.7.3 Relational Operators . 2-14 2.7.4 Segment Override Operator. 2-15 2.7.5 Variable Manipulation Operators............... 2-16 276 Variable Creation Operators. 2-17 2.7.7 Operator Precedence 2-18 2.8 Expressions 2-20 v Contents 2.9 Statements. 2-21 2.9.1 Instruction Statements . 2-21 2.9.2 Directive Statements. 2-22 3 RASM-86 Directives 3.1 Introduction . ............... 3-1 3.2 Assembler Directive Syntax.' ..................... 3-1 3.3 Segment Control Directives ...................... 3-2 3.3.1 The 8086/80286 Segmented Architecture ....... 3-2 3.3.2 CSEG, DSEG. ESEG. and SSEG Directives ........ 3-3 3.3.3 GROUP Directive. ............ 3-8 3.4 Linkage Control Directives .. 3-8 3.4.1 END Directive ...... 3-9 3.4.2 NAME Directive 3-9 3.4.3 PUBLIC Directive ........ 3-9 3.4.4 EXTRN Directive 3-10 3.5 Conditional Assembly Directives .. 3-10 3.5.1 IF, ELSE. and ENDIF Directives. 3-1 1 3.6 Symbol Definition Directive . ........... 3-12 3.6.1 EOU Directive ............................ 3-12 3.7 Data and Memory Directives. 3-13 3.7.1 DBDirective............ ......... 3-13 3.7.2 OW Directive. 3-14 3.7.3 DD Directive . 3-14 3.7.4 RSDirective .............................. 3-15 3.7.5 RBDirective .............................. 3-15 3.7.6 RW Directive. 3-15 3.7.7 RD Directive . 3-16 3.8 Output Listing Control Directives 3-16 3.8.1 EJECT Directive ............. 3-16 3.8.2 NOIFLIST/IFLIST Directives 3-17 3 8.3 NOUST and LIST Directives. 3-17 3.8.4 PAGESIZE Directive ...... 3-17 3.8.5 PAGEWIDTH Directive 3-17 3.8.6 SIMFORM Directive . 3-17 3.j3] _lJTLE Directive 3-18 vi Contents 3.9 8087 Control Directives 3-18 3.9.1 HARD8087 Directive 3-18 3 9.2 AUT08087 Directive 3-18 3.10 Miscellaneous Directives. 3-19 3.10.1 INCLUDE Directive 3-19 3.10.2 ORG Directive . 3-20 I 4 RASM-86 Instruction Set 4.1 Introduction 4-1 4.2 RASM-86 Instruction Set Summary. 4-1 4.3 Instruction-definition Tables. 4-10 4.3.1 Symbol Conventions . 4-10 4.3.2 Flag Registers ....... 4-12 4.3.3 8086 Data Transfer Instructions. ...... 4-12 4.3.4 8086 Arithmetic. Logical, and Shift Instructions .. 4-15 4.3 5 8086 String Instructions ...... 4-24 4.3 6 8086 Control Transfer Instructions ....... 4-27 4 3 7 8086 Processor Control Instructions ....... 4-32 4.3 8 8087 Instruction Set . , ... 4-34 4.3.9 Additional 186 and 286 Instructions ....... 4-45 4.3.10 Additional 286 Instructions 4-46 5 RASM-86 Code-macro Facilities 5.1 Introduction 5-1 5.2 Invoking Code-macros . 5-1 5.3 Defining Code-macros ... 5-2 5 31 Formal Parameter List. 5-2 5.3 2 Code-macro Directives .. 5-4 5 3.3 Example Code-Macro Definitions .. 5-10 'Jlj Contents 6 XREF-86 Cross-Reference Utility 6.1 Introduction ....... 6-1 6.2 XREF-86 Command Syntax .. 6-1 1 LINK-86 Linkage Editor 7.1 Introduction . ............... 7-1 7.2 LINK-86 Operation . ............... 7-1 7.3 LINK-86 Command Syntax ........................ 7-2 7.4 Stopping -LINK-86 .............................. 7-3 7.5 LINK-86 Command Options ....................... 7-4 7.6 Command File Options .......................... 7-7 7.6.1 Command File Formats ..................... 7-7 7.6.2 FILL I NO FILL ............................. 7-10 7.6.3 HARD8087 ............................... 7-10 7.6.4 CODESHARED (Native-mode only) ............. 7-11 7.7 SYM File Options .............................. 7-11 7.7.1 LOCALS I NOLOCALS ...................... 7-11 7.7.2 LIBSYMS I NOLIBSYMS ..................... 7-11 7.8 MAP File Option ............................... 7-12 7.9 SEARCH Option. ............ 7-13 7.10 Input File Options ............................. 7-13 7. 11 1/0 Option. ...... 7-14 7.11.1 $C (Command) Option. ...... 7-15 7.11.2 $L (Library) Option. ..... 7-15 7.11.3 $M (Map) Option. ........... 7-16 7.11.4 $0 (Object) Option ............ 7-16 7.11.5 $S Symbol Option .... 7-16 7.12 The Link Process ..... 7-17 7.12.1 Phase 1 - Collection ... 7-18 7.12.2 Phase 2 - Create Command File 7-23 Viii Contents 8 LIB-86 Library Utility 8.1 Introduction . 8-1 8.2 LIB-86 Operation . 8-1 8.3 LIB-86 Command Syntax. 8-2 8.4 Stopping LIB-86 . 8-2 8.5 LIB-86 Command Options.
Recommended publications
  • DOS Technical Reference
    -------- - ---- Personal Computer - ---- - --- ------ - . - Programming Family DOS Technical Reference 6138536 Preliminary First Edition (February 1985) The following paragraph does not apply to the United Kingdom or any country where such provisions are inconsistent ~ith local law: INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES TIllS PUBLICATION "AS IS" wrrnom WARRANTY OF ANY KIND, EmlER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 1HE IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Some states do not allow disclaimer of express or implied warranties in certain transactions, therefore, this statement may not apply to you. lbis publication could include technical inaccuracies or typographical errors. Changes are periodically made to the information herein; these changes will be incorporated in new editions of the publication. IBM may make improvements and!or changes in the product(s) and/or the program(s) described in this pUblication at any time. It is possible that this publication may contain reference to, or information about, IBM products (machines and programs), programming, or services that are not announced in your country. Such references or information must not be construed to mean that IBM intends to announce such IBM products, programming, or services in your country. Products are not stocked at the address below. Requests for copies of this publication and for technical information about IBM Personal Computer products should be made to your authorized IBM Personal Computer dealer, IBM Product Center, or your IBM Marketing Representative. The following paragraph applies only to the United States and Puerto Rico: A Reader's Comment Form is provided at the back of this publication. If the form has been removed.
    [Show full text]
  • Open WATCOM Programmer's Guide
    this document downloaded from... Use of this document the wings of subject to the terms and conditions as flight in an age stated on the website. of adventure for more downloads visit our other sites Positive Infinity and vulcanhammer.net chet-aero.com Watcom FORTRAN 77 Programmer's Guide Version 1.8 Notice of Copyright Copyright 2002-2008 the Open Watcom Contributors. Portions Copyright 1984-2002 Sybase, Inc. and its subsidiaries. All rights reserved. Any part of this publication may be reproduced, transmitted, or translated in any form or by any means, electronic, mechanical, manual, optical, or otherwise, without the prior written permission of anyone. For more information please visit http://www.openwatcom.org/ Portions of this manual are reprinted with permission from Tenberry Software, Inc. ii Preface The Watcom FORTRAN 77 Programmer's Guide includes the following major components: · DOS Programming Guide · The DOS/4GW DOS Extender · Windows 3.x Programming Guide · Windows NT Programming Guide · OS/2 Programming Guide · Novell NLM Programming Guide · Mixed Language Programming · Common Problems Acknowledgements This book was produced with the Watcom GML electronic publishing system, a software tool developed by WATCOM. In this system, writers use an ASCII text editor to create source files containing text annotated with tags. These tags label the structural elements of the document, such as chapters, sections, paragraphs, and lists. The Watcom GML software, which runs on a variety of operating systems, interprets the tags to format the text into a form such as you see here. Writers can produce output for a variety of printers, including laser printers, using separately specified layout directives for such things as font selection, column width and height, number of columns, etc.
    [Show full text]
  • Table of Contents
    ^9/08/89 11:43 U206 883 8101 MICROSOFT CORP.. 12)002 Table of Contents m-^mm Table of Contaits 09/08/89 11:44 'Q206 883 8101 MICROSOFT CORP _ _ [ 1003 The Story Begins JAN The story of MS-DOS_begins ..in a hotel in Albuquerque, New Mexico. 1975 In 1975, Albuquerque was the home of Micro Instrumentation'Telemetry MiTS introduces the 8080-baseci Systems, better known as MITS- In January of that year, MITS had intro- Altair computer. duced a kit computer called the Altair. When it was first snipped, the Altair consisted of a metal box with, a panel of switches for input and output, a power supply, and-two boards. One board was the CPU.. At its heart was the 8-bit 8080 microprocessor chip from InteL The other board provided 256 bytes of memory. The Altair had no keyboard, no monitor, and no permanent storage. But it had a revolutionary price tag. It cost $397. For the first time, the term "personal computer" acquired a real-world meaning. The real world of the Altair was not, however, the world of business computing. It was-primarily the world of the computer hobbyist These first users of the microcomputer were not as interested in using spreadsheets and word processors as they were in programming. Accordingly, the first soft- ware for the Altair was a programming language. And the company that developed it was a two-man firm, in Albuquerque, called Microsoft FEB The two men at MiCTosof^ej^PailjAJten^and Bffl Gates-Allen and 1975 Gates-had met when-they were both students at Lakeside High School in Microsoft sails first BASIC to Seattle, where they began their computer-science education oa the school's MITS lor Altair time-sharing terminal By the time Gates had graduated, me two of them had computer.
    [Show full text]
  • Loading and Executing a Child Process
    Loading and Executing a Child Process by Kip Irvine. Last update: 12/11/2003 MS-DOS has always taken a fairly straightforward approach to loading and executing programs. From the start, it was designed to be a simple, single-tasking operating system. Many applications rely on other programs to perform useful services. Suppose you were using a text editor, and you needed to view a calendar. You wouldn’t want to have to close the editor to view a calendar, of course, but under MS-DOS, you could not run both programs at the same time. The text editor’s author could include code to display calendars, but it would increase the size of the program and probably be a poor imitation of existing calendar programs. The answer to this problem, of course, would be to run a calendar program directly from the text editor. MS-DOS provides a convenient hook that lets you launch any executable program much in the manner of a subroutine call. The calling program is suspended, the called program exe- cutes, and when it finishes, control returns to the calling program. There are small tradeoffs, of course. First, the calling program, which we will call the par- ent from now on, must resize the default memory allocation assigned to it by MS-DOS when it was loaded. The allocation is far more generous than necessary, because MS-DOS doesn’t know how much memory you plan to use during the program’s execution. Second, the parent program must construct a structure called a parameter block that con- tains pointers to its own MS-DOS environment, a command-line string, and other miscellaneous information.
    [Show full text]
  • PC DOS 7 Technical Update
    PC DOS 7 Technical Update Document Number GG24-4459-00 February 1995 International Technical Support Organization Boca Raton Center Take Note! Before using this information and the product it supports, be sure to read the general information under “Special Notices” on page xiii. First Edition (February 1995) This edition applies to PC DOS Version 7. Order publications through your IBM representative or the IBM branch office serving your locality. Publications are not stocked at the address given below. An ITSO Technical Bulletin Evaluation Form for reader′s feedback appears facing Chapter 1. If the form has been removed, comments may be addressed to: IBM Corporation, International Technical Support Organization Dept. 91J Building 235-2 Internal Zip 4423 901 NW 51st Street Boca Raton, Florida 33431-1328 When you send information to IBM, you grant IBM a non-exclusive right to use or distribute the information in any way it believes appropriate without incurring any obligation to you. Copyright International Business Machines Corporation 1995. All rights reserved. Note to U.S. Government Users — Documentation related to restricted rights — Use, duplication or disclosure is subject to restrictions set forth in GSA ADP Schedule Contract with IBM Corp. Abstract IBM PC DOS 7 has been designed for all types of users who need an efficient single tasking personal computer operating system. It incorporates many new utilities such as anti-virus software, comprehensive backup programs, PCMCIA support and DOS Pen extensions. Also incorporated are new features to enhance the available memory and disk space. This book is a technical reference, upgraded from IBM DOS 5.02 and written for DOS programmers, who develop applications for IBM Personal Computers or compatible systems.
    [Show full text]
  • DOS 2.0 Programmers Reference
    Operating System Programmer's Reference Manual under the licence from Microsoft Corporation Printed in Taiwan ,1 Microsoft Corporation Information in this document is subject to change without notice and does not represent a commitment on the part of Microsoft Corporation. The software described in this document is furnished under a license agreement or nondisclosure agreement. The software may be used or copied only in accordance with the terms of the agreement. It is against the law to copy the Programmer's Reference Manual on magnetic tape, disk; or any other medium for any purpose other than the' purchaser's personal use. (C) Microsoft Corporation 1981, 1983 Comments about this documentation may be sent to: Microsoft Corporation Microsof,t Building 10700 Northup Way Bellevue, WA 98004 Microsoft is a registered trademark of Microsoft Corporation. MS is a registered trademark of Microsoft Corporation. CP/M is a registered trademark of Digital Research, Inc. Document No. 8411-200-00 Part No. 14F36PM under the licence from Microsoft Corporation printed" in Taiwan System Requirements Disk drive(s) One disk drive if and only if output is sent to the same physical disk from which the input was taken. None of the programs allows time to swap disks during operation on a one-drive configuration. Therefore, two disk drives is ·a more practical configuration. For more information about other Microsoft products, contact: Microsoft Corporation 10700 Northup Way Bellevue, WA 98004 (206) 828-8080 Contents General Introduction Chapter I System Calls 1.1 Introduction 1-1 1.2 Programming Considerations 1-1 1.2.1 Calling From Macro Assembler 1-1 1.2.2 Calling From a High-Level Language 1-1 1.2.3 Returning Control to MS-DOS 1-2 1.
    [Show full text]
  • Disk Operating System
    - -------- ---- --- Personal Computer -------_.---- - - --- Computer Language Series Disk Operating System Second Edition (May 1982) Version 1.10 Changes are periodically made to the information herein; these changes will be incorporated in new editions of this publication. Products are not stocked at the address below. Requests for copies of this product and for technical information about the system should be made to your authorized IBM Personal Computer Dealer. A Product Comment Form is provided at the back of this publication. If this form has been removed, address comment to: IBM Corp., Personal Computer, P.O. Box 1328-C, Boca Raton, Florida 33432. IBM may use or distribute any of the information you supply in any way it believes appropriate without incurring any obligations whatever. © Copyright International Business Machines Corporation 1981 Preface This reference manual explains how to use the IBM Personal Computer Disk Operating System (DOS). It provides information on how to issue commands to DOS to create, edit, link, debug, and execute programs. Prerequisite Publication Regardless of your background or previous programming experience, you should look at the Guide to Operations before reading this manual. The chapter on "Using DOS" should be especially helpful to you before you approach the more detailed information that appears in this manual. Organization of this manual This manual has six chapters and six appendixes. Chapter I has some introductory information about DOS and files. Chapter 2 contains information about starting DOS, as well as directions on how to use the control keys and DOS editing keys. Chapter 3 contains detailed descriptions of the commands you can issue to DOS.
    [Show full text]
  • DOS 3.30 Package?
    Disk Operating System Version 3.30 Technical Reference Programming Family - ------....-- - --- ---- -. --- ----------,.-- - --- - First Edition (April 1987) The following paragraph does not apply to the United Kingdom or any country where such provisions are inconsistent with local law: INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THIS PUBLICATION "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Some states do not allow disclaimer of express or implied warranties in certain transactions, therefore, this statement may not apply to you. This publication could include technical inaccuracies or typographical errors. Changes are periodically made to the information herein; these changes will be incorporated in new editions of the publication. IBM may make improvements and/or changes in the product(s) and/or the program(s) described in this publication at any time. It is possible that this publication may contain reference to, or information about, IBM products (machines and programs), programming, or services that are not announced in your country. Such references or information must not be construed to mean that IBM intends to announce such IBM products, programming, or services in your country. Requests for copies of this publication and for technical information about IBM products should be made to your authorized IBM Dealer or your IBM Marketing Representative. © Copyright International Business Machines Corporation 1985, 1987 About This Book Information in this book applies to DOS versions 2.10 to 3.30 unless specified in each chapter under the heading "Version Specific Information." 111 How This Book is Organized This Technical Reference has two sections.
    [Show full text]
  • Microsoft® MS-DOS® 3.3 Reference
    Microsoft® MS-DOS® 3.3 Reference HP 9000 Series 300/800 Computers HP Part Number 98870-90050 Flin- HEWLETT ~~ PACKARD Hewlett-Packard Company 3404 East Harmony Road, Fort Collins, Colorado 80525 NOTICE The information contained In this document is subject to change without notice HEWLETT-PACKARD MAKES NO WARRANTY OF ANY KIND WITH REGARD TO THIS MANUAL. INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Hewlett-Packard shall not be liable for errors contained herein or direct. indirect. special, incidental or consequential damages in connection with the furnishing, performance, or use of this material WARRANTY A copy of the specific warranty terms applicable to your Hewlett-Packard product and replacement parts can be obtained from your local Sales and Service Office MS -DOS is a US registered trademark of Microsoft, Incorporated. LOTUS and 1-2-3 are registered trademarks of LOTUS Development Corporation. Copynght 1988. 1989 Hewlett-Packard Company This document contains proprietary information which is protected by copyright. All rights are reserved. No part of this document may be photocopied. reproduced or translated to another language without the prior written consent of Hewlett-Packard Company. The information contained in this document is subject to change without notice. Restricted Rights Legend Use. duplication or disclosure by the Government is subject to restrictions as set forth in paragraph (b)(3)(B) of the Rights in Technical Data and Software clause in DAR 7-104.9(a). Use of this manual and flexible disc(s) or tape cartridge(s) supplied for this pack is restricted to this product only.
    [Show full text]
  • Irmx Programming Concepts for DOS Chapter 1 1 Understanding the Environments Some of the Facilities Discussed in This Manual Can Be Used in Two Environments
    iRMX® Programming Concepts for DOS RadiSys Corporation 5445 NE Dawson Creek Drive Hillsboro, OR 97124 (503) 615-1100 FAX: (503) 615-1150 www.radisys.com 07-0571-01 December 1999 EPC, iRMX, INtime, Inside Advantage, and RadiSys are registered trademarks of RadiSys Corporation. Spirit, DAI, DAQ, ASM, Brahma, and SAIB are trademarks of RadiSys Corporation. Microsoft and MS-DOS are registered trademarks of Microsoft Corporation and Windows 95 is a trademark of Microsoft Corporation. IBM and PC/AT are registered trademarks of International Business Machines Corporation. Microsoft Windows and MS-DOS are registered trademarks of Microsoft Corporation. Intel is a registered trademark of Intel Corporation. All other trademarks, registered trademarks, service marks, and trade names are property of their respective owners. December 1999 Copyright 1999 by RadiSys Corporation All rights reserved. ii Quick Contents Chapter 1. Introduction Chapter 2. DOS Real-time Extension Chapter 3. VM86 Protected Mode Extensions Chapter 4. Making DOS and ROM BIOS System Calls Chapter 5. General Information Appendix A. Default Configuration Index Programming Concepts for DOS iii Notational Conventions Most of the references to system calls in the text and graphics use C syntax instead of PL/M (for example, the system call send_message instead of send$message). If you are working in C, you must use the C header files, rmx_c.h, udi_c.h and rmx_err.h. If you are working in PL/M, you must use dollar signs ($) and use the rmxplm.ext and error.lit header files. This manual uses the following conventions: • Syntax strings, data types, and data structures are provided for PL/M and C respectively.
    [Show full text]
  • The Intel Microprocessors
    THE INTEL MICROPROCESSORS 8086/8088, 80186/80188, 80286, 80386, 80486, Pentium, Pentium Pro Processor, Pentium II, Pentium III, Pentium 4, and Core2 with 64-Bit Extensions Architecture, Programming, and Interfacing Eighth Edition BARRY B. BREY Upper Saddle River, New Jersey Columbus, Ohio Library of Congress Cataloging in Publication Data Brey, Barry B. The Intel microprocessors 8086/8088, 80186/80188, 80286, 80386, 80486, Pentium, Pentium Pro processor, Pentium II, Pentium III, Pentium 4, and Core2 with 64-bit extensions: architecture, programming, and interfacing / Barry B. Brey—8th ed. p. cm. Includes index. ISBN 0-13-502645-8 1. Intel 80xxx series microprocessors. 2. Pentium (Microprocessor) 3. Computer interfaces. I. Title. QA76.8.I292B75 2009 004.165—dc22 2008009338 Editor in Chief: Vernon Anthony Acquisitions Editor: Wyatt Morris Editorial Assistant: Christopher Reed Production Coordination: GGS Book Services Project Manager: Jessica Sykes Operations Specialist: Laura Weaver Design Coordinator: Mike Fruhbeis Cover Designer: Ilze Lemesis Cover image: iStockphoto Director of Marketing: David Gesell Marketing Manager: Jimmy Stephens Marketing Assistant: Les Roberts This book was set in Times by GGS Book Services. It was printed and bound by Hamilton Printing. The cover was printed by Phoenix Color Corp. Copyright © 2009, 2006, 2003, 2000, 1997, 1994, 1991, 1987 by Pearson Education, Inc., Upper Saddle River, New Jersey 07458. Pearson Prentice Hall. All rights reserved. Printed in the United States of America. This publication is protected by Copyright and per- mission should be obtained from the publisher prior to any prohibited reproduction, storage in a retrieval system, or transmission in any form or by any means, electronic, mechanical, photocopying, recording, or likewise.
    [Show full text]
  • Chapter 1 BASIC STRUCTURE
    L a b w o r k # 1 2 F I L E Instructor: I Putu Danu Raharja. Objectives: To introduce to the students to use File MS-DOS services. 1. Write an Assembly Language program that prompts a user to input two filenames. The program will read the first file, convert its content into uppercase and save it into the second file. Before copying file, the program should check whether or not the second file has been already there. If the second file exists, the program should ask the user whether or not the file will be deleted. Save your work in LAB12.ASM Open 1st File Error? YES for reading Check whether handle1 = AX 2nd File exists? YES Display: Error? "Delete (Y/N)" handle2 = AX Rewrite 2nd File Read File (handle1) Error? YES Error? YES STOP EOF? YES Write File (handle2) for AX bytes only Write File (handle2) Close both files ICS-232 Computer Organization. & Assembly Language (032) 1 12.1 DOS LOGICAL STRUCTURES FOR DISK OPERATIONS DOS uses the following logical structures for disk operations: 1. The Program Segment Prefix (PSP) 2. The File Control Block (FCB) 3. The Disk Transfer Area (DTA) 4. The File Allocation Table (FAT) 5. The Root Directory 12.2 THE PROGRAM SEGMENT PREFIX (PSP) The PSP is an area that is accessible to both the Operating System and the application program. The DOS loader program, COMMAND.COM, calculates the lowest address in user RAM at which a program can safely be located. The loader than builds a 256 (i.e., 100H) bytes area called the PSP.
    [Show full text]