CHROMATICS
'.
CGC 7900 COLOR GRAPHICS COMPUTER SYSTEM
PRELIMINARY DOS MANUAL
(with Assembler and Text Editor)
July, 1981
Copyright (C) 1981 by Chromatics, Inc.
2558 Mountain Industrial Boulevard
Tucker, Georgia 30084
Phone (404) 493-7000
TWX 810-766-8099
This document is an advance release, provided for
informational purposes
only.
The
specifications
contained herein are subject to. revsion prior to
shipment of the product.
PUBLICATION COMMENT FORM
~ase use this
sheet to give us feedback on the enclosed
:umentation. Your comments on errors or omissions, suggested
anges, format of presentation, etc., will be helpful .in
eparing future manuals. Wherever possible, refer to specific
ge numbers in your comments below.
After completing this
rm, mail to:
Chromatics, Inc.
2558 Mountain Industrial Boulevard
Tucker, GA 30084
Attn:
R&D Department
Name:
Date: ____________
Company Name:
Name/Model Number of Product: ___________________________
Title of Publication:
Preliminary?_____
Date of Publication Release:
Page No.
Comments
CONVENTIONS USED IN THIS DOCUMENT
1. Any keys which have labeled caps will be called by their
full names, capitalized and underlined.
For example,
the
carriage return key will be denoted by
RETURN
2. The modifier keys, ~, SHIFT, Mi, and HZ, must be held
down while striking the key they are to modify. Note that these
four keys do not generate any characters on their own, but
simply modify the character which is struck simultaneously.
This process of holding down a modifier key while striking
another key will be denoted by the modifier AND the key being
underlined together. For example,
CTRL F
would indicate that the ~ key should be held down while
striking the· F key.
If two or more modifiers are needed
simultaneously, they will all be underlined together:
CTRL SHIFT T
mean that BOTH modifiers, SHIFT
30wn while striking the T key.
~ould
and~,
should
be
held
Variable parameters will be enclosed in angle brackets, < >.
items enclosed in th~se brackets will be explained in full
In the text which immediately follows.
5.
~y
Optional parameters will be enclosed in square brackets [ ].
items which may be repeated will be followed by an ellipsis
:three dots).
l.
~y
:xample of (3) and (4):
, [,, ••• ]
'he parameter is required. The parameters , , and
:0 on, are optional.
Any number of these may be included.
All
,hree types of parametOers would be explained immediately beneath
,he example which contained them •
•
Zeros will be slashed (8), alphabetic 0 will not be slashed.
TABLE OF CONTENTS
SECTION 1 - THE DISK OPERATING SYSTEM
INTRODUCTION
DISKETTES
ENTRY INTO DOS
DOS COMMAND LINE
DISK FILE NAMES
DISK DRIVE NUMBERS
SECONDARY FILE NAMES
FILE NAME PATTERNS
TRANSIENTS
DIR
COPY
FORMAT
INITIALIZING A NEW DISKETTE
RENAME
KILL
COMPRESS
DELETE
BUFF
DRAW
APPEND
PICTURE
REFRESH
IMPLODE
EXPLODE
STORE
FETCH
DEBUG
VERSION
SUMS
XREF
DOS ERROR MESSAGES
SECTION 2 - THE EDITOR
1- 1
1- 3
1- 4
1- 7
1- 9
1- 19
1- 13
1- 14
1- 15
1- 17
1111-
18
23
27
29
1- 39
1- 33
1- 35
1- 37
1- 39
1- 49
1- 41
1- 42
1- 44
1- 45
1- 46
1- 47
1- 49
1- 59
1- 51
1- 52
1- 53
1- 55
2- 1
INTRODUCTION TO THE EDITOR
INLINE
2- 3
2- 5
EDITOR COMMANDS
OPEN
GET
LIST
PRINT
INSERT
MODIFY
DELETE
FIND
SUBSTITUTE
LAST
2- 7
2- 8
2- 9
2- 19
2222-
11
12
14
16
2- 17
2- 18
2- 29
PUT
CLOSE
PAGE
DRIVB
EXI'!'
,
ABOR~
SECTION 3 - THE ASSEMBLER
.
222222-
21
22
23
24
25
26
3- 1
INTRODUCTION TO THE ASSEMBLER
ASSEMBLER COMMAND LINE
3- 3
3- 4
SOURCE FIL.E FORMAT
LABELS
INSTRUCTIONS
OPERANDS
COMMENTS
33333-
7
8
9
18
11
INSTRUCTION EXAMPLES
ARITHMETIC'
COMPARE
LOGICAL
SHIFT AND ROTATE
BIT OPERATIONS
EFFECTIVE ADDRESS
MOVE DATA
MOVE MULTIPLE
BRANCH, JUMP
DECREMENT AND BRANCH
SET
SYSTEM CONTROL
3333333333333-
13
14
15
16
16
17
17
18
19
28
22
23
24
INSTRUCTION TYPES
3- 25
EXPRESSIONS
3- 27
PSEUDO-INSTRUCTIONS
ORG (ORIGIN)
EQO (EQUATE)
SET
DC (DEFINE CONSTANT)
DS (DEFINE STORAGE)
3- 29
3- 38
3- 31
3- 32
3- 33
3-35
3- 36
3- 37
3- 37
3- 38
3- 38
END
PAGE
LLEN
NOLST
LIST
ADDRESSING MODES
REGISTER DIRECT
ADDRESS REGISTER INDIRECT
ADDRESS REGISTER INDIRECT/POST INCREMENT
3333-
39
39
4-8
48
ADDRESS REGISTER INDIRECT/PREDECREMENT
ADDRESS REGISTER INDIRECT/DISPLACEMENT
ADDRESS REGISTER INDIRECT WITH INDEX
ABSOLUTE SHORT
ABSOLUTE LONG
PC WITH DISPLACEMENT
PC WITH INDEX
IMMEDIATE
ASSEMBLY ERRORS
APPENDIX A - PROGRAMMING THE CGC 7999
33333333-
41
41
42
43
43
44
45
46
3- 47
A- 1
MODULES
THE LINKING PROCESS
MODULE CONSTRUCTION
BOOT MODULES
INPUT/OUTPUT MODULES
ARGUMENT PARSING
MODE MODULES
PLOT MODULES
ESCAPE AND USER MODULES
REGISTER SETUP FOR MODULES
AAAAAAAAAA-
4
6
7
8
9
WINDOW TABLE
WINDOW STATUS AND ESCAPE CODE STATUS
A- 21
A- 24
JUMP TABLES
PLOTTING FUNCTIONS
DOS JUMP TABLES
INLINE CALLING SEQUENCE
AAAA-
CMOS MEMORY ALLOCATION
LOW RAM ALLOCATION
THE USER FILE TABLE
A- 43
A- 45
A- 47
WRITING TRANSIENTS
A- 49
CUSTOM CHARACTER SETS
A- 57
INSTALLING A NEW CURSOR
A- 61
DOS ERROR MESSAGES
A- 65
II
12
15
18
29
25
32
37
42
CGC 79l:HJ
Preliminary DOS Manual
,-
SECTION 1 - THE DISK OPERATING SYSTEM
Page 1-1
CGC 7999
Preliminary DOS Manual
Page 1-2
Preliminary DOS Manual
:GC 7900
Page 1-3
INTRODUCTION
rhis is the manual for the Chromatics CGC 7900 Disk Operating
;ystem (DOS), an optional feature of the 7900 series of color
~raphic
computers.
The Disk
Operating
System
uses
two
jouble-density flexible disk drives for program
and
datastorage. A fixed disk drive with 10 megabytes of storage is
also available. The DOS option consists of these parts:
Disk drives
PROMs (firmware)
A diskette with system programs
This manual
The disk drives and PROMs are factory-installed, and should
require no attention by you· (except that the fixed disk may
require special unpacking; instructions for this· ·are attached to
your unit if applicable).
The diskette contains programs which provide an
interface
between the disk drives and your programs or data. Routines are
provided to save data onto a disk, to retrieve data from a disk,
and to manipulate the contents of the disks.
This diskette
should be handled carefully as you are learning to use the DOS.
You should make a copy of this diskette at your earliest
opportunity. Instructions for copying a diskette are included
in this manual (see the FORMAT. and COpy commands).
This manual begins by describing the commands and utility
routines available in DOS. In later sections, the Text Editor
and MC68000 Resident Assembler are discussed.
These
two
programs allow you to create text files and assembly language
programs on the disk, and to generate executable binary machine
code for the 68000 processor.
Detailed descriptions of the CGC 7900 special features, such as
the color graphics plotting capability, are not provided here.
Please refer to your User's Manual for information on other
aspects of the CGC 7900.
CGC 7908
Preliminary DOS Manual
Page 1-4
DISKETTES
DOS stores information on the surface of disks, which are coated
with a magnetic material.
Flexible diskettes, or
-floppy
disks,- area very reliable and convenient way to store data.
A
flexible disk will perform well for many hours of use, if a few
simple precautions are observed:
HANDLING - DO NOT touch the exposed surface
which is visible through a slot on either side
DO NOT attempt to remove the circular diskette
dark envelope. Handle the diskette carefully,
it.
of the diskette,
of the diskette.
from its square,
and do not fold
LABELING - A diskette is provided with adhesive labels which
should be used to note the contents of the diskette.
Write on
these labels BEFORE attaching the label to the diskette. If you
must write on a label after it has been attached to the
diskette, use a felt-tip pen and press gently. A ball-point pen
will crease the disk and may cause permanent damage.
INSERTING - To insert a diskette into a drive, first remove the
diskette from its paper sleeve. Hold the diskette gently, with
the label UP, and the arrow on the label aiming toward the
drive. Open the drive door by pressing the rectangular button
until the door snaps open. GENTLY slide the diskette into the
drive until it is completely inside the door (it may seat with a
soft -click-). Press the door shut.
To remove the diskette,
press the rectangular button again.
STORAGE - When a diskette is not in use, it should be removed
from the drive and stored in its paper sleeve.
Store the
diskette away from dust, away from extremely high or low
temperatures, away from moisture, and AWAY FROM MAGNETIC FIELDS.
Protect the diskette from magnets, motors, transformers, or
anything else which could create magnetism.
OPERATION - When a disk drive is in use, the red light in the
drive door will illuminate.
It is extremely important that
nothing interfere with the disk while this light is on. While a
disk is in use, removing the disk, pressing BESET on the
keyboard, or turning the power off, may damage the "data on a
disk.
:GC 7900
Preliminary DOS Manual
Page 1-5
rhe fixed disk is a sealed unit, located in the base of the 7900
=hassis. It is not subject to many of the restrictions above,
since it is hidden away from normal view. But the warning about
interrupting a disk operation in progress is still valid: if you
bave any reason to believe the system is accessing your fixed
disk, DO NOT press RESET or otherwise interrupt the process.
If
you give the system a command to access the fixed disk, be sure
the command has been completed before turning the system off or
pressing RESET.
WRITE-PROTECTION - A flexible diskette may be protected from
accidental destruction by uncovering its write-protect notch.
Some diskettes are shipped with the notch covered, and some have
it uncovered when you receive them. In either case, the notch
must be covered or DOS will not be able to write on the disk.
The write-protect notch is a small (1/4-) hole on the front edge
of the disk.
CGC 79""
Preliminary DOS Manual
Page 1-6
Preliminary DOS Manual
CGC 7900
Page 1-7
ENTRY INTO DOS
The Disk Operating System is entered by pressing the labeled key,
The DOS log-on message should immediately appear on the screen.
If this does not happen, it can be because the state of the
system is not what DOS expects to find (for example, if the
screen is not connected as the proper output device).
You can
optionally enter the Disk Operating System by striking three
keys,
RESET
CTRL BOOT
This sequence initializes
cause entry into DOS.
~
the
entire
system
and
will
always
The DOS log-on message should now appear:
CGC Disk Operating System --- Version 1.4
Copyright (c) 1981 by CHROMATICS, INC.
ENTER USER PASSWORD =
DOS will print its version number. This number should be
in any communications to Chromatics concerning the DOS.
noted
The DOS log-on message will request your User Password. At this
point, you may enter a 2-character password and press the RETURN
key, or you may simply press RETURN.
If you do not enter a
password, you will only have access to Public files which are
not assigned a password. If you do enter a password, you will
have access to all Public files, as well as any files whose
password matches yours.
Legal characters for a User Password are: digits 8-9, upper and
lower case alphabetic characters, and these special characters:
[ \ 1
~
_ ' { I } -
Entering any other characters may cause the
your password and assign you to Public files.
system
to
ignore
CGC 790.
Preliminary DOS Manual
Page 1-8
NOTE: The User Password system in DOS is not· designed
to offer a high level of protection. Its main purpose
is to help organize files into groups, so that a user
will see only the files he must work with.
This is
especially important in the case of the hard disk,
where several hundred files may exist in the directory.
After completing the log-on procedure,
asterisk (*) as its prompt character. The
DOS is ready to accept a command.
DOS prints a green
asterisk means that
Preliminary DOS Manual
CGC 7909
Page 1-9
DOS COMMAND LINE
When you are entering commands to DOS, all of the text editing
functions labeled on the cursor keypad may be used to edit your
input line. The left and right arrow keys move the cursor.
around on the input line. the ~ key moves the cursor to the
beginning of the input line. The functions labeled in blue are
accessed by holding the ~ modifier and pressing the indicated
key: these functions are Insert Character, Delete Character,
Clear Line, and Clear EOL. Pressing RECA~L brings back a copy
of previous lines. RECALL and SHIFT RECALL may be used to
retrieve any line from the "Recall Buffer." Once recalled, a
previously entered line may be edited with the other functions.
Regardless of where the cursor is on the input line, ALL
characters visible on the input line are accepted when the
RETURN key is pressed. DOS does nothing with your commands until
you press RETURN.
If you press PELETE instead of RETURN, DOS
ignores the line you typed.
(All of these functions are a part of the Inline Editor, used
for DOS, the Monitor, and other 7900 programs.
The Inline
Editor is discussed in more detail in the 7900 User's Manual, and
in Section Two of this manual.)
DOS commands are described in detail in this
simple words or abbreviations, such as
DIR
manual.
Most
are
files
on
(followed by RETURN)
which lists the directory of a disk (the names of
that disk).
the
You may enter several DOS commands on the same line, separating
them by a colon (:). For example, the following command would
list the disk directories from drives I and 2:
DIR/l:DIR/2
(No space should be typed on either side of the colon.)· You may
type as many commands as will fit on a single line of the
screen. If any command causes an error, DOS will not process
the rest of the commands on that line.
CGC 7999
Preliminary DOS Manual
Page 1-19
DISK FILE NAMES
DOS is a file oriented system. When you type a command . to DOS,
you are actually entering the name of a disk file.
DOS looks
for the' file, and if the file is found (and is executable), it
is loaded into memory and executed.
A file name may have several parts:
The primary name, which may be one to eight
characters, and may contain the special characters
[
\
]
",
alphanumeric
, { I ,} -
The secondary name, which
is
always
three
alphanumeric
characters. The secondary' name is separated from the primary
name by a period (decimal point).
The secondary name is
optional. If it is omitted, DOS will usually append a secondary
name to the file name (depending on what the file name is to be
used for).
A password, which must match the password assigned to the file.
The password is separated from the name by a dollar Sign ($) •
If a password is entered, it must precede the drive number.
The
password is optional. If it is omitted, it is assumed to be the
password under which you logged onto DOS.
A drive number, identifying the disk drive on which the file
resides. The drive number is separated from the name by a slash
(f). The drive number is optional. If it is omitted, it will
be assumed this file resides on the same drive which responded
to the last DOS command (the drive from which the last command
was loaded).
The four parts of a file name (primary name, secondary name,
password, drive number) must occur in the order listed.
If any
of the optional parts are omitted, the remaining parts must
occur in the required order.
CGC
Preliminary DOS Manual
79~"
Page 1-11
Examples of legal file names:
FILEname
STORY.SRC
PROGRAM/2
USRT29NE$PW
LISTING.OBJ/l
HardLuck.BUF$ED/3
Examples of improper file names:
THISISTOOLONG
Too many characters in primary name only the first eight characters would
be recognized, so this is equivalent
to THISISTO. It would, however, still
be accepted.
oops/A
Illegal drive number.
NOWAYl.SYS
Illegal character in primary name.
BADone.GO
Secondary name too short.
Wrong/l.SRC
Incorrect order.
CGC 7998
•
Preliminary DOS Manual
Page 1-12
Preliminary DOS Manual
CGC 7900
Page 1-13
DISK DRIVE NUMBERS
The CGC 7900 supports up to three disk drives: two flexible disks
and a hard disk. Many disk commands require specifying the drive
number of the disk to which the command refers.
The followin~
numbers apply:
Drive 1:
the left-hand flexible disk
Drive 2:
the right-hand flexible disk
Drive 3:
the hard disk
You may always specify the drive number if you wish.
Anytime
you do not specify a drive number, DOS assumes you are still
using the same drive you used in a previous command.
'--
If a drive number of B (zero) is entered, it implies that DOS
should search all drives to locate the requested file.
The
search begins with drive 1. (If a new file is being created,
the drive number must be implicitly or explicitly specified, so
a drive number of zero is not allowed.)
When you enter DOS, immediately after pressing the DOS key, the
system does not know which drive you want to use.
The FIRST
command you enter to DOS acts as if you had specified a drive
number of zero, so DOS will search all drives in your system in
an attempt to execute the command. If this search succeeds, DOS
now knows which drive you want to use, and it will stay with
that drive until you specify a different drive number.
On the other hand, if your first command to DOS fails (as it
would if you misspelled a command), DOS will display an error
message. DOS will now default back to drive 1.
The next
command you enter will assume that drive 1 is
in
use.
Therefore, if an error occurs in your FIRST command to DOS, let
your SECOND command specify a drive number unless you want to
use drive 1.
The feature of -remembering- the current drive applies' only to
commands. DOS only remembers where the last COMMAND carne from,
not the last filename. If you type:
KILL/2 filename/3
The KILL command is coming from drive 2, so DOS remembers drive
2 and will search it for the next command (unless you specify a
different drive number).
CGC 7900
Preliminary DOS Manual
Page 1-14
SECONDARY FILE NAMES
The following secondary file names are recognized by DOS:
.SYS
"System" file. These are executable by DOS, simply
by typing the file name as a DOS command. .SYS files
are not listed by the OIR command unless specifically
requested. .SYS files are called "transients" since
they are part of the set of DOS commands, but do not
reside in memory at all times. .SYS files are listed
in the directory in YELLOW •
• KIL
"Killed" file.
These are files which have been
removed from active status by the KILL command. A
.KIL file will be removed by COMPRESS, however it may
be recovered before COMPRESS by using RENAME.
.KIL
files are not listed by the OIR command unless
specifically requested. .KIL files are listed in the
directory in RED.'
All of the file types below are
listed in GREEN in the directory •
• SRC
"Source" file. These files contain ASCII text,
as the source code of an assembly program.
.BUF
"Create"Buffer" files. These files are created by
the BUFF command and recalled with DRAW.
They
contain commands used to draw pictures •
• PIC
"Picture" files. These files contain a dump of up to
two megabytes of image memory. They are created with
PICTURE and recalled with REFRESH •
• RLE
"Run-Length Encoded" files.
These files contain a
compacted version of the data from image memory.
They are created with IMPLODE and recalled with
EXPLODE •
• ABS
"Absolute" binary files.
These files contain a dump
of bytes from selected areas of memory.
They are
created with STORE and recalled with FETCH.-
such
CGC 79'H'
Preliminary DOS Manual
Page 1-15
FILE NAME PATTERNS
DOS allows a "pattern- to be u.sed in place of a file name under
many conditions. A pattern permits a single command to affect
several files at once, or permits a command to affect any file
meeting a set of criteria. Depending on the command, using a
pattern will either affect the FIRST file on a disk which
matches the pattern, or ALL files which match.
Details are
given in the descriptions of the individual commands.
A pattern may consist of any combination of these items:
A primary name
A secondary name
(example: .SYS)
A wild card -.- in either the primary or secondary name
A password
A drive number
If the primary
The asterisk -.- performs a special function.
name is an asterisk, it will match any file name.
If the
secondary name is an asterisk, it will match any secondary name.
If either field CONTAINS an asterisk (in addition to other
characters), the asterisk will match any single character in a
file name. If the asterisk is in the last position of a field
(in addition to other characters), it will match any set of zero
or more characters.
If the primary name is blank, an asterisk is assumed to be
inserted in place of the blank. This means that the following
two patterns are equivalent:
*.SRC
.SRC
Either of these patterns would match
name is .SRC (a text file).
any
file
whose
secondary
If the secondary name is blank, it will match any file EXCEPT a
.SYS or a .KIL file. These files are never matched except when
specifically asked for, by using a .SYS, .KIL, or .* pattern.
Preliminary DOS Manual
CGC 7998
Page 1:-16
Some examples of patterns:
A*
Matches any file beginning with -Aexcept .SYS and .KIL files
A*.*
Same as -A*-, but includes .SYS and .KIL
*.BUF
Matches any .BUF file
*.*
Matches ANY file
Patterns can be very convenient, but they should be used with
caution. Suppose a program created a set of scratch files, and
named them Xl, X2, and so on. They could all be removed at once
with the command
KILL X*
but this would also KILL any other files whose names
the letter X.
began
with
Preliminary DOS Manual
CGC 7999
Page 1-17
TRANSIENTS
Transients, or transient programs, are the files which make up
the set of commands DOS recognizes. By typing the name of a
command, you tell DOS to search the disk for the file with tha
same name. If the file is found, it is loaded and executed,
causing your command to be carried out.
This system of swapping commands in and out of memory as needed
gives DOS great flexibility. The entire DOS need never reside
in memory at once; only the current command is occupying space
in memory. Further, it is simple for you (or Chromatics) to add
commands to the set of commands DOS recognizes, by writing
assembly language programs to carry out the command.
Transients
are stored on the disk with a secondary name of .SYS, and are
not visible in the disk directory unless you specifically ask to
see them.
This section discusses the transients, or commands, supplied
with DOS. When typing in a command to DOS, the various parts of
the command line must be separated by delimiters.
Valid
delimiters are:
SPACE
comma (,)
Certain control-characters and punctuation marks will
as delimiters, but their use is not recommended since
make the command line difficult to read.
also act
it would
If a command line contains several file names, delimiters must
occur between the names. Only a SINGLE delimiter should be used
to separate each pair of items on the command line; i.e., you
should NOT type a comma followed by a space. This would usually
cause a RSyntax Error R message.
Preliminary DOS Manual
CGC 7991
Page 1-18
DIR
Format:
DIR
[]
[,]
RETURN
Where:
is a file name, or a pattern
which may contain wild cards.
are described below.
The DIR (Directory) command lists the files in the directory of
a disk. Several options can be specified to tell the DIR
command which files you are interested in.
Typing DIR by itself will give you a list of most files on the
disk whose password matches yours. Files with either a .SYS or
a .KIL secondary name are not listed when you type DIR.
If is included, only files matching the pattern are
listed. Some examples of using a pattern with DIR are shown on
the following pages.
If you want to examine the files of another user, you may enter
that user's password as part of the pattern.
It should be
separated from the rest of the pattern by a dollar sign ($).
~
You may use the DIR transient, residing on one disk, to examine
the files of another disk. This is normally done only if the
second disk does not contain the DIR transient.
It
is
accomplished by specifying the drive number of the .disk whose
directory is to be listed. This number is preceded by a slash
(I).
Preliminary DOS Manual
CGC 790S
Page 1-19
In the examples below, and on the following pages, the RETURN key
has been omitted, and a space bas been used as a delimiter, so
that the example will closely resemble what you will see on the
7900 screen.
DIR
List all except .SYS and .KIL files
DIR .*
List ALL files (including .SYS and .KIL)
DIR .SYS
List all .SYS files
DIR *.SYS
List all .SYS files (same as above)
DIR BR*
List all files whose names begin with
the letters BR. Possible matches would
be BR, BREAK, BROWN, etc.
DIR T*N
List all files whose names are three
characters long, begin with T, and end
with N (TEN, TON, etc.)
DIR $XY
List
DIR .*$XY
List all files under password ·XY·
DIR/2
List files on drive 2
DIR/l /2
List files on drive 2, using the DIR
transient living in drive 1
DIR/l .KIL/2
List all killed files on drive 2, using
the DIR transient from drive 1
fi~es
under password ·XY·
Preliminary DOS Manual
CGC 7900
page
~-~~
You can also append some options to the DIR command, using a
semicolon (;) to separate them from the pattern. These options
are:
P
List Public Files only, not the files under your
password (if you logged in with no password, this
is equivalent to listing the normal directory).
L
Give Long version of the directory, including the disk
name, address of next available space on the disk,
address and length of each filel and -attributeflags pertaining to each file.
S
Give Short version of the directory, with file names
only. Note: LONG version is default.
A
List files stored under ALL passwords.
Examples:
DIR ;P
List public files
DIR .*;P
List all public files
DIR .*;L
List all files, with details
DIR/3 .*;LP
List all public files on drive 3, with
details
DIR ; A L i s t files under all passwords (except
.SYS and .KIL files)
DIR .*;A
List files under all passwords, including
.SYS and .KIL files
NOTE: A SPACE must be present after the command DIR.
No space is used between a pattern (if any) and the
semicolon. This is illustrated in the examples above.
Preliminary DOS Manual
CGC 7909
Page 1-21
The disk directory is displayed in this form:
Free Address: $nnnn
DISKNAME
Free Length: $xxxxx
------------------------------------------------------ ---~-------
Filename
Prefix
Sfx
Status
••••••••
File
. File
Address Length
Samp1e12.SRC
w.......
$4999
File Origin
Date
Time
Last Accesa
Date
Time
$298
The disk is named ·DISKNAME.- The first free byte on the disk is
byte number $nnnn, and the length of the free space located at
that byte is $xxxxx bytes. (All numbers prefixed by the dollar
sign are in hexadecimal, base 16.)
One file is listed in this directory. It is named Samp1e12, and
has .SRC as a secondary name. The file begins at byte $4999 and
occupies $299 bytes of the disk.
It is write-protected (see
below).
The ·Status· column of a directory may show any of the
characters:
following
w
The file is write-protected.
d
The file is delete-protected and cannot be
destroyed by COMPRESS.
e
The file is execute-only.
o
The file is odd length. A file will only occupy
exactly the number of bytes it requires, unless
it contains an odd number of bytes. In this case,
a single extra byte of storage is used by DOS to
cause the file to occupy an even number of bytes.
Note the efficiency of this scheme, in comparison
with other disk operating systems which use blocks
of 128 or 256 bytes, regardless of the actual file
length.
k
The file has been KILLed.
CGC
79~'"
Preliminary DOS Manual
Page 1-22
If your system contains the optional Real-Time Clock, DOS will
also display time and date information in the directory.
The
last columns of the directory will show when a file was created,
and when it was last accessed.
The ·Free Length- entry in the directory always shows the length
of the largest free space available on the disk. If this number
approaches zero, the disk is getting full and should
be
COMPRESSed. See the COMPRESS command for details.
Preliminary DOS Manual
CGC 7999
Page 1-23
COpy
Format:
COpy