Disk Operating System

[Pages:362]--------- _----------.---------

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. These commands enable you to manage files, maintain diskettes, and create and execute programs.

Chapter4 describes how to use the Line Editor (EDLIN) program to create , alter, and display source language files and text files.

Chapter 5 describes how to use the linker (LINK) program to link programs together before execution.

Chapter 6 describes how the DEBUG program provides a controlled test environment so you can monitor and .cnntrol the execution of a program to be debugged; by altering, displaying., and.executing6bject files.

iii

Appendix A lists messages generated by the programs described in this manual.

Appendix B contains general technical information, and introduces the technical information in Appendixes C-E. Appendix C describes allocation of space on diskettes. Appendix D describes the system interrupts and fun ction calls.

Appendix E describes control blocks and work areas, including a Memory Map, Program Segment, and File Control Block.

Appendix F contains detailed information about .EXE file structure and loading.

Data Security

The IBM Personal Computer is a powerful and useful tool to help you with your personal and business information processing needs. (As with any information system, inadvertent errors may occur and information may be misused.) We suggest that when processing sensitive or highly valuable information, you take steps to ensure your data and programs are protected from accidental or unauthorized disclosure, modification, destruction, or misuse. Simple measures, such as: removing diskettes when not in use, keeping backup copies of valuable information, or installing the equipment in a secure facility, can go a long way to maintain the integrity and privacy of your information.

iv

Summary of Changes

This manual includes the following DOS Release 1.10 enhancemen ts:

? Revisions to the linker (LINK) program (Chapter 5).

? Support for an intermix of single sided and dual sided diskette drives (Chapter 2 and wherever applicable in Chapter 3 and Appendixes B and C). Commands of special interest include: - FORMAT - DISKCOMP - DISKCOPY

? DEBUG can now load files longer than 64K and includes a command to compare two blocks of memory (Chapter 6).

? A new command, EXE2BIN, converts .EXE files to .COM format programs (Chapter 3).

? The MODE command now includes the capability to set the speed and protocol for the Asynchronous Communications Adapter, as well as redirecting parallel printer output to an Asynchronous Communications Adapter (Chapter 3).

? Several new messages have been added (Appendix A), as well as new prompts or screens for: - DATE - TIME - FORMAT - CHKDSK - ERASE

v

? Tables of values for single sided and dual sided diskette maps are included (Appendix C).

? The COpy command provides support for concatenation (that is, combining) of files (Chapter 3).

? Directory entries include the time, as well as the date, when each file was last written to (Chapter 3).

CAUTION The DOS 1.10 commands should never be executed when you are running DOS 1.00, and the DOS 1.00 commands should never be executed under DOS 1.10. Because of the internal changes required for DOS 1.10, any attempt to run Level 1.00 commands on a 1.10 system (or vice versa) may result in the loss of data.

vi

CONTENTS

Preface . . . . . . . . . . . . .

iii

Prerequisite Publication . .

iii

Organization of this manual

iii

Data Security .

iv

Summary of Changes . . . . . .

v

CHAPTER 1. INTRODUCTION

1-1

What is DOS? . . . . . . . . . .

1-3

What Are the Parts of DOS?

. 1-3

A Few Words about Files . . . .

1-5

What Is a File? . . . . . . .

1-5

What Can I Name My Files?

1-5

How Many Files Can I Have?

1-6

How Does DOS Keep Track of My Files?

. 1-6

Why Is This Information Important to Me? 1-6

Formatting Your Diskettes . . . . . . . . 1-7

Why You Should Back Up Your Diskettes

1-7

CHAPTER 2. STARTING DOS . . . How to Start DOS . . . . . . . . .

If Your Computer Power Is Off If Your Computer Power Is Already On What Happens When You Start DOS? How to Enter the Date and Time Specifying the Default Drive Automatic Program Execution . . . . . .

Important Notes about Diskette and Drive Compatibility . . .

Single-Drive Systems . . . . . . . . . . . Control Keys . . . . . . . . . . . . . . . DOS Editing Keys . . . . . . . . . . . .

Examples of Ways to Use DOS Editing Keys . . . . .

To Start EDLIN Example 1 Example 2 Example 3 Example 4 Example 5

2-1 2-3 2-3 2-4 2-4 . 2-5 . 2-6 2-7

2-8 2-9 2-11 2-16

2-20 2-20 2-22 2-23 2-24 2-25 2-26

vii

Example 6 . . . . . . . . .

2-27

Example 7 . . . . . . . . .

2-28

To Stop the Editing Session

2-30

CHAPTER 3. DOS COMMANDS Introduction ....... Types of DOS Commands Format Notation . . . . . DOS Command Parameters

Reserved Device Names Global Filename Characters

Detailed Descriptions of the DOS Commands Information Common to All DOS Commands . . . . . . . .

Batch Processing . . . . . . . . . . . The AUTOEXEC.BAT File ... Creating a .BAT File With Replaceable Parameters . . . . . . . . . . . . . . Executing a .BAT File With Replaceable Parameters . . . . . . . . .

CHKDSK (Check Disk) Command COMP (Compare Files) Command COpy Command DATE Command . . . . . DEL Command . . . . . . DIR (Directory) Command DISKCOMP (Compare Diskette) Command DISKCOPY (Copy Diskette) Command ERASE Command EXE2BIN Command FORMAT Command MODE Command . . PAUSE Command REM (Remark) Command RENAME (or REN) Command SYS (System) Command . . TIME Command ...... TYPE Command ...... Summary of DOS Commands

3-1 3-3 3-4 3-5 3-6 3-8 3-9 3-12

3-1 2 3-14 3-15

3-17

3-18 3-19 3-21 3-23 3-32 3-34 3-35 3-39 3-42 3-45 3-47 3-50 3-53 3-58 3-59 3-60 3-61 3-62 3-64 3-65

CHAPTER 4. THE LINE EDITOR (EDLIN)

4-1

Introduction ...........

4-3

How to Start the EDLIN Program

4-4

The ED LIN Command Parameters

4-6

The ED LIN Commands . . . . . .

4-9

Information Common to All EDLIN

Commands . . . . . . . . . . . . .

4-9

viii

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download