PCMOSv4UserManual PDF
PCMOSv4UserManual PDF
You should carefully read the following terms with any term or condition of the Agreement. You agree
and conditions before opening this package. upon such termination to destroy the Program together
Opening this package indicates your with all copies, modifications and merged portions in any
acceptance of these terms and conditions. If form.
Parr
you do not agree with them, you should LIMITS
promptly return the package unopenedto the EXCEPT AS STATED BELOWIN THIS SECTION THIS
person from whom you purchased it within PROGRAM IS PROVIDED “AS IS” WITHOUT WAR-
fifteen days from the date of purchase and RANTY OF ANY KIND, EITHER EXPRESSED OR IN-
your moneywill be refunded to you bythat PLIED, INCLUDING, BUT NOT LIMITED TO, THE iM-
PLIED WARRANTIES OF MERCHANTABILITY AND
person. If the person from whom you FITNESS FOR A PARTICULAR PURPOSE. THE EN-
purchased this package fails to refund your TIRE RISK AS TO THE QUALITY AND PERFORMANCE
money, contact TSL immediately at the OF THE PROGRAMIS WITH YOU. SHOULD THE PRO-
addressset out below. GRAM PROVE DEFECTIVE, YOU (AND NOT TSL OR
AN AUTHORIZED DEALER) ASSUME THE ENTIRE
TSL provides computer software contained on COST OF ALL NECESSARY SERVICING, REPAIR OR
the medium in this package (the “Program”), and CORRECTION. SOME STATES DO NOT ALLOW THE
licenses its use. You assume responsibility for EXCLUSION OF IMPLIED WARRANTIES, SO THE
the selection of the Program to achieve your ABOVE EXCLUSION MAY NOT APPLYTO YOU. THIS
WARRANTYGIVES SPECIFIC LEGAL RIGHTS AND
intended results, and for the installation, use and YOU MAY ALSO HAVE OTHER RIGHTS WHICH VARY
results obtained from the Program. FROM STATE TO STATE.
TSL does not warrant that the functions contained in
the Program will meet your requirements or that the
. You are granted a personal, non-transferable and operation of the Program will be uninterrupted or error
non-exclusive license to use the Program under ree.
the terms stated in this Agreement. Title and TSL does warrant, as the only warranty provided to
ownership of the Program and documentation you, that the diskette(s} on which the program is fur-
remain in TSL; nished, will be free from defects in materials and work-
b. the Program maybe used by you, your employ- manship under normal use for a period of ninety (90)
ees, or your agents only on a single computer; or, days from the date of delivery to you as evidenced by a
in a TSL-approved computer network whereall of copy of your receipt.
the Program’s data resides at one disk file server;
c. you and your employees and agents are required
to protect the confidentiality of the Program. You TSL’s entire liability and your exclusive remedy shall be:
maynotdistribute or otherwise make the Program 4. the replacement of any diskette not meeting TSL’s
or documentation available to any third party; “Limited Warranty” and whichis returned to TSL or
d. you may not copy or reproduce the Program or an authorized TSL dealer with a copy of your
documentation for any purpose, except you may receipt, or
copy the Program into machine readable or printed 2. if TSL or the dealer is unable to deliver a replace-
form for backup purposes in supportof your use of mentdiskette which is free of defects in materials
the Program. (Anyportion of this Program merged or workmanship, you may terminate this Agree-
into or used in conjunction with another program ment by returning the Program and your money
will continue to be the property of TSL and subject will be refunded to you by the dealer from whom
to the terms and conditions of this Agreement); you purchased the Program.
e@. you may not assign or transfer this Program or this IN NO EVENT WILL TSL BE LIABLE TO YOU FOR ANY
license to any other person without the express DAMAGES, INCLUDING ANY LOST PROFITS, LOST
prior consent of TSL; SAVINGS OR OTHER INCIDENTAL OR CONSEQUEN-
f. you acknowledge that you are receiving only a TIAL DAMAGES ARISING OUT OF THE USE OR IN-
limited license to use the program and the related ABILITY TO USE SUCH PROGRAM EVEN IF TSL OR
documentation, You acknowledge that TSL retains AN AUTHORIZED TSL DEALER HAS BEEN ADVISED
title to the Program and documentation. You ac- OF THE POSSIBILITY. OF SUCH DAMAGES, OR FOR
knowledge that TSL has a valuable proprietary ANY CLAIM BY ANY OTHER PARTY.
interest in the Program and documentation; and SOME STATES DO NOT ALLOW THE LIMITATION
g. you may use the Program in a multiuser arrange- OR EXCLUSION OF LIABILITY FOR INCIDENTAL OR
mentonlyif you license the multiuser versions of CONSEQUENTIAL DAMAGES SO THE ABOVE LIMI-
the Program and pay the applicable licence fee TATION OR EXCLUSION MAY NOT APPLY TO YOU.
based on the number of users on the system.
You must reproduce and inciude the copyright no-
tice on any copy, modification or portion merged You may not sublicense, assign or transfer the license
into another program. You may modify the Program or the Program except as expressly provided in this
for your ownuse, entirely at your ownrisk, provided Agreement. Any attempt otherwise to sublicense, assign
that the Program is used as specified in Section (b) or transfer any of the rights, duties or obligations hereun-
of this Agreement. der is void.
YOU MAY NOT USE, MODIFY, OR TRANSFER THE This Agreement will be governed by the laws of the
PROGRAM, OR ANY COPY, MODIFICATION OR State of Georgia.
MERGED PORTION, IN WHOLE OR IN PART, EX- Should you have any questions concerning this
cers AS EXPRESSLY PROVIDED FOR IN THIS LI- Agreement, you may contact TSL by writing to The
E. Software Link, Incorporated, 3577 Parkway Lane,
IF YOU TRANSFER POSSESSION OF ANY COPY, Norcross, Georgia 30092, USA.
MODIFICATION OR MERGED PORTION OF THE YOU ACKNOWLEDGE THATYOU HAVE READ THIS
PROGRAM TO ANOTHER PARTY, YOUR LICENSE iS AGREEMENT, UNDERSTAND IT AND AGREE TO BE
AUTOMATICALLY TERMINATED. BOUND BY iTS TERMS AND CONDITIONS. YOU FUR-
THER AGREE THATIT IS THE COMPLETE AND EX-
CLUSIVE STATEMENT OF THE AGREEMENT BE-
The license is effective until terminated. You may termi- TWEEN YOU AND TSL AND ITS DEALER (“US”)
nate it at any other time by destroying the Program WHICH SUPERSEDES ANY PROPOSAL OR PRIOR
togetherwith all copies, modifications and merged por- AGREEMENT, ORAL OR WRITTEN, AND ANY OTHER
tion in any form. It will also terminate upon conditions set COMMUNICATIONS BETWEEN US RELATING TO THE
forth elsewhere in the Agreementor if you fail to comply SUBJECT MATTER OF THIS AGREEMENT.
Trademark Netic 2
Copyright 1987, 1988, 1989, 1990, 1991 The Software Link, Inc. All “
rights reserved worldwide, No part of this publication may be
reproduced without the express written permission of The Software
Link,Inc.
Notice
In no event will TSL be liable to you for any damage, including any
lost profits, lost savings or other incidental or consequential damages
arising out of the use or inability to use any of the information
provided in this package.
Thou Shalt Not Dupe
People who would never walk into a store and shoplift a software
product think nothing of making several copies of the same software.
The results are the same. Theact is just as wrong.
Second, the price of software does not make unauthorized copying jus-
tifiable. The cost of a software product to a consumer represents only
a small fraction of the publisher’s marketing and developingcosts.
It’s obvious that legitimate software users are paying for theft along
with software developers. It’s obvious, too, that no one is going to put
up with it for long.
Think twice before you ask someoneto give you an illegal copy of
their software. Think three times before you offer to do it for someone
else. Softlifting or software piracy is not only a crime;it’s simply
wrong.
MOS-DIOL i
CHAPTER6: BATCH FILES- The batch file commands that MOS
recognizes as a job control "language" are explained in this chapter.
Batch files are used to automate a sequence of commands and —,
programs. This chapter provides many examples to help you write
your own batchfiles.
i MOS-DLSL
GLOSSARY- This section contains an explanation of the terms used
in this manual, listed in alphabetical order.
This will displays the contents of the file on your video screen, one
page at a time. Checkingthisfile will ensure that you are awareofall
features and commands in MOS,
MOS-DI91 iti
This page intentionally left blank.
iv MOS-DI9L
ao
TABLE OF CONTENTS
CHAPTER 1; OVERVIEW
VHAPTER 2: CONFIGURATION
MOS-DL9L
SLICE «0. ee ee es 2-27
SMPSIZE 2... kee ee 2-28
USERFILE 2... ee ee 2-30 os,
VTYPE . es 2-81
Device Names . 1... ee ee ee 2-37
Special MOS Device Drivers 2.0.00. cee ee es 2-38
SEMS.SYS 2... ee 2-38
SMOUSESSYS 20 2-40
$PIPE.SYS 0... te es 2-42
$RAMDISK.SYS «2... ee ee 2-44
$SERIAL.SYS 0... et es 2 - 46
Introduction . 6. we ee te 3-2
Naming Files 2... ec ee ee 3-2
File Extensions .. 1... ee te ee 3-3
Displaying File Names .. 2... 2 ee ee ee 3-3
File Characteristics . 2... ee ee 3-4
File Sizes 6. ee ee 3-4
Updated Date and Time ........... 000+ eee 3-4
File Attributes... 0. es 3-4
Classand UserID... 2... ee et 3-5
Creation Date and Time ..... 0... 0... 0+ eee 3-5
File Sharing ©. 6. ee eee 3-5
Wildcard Characters 2... 0... ee ee 3-5
File Maintenance .. 1... 6. ee ee ee ee 3-7
Directories 2... 3-8
Directory Structure . 0... ee 3-9
Directory Names... ee 3-10
Organizing Directories ... 1... ee te ee 3-11
Directory Maintenance ....... ee ee ee 3-11
Displaying a Directory . 2... 6 ow 3-13
Displaying a Directory Structure... 2... 6. ee 3-14
vi MOS-DLOL
CHAPTER 4: GENERAL COMMANDS
MOs-DL91
ONLY 20 ee eee 4 - 68
PATH 26 4-71
PROMPT .. 1. ee ee 4-73
RD. 4-76
REL ow 4-77
REMDEV .. 0. 1 ee ee 4-78
RENAME .. 1. ee ee ee 4-79
SEARCH 2... ee ee ee 4 - 82
SET 20. es 4-84
TIME ow ee ee 4-86
TYPE 2. ee ee ee 4-88
VERIFY 26 ee ee 4-90
LWVER 20 es 4-93
CHAPTER 5: MULTI-TASKING/MOLTLUSER
viil MOS-DiS1
MOS USEIRQ .......-. 00 ee eee eee 5-23
-MOS FREEIRQ@.. 2... 2. ee ee ee 5 - 26
MOS IRQ 2... ee 5-27
«MOS WAIT . 0... ee ee 5 - 28
“MOS VMODE... 1. 2. ee ee ee ee 5 - 29
-MOS SERINIT ... 2... 00... ee ee ee es 5 - 80
-MOS ROUTE (COMn) .......... 2.00002 eee 5-31
-MOS ROUTE (LPTn). 2... ee ee 5-31
-MOS ROUTE (TERM) ....... 2... 0 008 eee 5 - 32
“MOS ROUTE (NOTERM) ........0.. 054 ee ee 5 - 32
“MOS RESIZE... 1. te 5 - 32
“MOS INFO 1... ee ee es 5 - 33
‘MOS DSPORT .. 1... 0... eee eee eee es 5 - 35
“MOS MOUSE... 2... 0. ee ee es 5 - 36
sMOS KEYB .. 2... we 5 - 38
Foreign Keyboard Drivers ......... 002 eee 5 - 39
»MOS FILES... 0 ee 5-40
*-MOS HOLD LPTn ....,...0 0.05. eee eee 5 - 40
MOS TSR... ee ee te 5-41
‘MOS ANSI .. 2... ee 5 - 42
sMOS DOSVER ... 2... 0. ee et te ees 5-42
The .MOSADM Utility Command ............... 5 - 48
-MOSADM SLICE... 6.0. cee ee es 5-44
-MOSADM PRI .. 0. ce es 5-45
-MOSADM CACHE ......... 0000 eee ewes 5 - 46
.MOSADM SWITCH ... 1.2... 0. ee ee en 5 - 46
-MOSADM TMFACTOR ... 2... 0.00 ee eens 5 - 46
-MOSADM HOLD LPTn ... 6... eee ee ee 5-47
-MOSADM VIRQ .. 1... oe ee es 5-48
-MOSADM RESET ...... 2.0.02 eee ee ees 5-48
-MOSADM TIME .. 1... ee ee 5 - 49
-MOSADM EMSLIMIT ..........0 0008 8 ee ess 5-49
Connecting Terminals and Workstations ........... 5 - 52
Terminals vs Workstations .......6.-0 0 ee eas 5 - 52
Serial Ports 2... ee 5-53
Cable Connections .... 0... ee ee 5-538
Modem Cable Connections .........00 06+ wee 5-54
MOS-D191 ix
Terminal and Workstation Device Drivers. ........63 5-55
Terminal Display Differences... 0... ee 5-57
Escape Sequences for Non-PC Type Terminals ........ 5 - 58
Escape Sequence Chart... 0.5... eee ee ee ees 5-61
JKKEYMAP .. 1... ee we en 5 - 62
Modems .. 1 wee ee 5 - 64
MODEM.COM. 1.1... 60. ee ee es 5 - 64
Defining Modem Types ...........200 0 ee ee 5 - 65
SunRiver Terminal Driver .. 1... 0.000. 0c e pues 5 - 66
MOS System Monitor .. 2... ee ee ee en 5-68
x MOS-DI91
2),
MOS-DI91 xi
CHAPTER. 8: DEBUG
“il MOS-D191
7-COPROCESSOR.. 1.1... eee eee ee ee 8 - 40
\-SWAP SCREEN .......0.. 00000 e eae 8-41
o_, !-SHELL 2... ee ee ees 8-42
".PAUSE 2.0.0. ee ee ee es 8-438
:-DELAY 2.0. ee es 8-44
3*-REMARK . 2... 000. 0c eee tee ee eens 8-45
?-HELP.. 1... es 8 - 46
Using .DEBUG Commands ..... 2.0. cee ee ee ne 8-47
CHAPTER 9: SECURITY
eo
MOS-DLOl xii
CHAPTER 10: PRINT SPOOLER
GLOSSARY 2. ee ee G-1
TINDER ce cc we ee I-1
RLY MOS-DLO1
CHAPTER 1:
OVERVIEW
MOS-D191 L-i
Overview
Introduction
This manual explains all the commands available in MOS, and how
they may be used. If you have the single-user module, the multi-user
information in this manual will not apply, although it will give you a
preview of MOS’s full potential. All other information in this manual
applies to all versions of MOS.
am
L-2 MOS-DLO1
Special MOS Features
You may optionally establish security with MOSat the user level.
You may securefiles or entire directories from unauthorized use, and
assign your own passwords and user ID codes. MOSsecurity lets you
selectively determine levels of access for users to individualfiles,
directories and multi-tasking partitions. An advancedsecurity fea-
ture lets you further define your own encryption key for even greater
security.
An. on-line help facility is built into MOS andis always available. You
may use the .HELP commandto display a menu ofall the commands
available in MOS, or display only the correct form and an explanation
of a specific command. You may bypass the menu by entering .HELP
and the nameof the commandtodirectly display the command form
and an explanation.
MOs-DISI L-3
Overview
When MOSis booting up, it must find places in memory to use for the
MOSkernel, the SMP (System Memory Pool), the disk cache and the
video save area.
Changes have been made in the way MOS relocates certain key com-
ponents of the system into high memory to free more memory for in-
dividual tasks. The MOS kernel has been divided into two discrete
segments that can be relocated independent of one another, Also,
MO$8’s initialization procedure first relocates the two MOS kernel seg-
ments into FREEMEM,then the SMP,then the commandprocessor,
then the video save area, andfinally the disk cache.
You must tell MOS what type of memory management device you
have in your computerfor it to function properly. This is done with
the MEMDEVconfiguration Command Statement. The MEMDEV
statement must be part of the configuration set up in your CON-
FIG.SYSfile. The VIYPE configuration Command Statement allows
a user to control certain aspects of MOS’s memory allocation, and
thereby, task size limits. By telling MOS what type of video is being
used, certain memory not in use for video may be assigned for use as
task memory. The VITYPE statementis part of your configuration set
up. andis only possible when a memory management driver is being
used.
Le-4 MOS-DIOL
Support for 8088, 8086 & 80286 (Non-Memory
Managed) Environments
Also, when any tasks are added, they must use the same low memory
area. Note that the memory for the new task will be taken from the
top of the task from which the ADDTASK commandis issued. On a
640K system, with a moderately sized SMP (SMPSIZE=40K), two
tasks of approximately 240K should be possible.
MOS-DLOL 1-6
Overview
Video Handling
VIDPATCELCOM
Some applications also directly control the cursor and sound.In these
cases (on 80286, 8086 and 8088 machines) the video will be correctly
output to the background partition, but the foreground cursorwill
move and any beeps will be heard from the foreground:
VIDPATCH [Menamel
1 MOS-DLGL
BE SURE TO SAVE THE OLD VERSION OF ANY PROGRAM
THAT YOU MODIFY WITH VIDPATCH... you will wantit for back-
up, and also to take full advantage of the application when run at the
main console.
MOS-DI91 L-?
Overview
MOSFiles
$$MOS.SYS This file contains the MOS kernel, the core of the
operating system, and several MOSdevice drivers.
There are several special device drivers provided with MOS. These
device drivers are containedin files that are identified by a preceding
dollar sign and an extension of .SYS. They are:
MOS-D181
$RAMDISK.SYS This device driver lets you define a section of ex-
tended memory that MOStreats as a disk device.
This is sometimes referred to as a virtual or RAM
disk.
There are somefiles that are not provided with MOS, but MOS will
recognize and usethesefiles for special processing functions. These
are files that you may create to define your own processing require-
ments and needs. Thefiles you may create for special processing func-
tions with MOSare:
MOS-DL9I
Overview
Whenyou begin to install and set up MOS, there are a few terms you
need to understand. The following is an explanation of these terms. If
you find a term in this manual that you don’t understand,look in the
Glossary at the end of this manual.
multi-user The ability to have more than one user running the
programsthat share the central processing unit in
your computeris referred to as multi-user.
MOS-DILSI
partition A partition is a portion of your computer’s memory
where a program may be processing independently of
any other program,i.e., multi-tasking. Each partition
is identified by a unique task ID number.
oof,
MOS-D19L
Overview
1-12 MOS-DI191
Command Line Editing
When you boot MOS, the system prompt appears and MOSis ready
to accept a commandentry. Thefirst time you boot MOS, the prompt
appears on your screen similar to the following:
[AN
The underscore following the prompt is the cursor, which is posi-
tioned at the beginningof the line where you will enter all com-
mands. The cursor gives you an indication of your location on the
screen.
You may retrieve the most recentline in the buffer by pressing the
Up-Arrow key,or retrieve the oldest. line in the buffer by pressing the
Down-Arrow key. You may clear the buffer by pressing the CTRL
PgDn keys.
MOS-DI91 1-15
Overview
1-14 MOS-DIGL
Beginning with the oldest entry in the command
recall buffer, recalls one line at a time. Each addition-
al time you pressthis key, it recalls the next succeed-
ing entry. After the most recent entry has been
recalled, the oldest entry appears again.
CTRL END Deletes all data from the cursor position to the end of
the line.
CTRL PrtSe Causes data echoed to the video screen to also echo to
oo, the printer.
MOS-DI91
ot
food
ped,
a
oN
MOS-D191
CHAPTER2:
CONFIGURATION
BO0BT Le ee ee 2-4
CACHE . 1... 2-5
COUNTRY... 0. ee 2-15
DESNOW ... 0. ee ee 2-16
DEVICE & LDEVICE..........0. 0 eee eee 2-17
FREEMEM ..... 2... cee eee ee ee eee ee 2-19
MEMDEV ..... 2... ee eee ee ee ee ee 2-22
SHELL... ee 2-26
SLICE 2... ee ee es 2-27
SMPSIZE 1.0. ee 2 - 28
USERFILE . 2... ts 2 - 30
VTIYPE . 0. ee ee ee 2-31
$EMS.SYS .. 0.0. ee ee 2 - 38
$MOUSE.SYS . 0... ee ee 2-40
$PIPE.SYS 2... ee ns 2-42
$RAMDISK.SYS .... 0... 00 eee ee ee eens 2-44
$SERIAL.SYS .. 0... ee ee es 2-46
MOS-DILSL 2-3
Configuration
Introduction
Creating a CONFIG.SYSFile
An 2 MOSs-D191
The command statements and default values that are necessary to
MOSare explained in this chapter. MOS also contains built-in device
drivers that you do not have to define in the CONFIG.SYSfile, and
some optional device drivers that you must define if you want to use
them. Thebuilt-in and optional device drivers are explained following
the CONFIG.SYSfile command statements.
You can create a CONFIG.SYSfile with the MOS system editor, .ED.
The MOSeditor lets you create a file and add, delete, or insert lines
in the file. The MOSeditor is explained in detail in a separate chap-
ter of this manual.
The following pages explain the command statements you may want
to set up, along with any default values used when a CONFIG.SYSis
not present, or when a specific command statementis not present.
The command statements are explained in alphabetical order, but
maybe entered in thefile in any order.
MOS-D191 a-d
Configuration
8087
Type: Intrinsic.
Form: 8087=yes
Operands:
Explanation:
In order for more than one application to use the math coprocessor
simultaneously in a multi-tasking environment the 8087=yes com-
mand statement must be entered in your CONFIG.SYSfile.
Zo 4 MOS-DISL
CACHE
Type: Intrinsic.
Operands:
nnnn enter the total size of the cache in kilobytes. This is the
total amount of memory reserved for caching read and
write requests. Defaults to 16K if not specified.
unit enter the size in kilobytes of one unit of data that may be
read at one time. This is the size of each individual buffer
in the cache. Defaults to 2K if not specified.
MOS-D191
Ibo
Oe
5
Configuration
drives enter the letter of each drive to make use of the cache.
Use a commaas a delimiter between each driveletter, for
example: C,D,E. Leaving this operand blank causes MOS
to use caching on all available drives. (Do NOT leave this
operandblank if network drives other than LANLink
drives are active.)
/BPS=nnnnn This option allows you to specify the Bytes Per Sector
value for your hard drive when OnTrack’s Disk Manager
was used to partition the drive. The nnnn valuesare as
follows:
HardDisk _—iBytes/Sector
Explanation:
MOS-DIOL
be
Oo
e
If MOSdoesnot find the CACHE= commandstatement but thereis
an old $CACHE.SYSdriver installed, caching will still be active on
the system since the DEVICE=$CACHE.SYSstatement is supported
as an internal command.Thesize operand from the $CACHE.SYS
statement will set the cache size. The old $CACHE.SYSbuffer ad-
dress operand is ignored. The remainderof the operands that would
have been specified by the CACHE= statementwill assume their
default values.
MOS-DLOl ya
wl
Configuration
For hard disks we suggest you start with 4K, and adjust this number
down if your processing speed does not seem fast enough. For floppy
disks we recommendyou use a unit size of at least one to two tracks
of your particular disk, as follows:
If either firstw or lastw is used and the cached drive is a floppy disk
drive, MOS will cause the drive light to stay on from the time an ap-
plication wants to write something until everything has been physical-
ly written to disk. This is to remind you not to removethe floppy disk
from the drive until the drive light goes out, since all your data may
not have been written from the cacheto the floppy disk.
2-8 MOS8-D191
Thefirstw "clock" starts timing the first time an application wants to
write something to disk. If and when the specified time expires, MOS
a,
looks through the cache andphysically writes everything to disk,
clearing firstw (and lastw,if set). Firstw will also be cleared if the
cache writes to disk because the cacheis full or because the lastw
timer expires. "Cleared" means that the clock stops timing and any
remaining time on the clock is erased. Once cleared, the firstw "clock"
will not reset until the next time an application makes a write re-
quest. "Reset" means to start timing over again from theoriginal set-
ting.
MOS-D191
i]
ee
t
Configuration
In the following example firstw is set to 600 (10 minutes) and lastw is
set to 120 (2 minutes):
CACHE#=1024,4,600,1720,C
Upon thefirst write request, both the firstw and lastw "clocks" start
timing. If no other write requests are made within two minutes, lastw
will expire and all data in the cache will be written to disk, clearing
both lastw and firstw. Both will reset and start timing again upon the
next write request.
If another write request did occur before the two minute lastw "clock"
expired, the lastw "clock" would reset to two minutes and start timing
over again (while the firstw "clock" would keep on counting from its
original ten minute setting), If all time intervals between write re-
quests are less than two minutes, lastw would keep resetting to two
minutes with each request and never expire. If this continues, the ten
minute firstw "clock" will ultimately expire and cause all data in the
cache to be written to disk, clearing both "clocks". Upon the next
write request, both "clocks" will reset and start timing again.
2-10 MOS-D191
Large Volume Support with OnTrack Disk Manager and /BPS
The Disk Manager software changes the standard 512 byte/sector set-
ting for large hard disk volumes. Therefore, you must include the
/BPS(bytes per sector) operand with the CACHE= statement. Also,
the "unit" operand of the CACHE= statement MUSTbe setto at least
the same numberof kilobytes as the BPS value for the setup to work
correctly.
oo The following are the BPS values that Disk Manageruses for various
hard disk volumes:
CACHE=2048,4,0,0,C,D /BPS=4096
MOS-DI191 2-11
Configuration
Note that 2048 is the cachesize, 4 is the unit size (in kilobytes) and
the /BPS=4096 sets the bytes/sector value. Note also that the two
zeros are the settings for the firstw and lastw timers, which effective-
ly disables write caching. C and D are the drives to be cached.
If you have more than one logical disk, say a 32MB, and 168MB on
the same physical hard disk you must use the Bytes/Sector value for
the largest one, in this case /BPS=4096.
Note that Disk Manager only allows one bootable partition when you
have multiple logical disks (partitions). This means that you can not
set up a dual bootable DOS and MOSsystem on one hard diskifit
waspartitioned with Disk Manager. Another Disk Manager limita-
tion is that the first logical partition can not exceed 32MB. If you re-
quire multiple bootable partitions, you must use HDSETUP to
partition the hard disk.
NO'TE: If you use Disk Manager (or HDSETUP)to set up your hard
disk and you want both PC/MS-DOS and PC-MOSto be able to read
all disk partitions, the C drive mustbe less than or equal to 32MB
and you must NOT use a DOSversion greater than 3.x. (DOS 4.x ver-
sions no longer support the samedisk partitioning structures as pre-
vious versions of DOS.)
jon
i)
S
O2
a
‘S
BS
food
bol
ft
IMPORTANT CACHING RULES;
1. NEVERopen a floppy disk drive door with the drive light on.
4. NEVER cache a network drive. Only cache drives that are local to
each machine.
MOS-Di91 2-13
Configuration
Choosingretry will try to flush the data to disk again. Choosing abort
will clear the error without flushingall of your changed data to that
disk. (Abort should only be used asa last resort since all of your chan-
ges for that disk will be lost.)
4-14 MOS-D191
COUNTRY
Type: Intrinsic.
Form: COUNTRY=nnan
Operands:
nnn enter the three digit telephone system code of the country
to define.
Explanation:
The value of nnn is a three digit country code that corresponds to the
three digit telephone system code for a country. If you do not set up a
country code, MOS defaults to the USA telephone system codeof 001.
The other codes supported by MOSare:
MOS-DLOL
Configuration
DESNOW
oy
DESNOWcorrects a snow-like effect that appears on color video
screens with some color adapter cards. If MOS does not find the DES-
NOW command statement in the CONFIG.SYSfile, the special logic
for rewriting to the video screen is not used.
Type: Intrinsic.
Form: DESNOW=yesino
Operands:
yes enter yes to use the special logic that avoids snow when
rewriting to the video screen.
Explanation: a
216 MOS-D191
DEVICE & LDEVICE
Type: Intrinsic.
Operands:
a: enter the letter of the drive from which you wantto load
the device driver. MOS defaults to the current drive if a
drive is not entered.
\path| enter the path of the directory where the device is located.
MOS defaults to the current directory if a directory is not
entered.
Explanation:
MOS-D191 aol?
Configuration
There are optional device drivers supplied with MOSthat you must
define with a DEVICE commandstatement in the CONFIG.SYSfile
if you want to use them. The standard and optional devices are ex- —_
plainedlater in this chapter.
There are also other non-industry standard device drivers that you
may need to enter in the CONFIG.SYSfile. For example, if your com-
puter has a hard disk that is not bootable with MOS, you probably
need a device driver supplied by the manufacturer of the hard disk.
aos
2-18 MOS-DLOI
FREEMEM
Type: Intrinsic
Form: FREEMEM=m,niN
Operands:
Explanation:
The memory addresses between 640K (A0000 hex) and 1MB (100000
hex) of your computers RAM is typically reserved for use by certain
hardware devices installed in your computer. Some of these are: video
adapter boards, network interface cards, and the system BIOS. How-
ever, many systems have unused blocks of memory addresses in this
space that may be used by MOS.
MOS-D1L91 2°19
Configuration
Video adapters typically use the area between A0000 and C8000.
VGA boards normally useall of that area, while EGA boards normal-
ly only use A0000 to C4000. Hercules mono-graphics adapters usually
use from BO0000 to C0000. CGA normally uses from B8000 to C0000.
MONOnon-graphics adapters usually use from BO0000 to B4000.
alwayscase. Check with your board manufacturer
to determine the exact addresses used by your video adapter. oN
2 BO MOS-DLOL
To be sure MOSdoesnot use this address, the FREEMEM command
statement you should enter in the CONFIG.SYSfile is:
FREEMEM=C0000,E0000
This tells MOS that the memory segments from C0000 to E0000 are
available, and MOSwill not attempt to use any memory before or
after this address range. The memory segments from E0000 to FO000
are then available for use with the $EMS.SYS device driver.
MOS-D191 ao 2a
Configuration
MEMDEV
Type: Intrinsic
a: enter the letter of the drive from which the system driver
is to be loaded.If a drive is not specified, MOS defaults to
the current drive.
ath enter the path of the directory from which the system
3
ba
filename enter the complete file name of the system driver used for
your computer system. There is no default, you must
specify the correct system driver file name. The system
drivers supplied with PC-MOSare:
MOS-DL91
enter the /f operand if you want to force the memory
check portion of the power-on self-test (POST) routine to
be done during a warm reboot (CTRL-ALT-DEL). Normal-
ly the memory check is not done during a warm reboot so
the reboot process take less time.
MEMDEV=$386.SYS |e
Oneof the next operands is necessary only if you have a hard disk
that uses the DMA (Direct Memory Access) channel:
NOPE: If these DMA operands are needed and not included the sys-
tem may stop booting and lock up when it reaches the MEMDEV
statement. You might also receive a "cannot open $$MOS.SYSfile"
message during boot-up if your hard disk needs a DMA buffer and
one was not specified.
MOS-D191 Z- 2
Configuration
Explanation:
You must tell MOS which type of memory management you have on
your system for it to function properly. (There may be other system
drivers besides those provided with PC-MOS.) The drivers supplied
with MOSare asfollows:
$386.SYS
MEMDEV=$386.SYS fp
$GIZMO.SYS
MEMDEV=$GIZMO.SYS
MEMDEV=$GIZMO.SYS /e
$CHARGE.SYS
MEMDEV=SCHARGE.SYS
2~ 24 MOS-DI9I
$ALL.SYS
oo
Users of the ALL Computers, Inc. ALL CARD should use the
$ALL.SYS system driver, as follows:
MEMDEV=$ALL.SYS
$286N.SYS
MEMDEV=$286N.SYS
If you use a DMA buffer that is too small the disk read or write is
broken up into as many pieces as required. For example, if a hard
disk requires a 64K DMA buffer (the /e operand) but you set a 16K
buffer with the /p operand, a 52K readwill be broken up into three
reads of 16K and one of 4K. Disk operations which are broken up to
work with a smaller buffer will, of course, take more time. However,
you get more memory space for tasks.
Therefore, you must choose your DMAbuffer size with these trade
offs in mind. Too large a buffer = reduced task size. Too small a buffer
= reduced disk performance.
Configuration
SHELL
eo
SHELL is a user interface that specifies the location and name of a
user defined commandprocessor that loads in place of MOS’s com-
mand processor. MOS defaults to using COMMAND.COMif the
SHELL commandstatement is not found in the CONFIG.SYSfile.
Type: Intrinsic.
Operands:
d: enter the letter of the drive from which to load the user
defined command processor. MOS defaults to the current
drive if a drive is not entered.
\path| enter the path of the directory where the user defined
commandprocessor is located. MOS defaults to the cur-
rent directory if a directory is not entered. —_
Explanation:
2-26 MOS-D191
SLICE
Type: Intrinsic.
Form: SUGE=nnn
Operands:
Explanation:
The default for SLICE is 1. This instructs MOSto give each partition
one time tick (approximately 1/18 of a second) of processing time
before MOS movesto the next partition. Processing time is continual-
ly shared amongthe partitions in turn. For example,if there are
three partitions, 1, 2 and 3, of equal priority, MOS shares processing
time amongall three. First 1 receives one tick of processing time,
then 2 receives one tick, then 3 receives one tick, then 1 again receive
onetick, then 2,etc.
MOS-D191 2-28
Configuration
SMPSIZE
Type: Intrinsic.
Form: SMPSIZE=nnank
SMPSIZE=non,nonk
Operands:
Explanation:
Each time a file is opened or a new task is started, MOS uses memory
from the system memory poolto track the activity. When thefile is
closed or the task is completed, the memory used to track the activity
is returned to the system memory pool andis available for other
tasks.
SMPSIZE=128K
2-28 MOS-D191
SMPSIZE=80,20K
This will result in two separate SMPblocks, an 80K block and a 20K
block. This split SMP statement will now allow the SMP to berelo-
cated up in high memory, increasing available task size. (This ex-
ample presumes, of course, that no single device driver requires more
than 80K of memory.)
If you do not specify the size of the system memory pool, MOS
defaults to 64K of memory. This is a reasonable value for many sys-
tems.
1. The sum of the size of each device driver loaded with the
DEVICE= statement in your CONFIG.SYSfile.
4. Total the first three items and add an additional 30% forfile
handles.
Don’t make your SMPlarger than necessary since it may take away
from tasksize if it can not totally relocate itself into high memory.
The maximum allowable value for SMPSIZE varies with system con-
figuration. In a system configured to allow MOSto relocate (see
FREEMEM), the maximum SMPSIZEis 440K bytes. In systemsthat
do not allow MOSrelocation, the maximum is 360K bytes.
MOS-DI191 2-29
Configuration
UOSERFILE
Type: Intrinsic.
Form: USERFILE=d:|path|\$$USER.SYS
Operands:
Explanation:
2° 36 MOS-DLO1
VTYPE
Type: Intrinsic
Operands:
MOS-DLS1 2-31
Configuration
Explanation:
The following table lists typical video adapter memory mapping ad-
dresses. the
difernt
manufacturers. Consult the manufacturer or your video adapter for
more specific information.)
Adapter Addresses
Mono-Text Only BO000 - B4000
CGA B8000 - C0000
Hercules Mono Graphics BO000 - C0000
EGA A0000 - C4000
VGA A0000 - C8000
2- 32 MOS-DI91
In a PC-MOSsystem that has a variety of video types to emulate,
select a VTYPE that will accommodate the highest video graphics
mode that is saved under PC-MOS. Thefollowing table summarizes
the various VTYPE options. A detailed explanation of each VIYPE
follows thetable.
Video F option
VTYP Save Area Task Fill
K Size Area
The upper memory limit for tasks is available base memory (e.g.
A0000 for a 640K system).
A 16K memory area is reserved for the video save area to allow for
the largest. possible need. Even if the video adapter in the master con-
sole is monochrome, which would only require a 12K video save area,
a 16K area is reserved to handle CGA tasks which could be started
using EMULINK or a CGA type terminal. (Monochrometasksstill
only allocate 12K of extended memory for their video save buffer).
MOS-D191
Configuration
VIYPES1
The new upper memory limit for tasks is BOOO0. This means that the
area from A0000 up to BOO00 can be used as task memory by using
the F operand(if no other hardware conflicts).
VIYPE=2
VTYPE=2is used to tell MOS that only MONO (Text Only) tasks will
be active on the system.
The new upper memory limit for tasks is BO000. This means that the
area from AQ000 up to BO000 can be used as task memory by using
the F operand(if no other hardware conflicts).
Only a 12K memory area is reserved for the video save area.
VIYPE=3
The new upper memory limit for tasks is B4000. This means that the
area from A0000 up to B4000 can be used as task memory by using
the F operand(if no other hardwareconflicts).
This VTYPEleaves the area from B4000 to B8000 available for the
$RAMDISK.SYSdriver to use. (B4000 is the default area for this
driver. Another area may bespecified.)
2-34 MOS-D191
NO MONOCHROME TASKS(e.g. terminals using a non-graphicster-
minal driver such as PCTERM) MAY BE USED WITH THISOP-
TION SINCE THE MONOCHROME VIDEO MEMORYAT Bo000
CAN BE USED AS TASK MEMORY.
VIYPE=4
The new upper memory limit for tasks is B8000. This means that the
area from A0000 up to B8000 can be used as task memory by using
the F operand (if no other hardwareconflicts).
The area from B4000 to B8000 is NOT available as the default loca-
tion for SRAMDISK.SYS. This driver maystill be used as long as
another areais specified.
MOS-D191 2-35
Configuration
VTYPE=5
The new upper memory limit for tasks is BOO00. This means that the
area from A0000 to BO000 can be used as task memory by using the F
operand(if no other hardwareconflicts).
The area from B4000 to B8000 is not available as the default location
for $RAMDISK.SYS. This driver maystill be used as long as another
area is specified for it.
2- 36 MOS-DLOL
Device Names
vo
A device may be any piece of hardware connected to your computer,
such as a printer or CRT terminal. A device mayalso be a program
that emulates hardware, such as a RAM disk. A device driver is a spe-
cial routine or program that controls the action of the devices.
Several standard device drivers are built into MOS and you do not
haveto define them in the CONFIG.SYSfile. These standard device
drivers are:
Several special device drivers are provided with MOS, but are not
built-in. In order to use them, they must be set up in the CON-
FIG.SYSfile with a DEVICE= commandstatement, in the same way
as the drivers supplied with non-industry standard devices. Thefol-
lowing pages explain each special device driver provided with MOS
that you may want to set up.
REMDEV
MOS-D1L9l 2-37
SEMS.SYS
Operands:
jpath| enter the path of the subdirectory where the $EMS.SYS on™
file is located. MOS defaults to the current directory if a
directory is not entered.
butadr you may optionally enter the buffer hex address range to
be used for paging. The 64K EMSbuffer address range
defaults to E0000 (through F0000)if not entered. (The
buffer address must always be on a 4K boundary, where
the last three digits are zeros.) Be sure the default ad-
dress, or the address you specify, is not used by MOS as
free memory (see the FREEMEM command statement).
Explanation:
2-38 MOS8-D191
For example,if you want to set up the $EMS.SYSdriver to use ex-
tended memory for EMS bank switching beginning at address C0000,
and the $EMS.SYSfile resides in the PCMOSsubdirectory on the C
drive, the command statement in CONFIG.SYS wouldbe:
DEVICE=C:\PCMOS\BEMS.SYS CO000
FREEMEM=D0000,FO000
MOS-DI9L 2- 39
Configuration
$MOUSE.SYS
Form: DEVICE=/d:}{|\pathJSMOUSE.SYS
Operands:
Explanation:
DEVICE=$MOUSE.SYS
DEVICE=C:\PCMOS\$MOUSE.SYS
MOS MOUSE nf
2-40 MOS-DL91
where "n" is the COM port numberthat the mouse is connected to
and "r" is the baudrate.
ao
The MOS MOUSE command must be entered BEFORE you run the
mouse program (MOUSE.COM) in your task to use the mouse.
MOS:D191 2 4l
Configuration
$PIPE.SYS
Operands:
bufsize the buffer size for each pipe device may be from 1 to
16384 bytes of memory, taken from the System Memory
Pool. The PIPE buffer size defaults to 64 bytes if not
entered.
2 = 42, MOS-DIS1
Explanation:
Whenpipe devices are defined, any user may send inputto the device
in the same manner as sending input to any other device. The device
holds the input until it is retrieved. For example:
Note that if PIPE1 has a buffer size of 100 bytes and MYFILE.DOCis
200 bytes, the first 100 bytes are output to PIPE1. MOS will halt and
wait until more space is available in the buffer to send the next 100
bytes.
MOS-DL91 Zr As
Configuration
SRAMDISK.SYS
Operands:
bufadr you may optionally enter the buffer address to be used for
paging. Defaults to address range B4000 to B8000 if a
buffer address is not entered. (The buffer address must al-
ways be on a 4K boundary, where the last three digits are
zeros.) A 16K address range is used for paging regardless
of RAM disk size. Be sure the default address, or address
you specify, is not used by MOSas free memory (see the
FREEMEM commandstatement).
2-44 MOS-D1L91
Explanation:
DEVICE=$RAMDISK.SYS 128K,DC000
FREEMEM=C0000,DC000
FREEMEM=0000,F0C00
MOS-D181 2-45
Configuration
$SERIAL.SYS
If you are using only the standard serial ports, COM1 and COM2,
$SERIAL.SYS defaults to the standard assignments for COM1 and
COM2and you do not need to enter the driver. (Entering a DEVICE=
commandstatement for $SERIAL.SYS allows you to change the
defaults and/or define additional ports and will override the standard
assignments.)
Ports that are to be used for modems with standard DOS communica-
tions packages(like CrossTalk® and ProComm™) must NOT be
defined with $SERIAL.SYS,
Operands:
2 - 46 MOS-DILS1
OB= the output buffer can be from 16 to 65536 bytes. Defaults
to 1024 bytes if not entered. This is correct for ASCII ter-
minals. PC EmuLink™ terminals should normally be set
to 16384 bytes. If you are using a serial printer that has
too small an internal buffer you could increase OB to from
2048 to about 8192 bytes (depending on the printer) to im-
prove your printer performance.
N - None
D - DTR (ata terminal ready, data set ready)
X - XOFF(receiver controlled on andoff)
P - XPC (receiver controlled on and off using different
characters: 65H=xon, 67H=off)
R - results in RTS (request to send, clear to send) protocols
Explanation:
MOS-DI91 Zr Ad
Configuration
Ports that are to be used for modems with standard DOS communica-
tions packages(like CrossTalk and ProComm) must NOTbedefined
with $SERIAL.SYS. These programs write directly to the port and
wait for a response, which they won’t get if the port is buffered. In-
stead, use the MOS USEIRQ commandto reserve the interrupt for
that port before running the communications program. When done,
use the MOS FREEIRQ commandto release the interrupt.
NOTE: You must enter a space before the forward slash in thefirst
port assignment, but not before any subsequent port assignments.
DEVICE=$SERIAL.SYS /AD=03F8,IN=4
The attributes for each port are separated by the forward slash (/). If
you needto enter the attributes for several devices, the attributes
will likely wrap on several 80 column lines. To let MOS know that the
next line is a continuation of the attributes, a tilde (~) is used at the
end of the line. Always include a space before the ~. For example:
DEVICE=$SERIALSYS /AD=03/8,1B=128,OB=2048,HS=N, ~
IN=4/AD=02/8,1B=64,06=1024,HS=N,IN=3
2-48 MOS8-D1 91
IMPORTANT: Optional operands entered for one port carry over to
all subsequent ports defined unless manually changed back to the
default or another value. In the above example, the IB and OB values
for the second port would have also been 128 and 2048 had they not
been changed backto the defaults by entering the new valuesfor
those operands.
SSERIAL.SYS /AD=03f8,[B=64,../AD=0278,1B=.../AD=03e8,/B=...
MOS-D191 2-49
For example:
DEVICE=$SERIALSYS /AD=0318,IN=4,CN=R/AD=02{8,IN=3,CN=L
2-50 MOS-D191
CHAPTER3:
FILES AND DIRECTORIES
MOS-D191 3-1
Files & Directories
Introduction
MOSlets you maintain files as the method to store and track informa-
tion. A file may contain text, system information, programs, or com-
mands, such as those foundin batch files. You may create a file with
any text editor, a word processor, or with the MOS Editor, .ED. You
mayalso copyfiles from an application program onto your computer’s
hard disk.
Naming Files
The complete nameofa file consists of two elements, the file name
and an extension. The nameofthe file may contain up to eight charac-
ters, and the extension may contain up to three characters. A period
is used to separate the file name from thefile extension. For example:
Hlenarme.ext
Each file you create must have a unique name. Duplicate file names
mayexist as long as they are in different directories. You may use
any combination of alphanumeric characters for the name and exten-
sion of your file. However, you may not use any of the following char-
acters in any part of a file name.
><p]itsettyr?
The namesofthe files provided with MOSare reserved in the sense
that MOSwill "look" for them, and when foundwill execute them.
You should not namea file with the same name as a MOSfile. Unless
you are technically knowledgeable, these files should not be overwrit-
ten or modified.
3-2 MOS-DL ‘L
ei
You should never namea file with the same nameas any of the
reserved devices provided with MOS. Someof the reserved device
names in MOSare:
File Extensions
MOS-D191 3-3
Files & Directories
File Characteristics
A directory will display the files along with their characteris-tics. The
following is a description of these characteristics.
File Sizes
Following the file name and extensionis thefile "size", which is the
numberof bytes thefile occupies. The size of a file under MOSis
limited by the size of the volume or media on which it resides. How-
ever, you should not makea file larger than you really need.
MOStracks the date and time whena file is accessed and has infor-
mation written to it. The last date and time when information was
written to an existing file appears in a directory display in the "up-
dated" column. If you use MOSto merely display the file and nothing
is actually written to the file, the date and time remain unchanged.
The date displays in the format you select with the COUNTRY com-
mand statement in your CONFIG.SYSfile.
File Attributes
MOStracks several attributes for each file. These attributes also ap-
pear on the directory display in the "attrib" columns. An asterisk (*)
appears to indicate that the file has been changedsincethelast time
it was backed up with the EXPORT command. An R appearsfor a
file that has a read-only attribute, and nothing can be written to the
file. An S appears as an attribute for any securedfile. If any hidden
files exist on your computer, MOSwill display an H attribute.
be MOS-D191
Class and User TD
The "cls" column displays the class that is assigned to a file when
MOSsecurity is active. The "User" column displays the user ID of the
user whocreatedthefile.
MOStracks the date and timea file is created. This is the internal
system date and time known to MOS,and appear on a directory dis-
play in the "created" column in the format determined by the ©
COUNTRY commandstatement in your CONFIG.SYSfile.
The creation date and timewill always be associated with thefile and
maynot be changed.If you create a copy ofthefile, the copy will
carry the same creation date and timeas the original file. If you copy
files and concatenate them,the resultingfile will show a new creation
date and time.
File Sharing
Whetheror not two users can access the samefile at the same time
dependents on howthefile was opened, and the type of access, If an
application program is controlling thefile, the application controls
which users may accessthefile at the sametime.
Wildearc characters
MOS-D1L91 o-5
Files & Directories
For example, you may wantto use the directory command anddis-
play the namesofallfiles that begin with M and have a .DOC exten-
sion. The ? indicates that any character may occupy a single position.
You could enter the file nameas:
rn???222? doc
This would display a directory ofall files that begin with m and carry
a .DOC extension. The ??????? represent the positions that could be oc-
cupied by any characters. If you knew that: the 8-character name of
the file you wanted began with m and ended with t, you could enter
the file nameas:
m????? ?tdoc
m*.doc = mv????2??.doce
abe.x* = abe.x??
a*e.xyz is net a legal filename. The "oc" js ignored.
* doc
ve We.
3-6 MOS-D191
File Maintenance
oo,
You may want to periodically make back up copies of your files for
safekeeping. You should use the .EXPORT command to make your
back up copies. .EXPORTdiffers from .COPYin thatit creates a com-
pressed copy of thefile, and allows thefile to span multiple diskettes.
You mayrestore exportedfiles only with the IMPORT command.
These commandsare explained fully in the General Command chap-
ter of this manual.
MOS-D191 a-7
Files & Directories
Directories
[INTERNAT
MEMO.DOC DIRECT.DOC
SALES(D) REGION(D)
DOMESTIC(D) “MAIL.DOC
(D)
(D)
ROOT(D)
NATL(D)
SHIPPING (D)
“INTERNAT.
MEMOS.DOC
OPERATNS(D) [INVENTOR
WAREHOUS(D
“ORDERS
D Directory
F = File
a-§ MOS-D191
Directory Structure
\SALES\DOMESTIC
The first backslash indicates that the path begins from the root direc-
tory. The second backslash indicates the path from SALESto
DOMESTIC. MOS follows this format as the path to the requested
directory. However,if you are in the parent directory (here, the root),
it is not necessary to enterthe first backslash as part of the path. For
example:
SALES\DOMESTIC
SALES\DOMESTIC\REGION\MAIL. DOC
REGION\MAIL. DOC
\OPERATNS\WAREHOUS\ORDERS
MOS-DI91 3-9
Files & Directories
\
You may move to a directory that is on another disk by including the
letter of the drive where the directory exists as part of the path. For
example, to move from a directory on drive A to the ORDERS direc-
tory on drive C, you could enter the path as:
GA\OPERATNS\WAREHOUS\ORDERS
Directory Names
You maycreate a directory and give it any name you want, subject.to
the samelimitations as file names. A directory name,like a file
name, may be up to eight characters and mayinclude a period and an
optional extension of up to three characters.
All the levels of directory names includedin a path from the root may
not exceed 64 characters. The numberofdifferent directory paths you
may create from the root is determined by your disk media. From any
directory level other than the root, there is no limitation to the num-
ber of different paths you can create. At the root you may create:
3-10 MOs-D191
Organizing Directories
Directory Maintenance
You may makea directory with the .MD command. You may then
copy anyfiles into that directory, or create your own files. If you want
to copy existing files into a different directory, you may use the
.RENAME commandto move them. Note that the name of eachfile in
a particular directory must be unique.
Note that you can only create one level of a directory path at a time.
For example, you may want to create a MEMOSdirectory at the root,
and from the MEMOSdirectory create another level that includes
directories for each month of the year. You must first make the direc-
tory named MEMOS.For example:
.MD MEMOS
MOS-D191 Be Ll
Files & Directories
Whenthis directory exists, you may then create the next level of
directories. You may want a directory for each monthof the year.
From the root you may create a directory for January with the follow-
ing command:
MD MEMOSWAN
.MD JAN
To move from the root directory to the JAN directory, you could enter
the command:
CD MEMOSWAN
You maydisplay the path of the current directory by typing the .CD
commandwith no operands.If you were workingin the JAN directory
and entered .CD with no operands, MOS would display:
\MEMOWAN
Note that two periods are used to move from a current directory to its
parent directory. For example, if you are currently working in the
JAN directory and want to move to the MEMOSdirectory, you would
enter:
CD ..
If you madea directory for each month of the year at the MEMOS
directory, you could move from the JAN to the FEB directory by in-
structing MOSto change to the parent and then move to FEB, For ex-
ample:
CD .\FEB
3-12 MOS-D181
Whenthedirectory for January files is no longer necessary, you may
want to remove the JAN directory to free disk space. You must first
delete any files in the directory. If there are other levels of directories
from the JAN directory, you must also remove them. You may then
enter the following commandto remove the January directory:
.AD MEMOSWAN
Displaying a Directory
.DIR
Note that the file names in the current directory appear on the dis-
play. The next directory level created at the current directory also ap-
pear. The word "directory" appears on the display to let you knowthis
is a directory name, along with the time and date the directory was
created.
MOS-D191 3-13
Displaying a Directory Structure
.DIRMAP \MEMO
3-14 MOS-DISL
CHAP”TER 4:
GENERAI
Introduction . 0. te te et te ee es 4-3
MOS-DI191 4
General Commands
oot
.PATH@=clmoscom
MOS-DI91 An &
General Commands
Installation Commands
sHDSETUP
General Commands
Multi-Tasking/Multi-User Commands
-ADDTASK
.KEYMAP
-REMTASK
.MOS(includingall utility functions)
.MOSADM(includingall utility functions)
MOSSystem Editor
MOS Debug
Security Commands
.CLASS
Print Spooler
-PRINT
SPOOL
Whe
A
Intrinsic MOS Commands
General Commands
Security Commands
SIGNOFF
SSIGNON
MOS-D191
General Commands
Inveking Commands
DOT
Each time you boot MOS, the .DOT commanddefaults to OFF, and
MOSwill not expect a period to precede commands. MOSwill look for
intrinsic and extrinsic commandsin the correct order.
DOT fonloff}
4~ G MOS-D191
If you want the preceding periods to be required with commands you
may enter the .DOT on command. You should then enter the period
with all MOS commands, but not the command statements used in
the CONFIG.SYSfile.
MOS-DLO1 4<7
General Commands
DAPAYROLLIHAROLD\PRMENU.BAS
MOS-DISL
{} operands enclosed in braces{ } are optional. If an
operandis not enclosed in braces, the operandis re-
quired.
There are four ways to accomplish redirection with MOS. They are:
>> Two greater than symbols redirect standard output and ap-
pendit to the information in an existingfile.If the file
specified for standard output does not exist, MOS will create
it.
There are many ways you can use redirection. For example, the stand-
ard output of the .DIR commandis a directory listing on the video
screen. The following commandwill redirect the output of the direc-
tory listing to a printer.
The following example tells MOSto use the standard outputof the ——
directory command as the standard input for the sort command.
DIR | .MSORT
4-10 MOS-D1 Si
peel
-ADDDEVlets you add a device driver at any time. You may make a
driver active on the whole system or only in a specific task.
Type: Extrinsic
Operands:
davice enter the device driver name and extension, with any buff-
er size or other operands, as you would normally enter it
in the CONFIG.SYSfile. Include the drive and directory
if not the current defaults. (Do not include the DEVICE=
command statement with the .ADDDEV command.)
Explanation:
You may add a device at any time by invoking the .ADDDEV com-
mandat the system prompt. For example, if you want to add a pipe
device, you could enter the following command:
MOS-DLO1 4-11
General Commands
would add the device driver only in the task in which the command
was entered. Note that a separate copy of the driver must be installed
in each task that requires accessto it.
ALIAS
Type: Extrinsic.
Operands:
a: enter the letter of the drive where the directory you are
substituting resides, If you do not enter a driveletter,
MOSusesthe current default drive in the substitution.
Explanation:
\we\mywpimyfiles\mywork
MOS-D191 4-13
General Commands
You may use the .ALIAS command to assign access to the MYWORK
directory with a drive letter. If drive letter E is not used to access a
drive on the computer, you could enter the .ALIAS commandasfol- o.
lows:
AUAS @:
eo
ALIAS F: myfiles
4-14 MOS-D1L9L
Whenthe substitution is complete, MOSwill display the complete
substitution as follows:
ALIAS E: /d
ALIAS fd
MOS-D191 4-15
General Commands
BREAK
Type: Intrinsic.
Operands:
olf turns off control break checking. This is the default state
of .BREAK each time MOSis booted.
Explanation:
BREAK. ON
4-16 MOS-D1L81
.CD sets the directory that will be used as your default directory.
Type: Intrinsic.
Form: CD ipath
Operands:
Explanation:
CO MYTEXT\MYFILES\LETTERS
If you are not at the root, and you want to change to the LETTERS
directory, you must enter a preceding slash with thefirst level of
directory in the path. For example:
CD \MYTEXT\MYFILES\LETTERS
GO LETTER
©
oe
D.,
MOS-DI9L 4017
General Commands
You may moveto the root directory by entering only the backslash,
regardless of the level of directory you are in. For example, if you are
currently in the LETTERS directory, the following commandreturns
you to the root directory on your current drive:
CD \
4-18 MOS-DI91
CLS
.CLSclears the current display on the video screen, and positions the
system promptat the top of the screen.
Type: Intrinsic.
Form: CLS
Explanation:
MOS-DI9L 4-49
General Commands
COMMAND
Type: Intrinsic.
Operands:
i
ae enter the letter of the drive that contains the new com-
mandprocessor, or omit it to use the default drive.
Je string lets you pass a string that follows the /c operand and ex-
ecute that string in the new layer of the commandproces-
sor and then return to the current command processor.
The string to execute may be a commandor a batchfile.If
a batch file, do not enter the .BAT extension as a part of
the string.
MOS-D1S1
domed
easy
Explanation:
MOS-D191 4-21
General Commands
-COMPEILE
ao
-COMPFILE comparesthe contents of twofiles on a byte-to-byte
basis. Any discrepancies in the files are displayed on the video screen.
Type: Extrinsic.
Operands:
Explanation:
Aw Qe MOS-DISL
cD
If any discrepancies are found, MOSwill display a message similar to
the following:
will compare all batch files found in \UTILS with the file TEST.BAT
in the current directory.
An example in which only part of the nameis carried over may be:
MOs-DIL9l 4+ 23
General Commands
This will compare ABC with ABDEin the current directory. The ?’s
causes the corresponding charactersof the first operand to be carried
over to the second operand.
4-24. MOS-DL9L
COPY
Twooptional operands may be entered with the original and the new
file to accommodate both ASCII and binary files. The /a operandis
used with ASCIIfiles. If/a is used with the original file, MOS copies
to the endoffile character, not the physical endofthefile. If /a is
used with the new file, MOS places an endoffile character at the end
of the copy. MOS uses a CTRL Z as an endof file character, The /b
operandis used with binary files. If/b is used with the original file,
MOSignores any endoffile characters. If/b is used with the newfile,
MOSwill not place an endoffile character on the newfile.
Type: Intrinsic,
Operands:
MOS-DI91 4-25
General Commands
d:\path| enter the drive and/or path to contain the newfile, if you
want them to be different from the current drive and/or
directory.
filename enter the name you wantto give the copy, or omit to use
_ the same nameastheoriginal file.
Explanation:
If you specify a new directory for the copy, that directory mustal-
ready exist. If it does not, MOStreats the directory name as the
nameof the newfile.
You may copya file at your current drive and directory to another
drive and give the new file the same name with the following com-
mand:
COPY memo.doe a:
Aw 26 MOS-DILSL
You may copya file from a different drive and directory to your cur-
rent drive and directory and give the new file the same nameas the
original file. The following commandillustrates how this may be
done, using C:\ as the current drive and directory.
COPY a:letier.doc
Device Input/Output
DEVis the nameof the device from which you want copy input. The
device name may be CONfor the main console, PRN for a printer, or
a user defined name for a MOSpipethat allows you to copy charac-
ters from one partition to another. For example, you mayuse thefol-
lowing .COPY commandtocreate a file from keyboard input.
In this example, DEVis treated the sameasif it were a file. For ex-
ample, you may enter:
MOS-D191 4-27
General Commands
This will send the TEXTFILE.DOCfile to the printer. You may also
send direct keyboard input straight to the printer with the following
command:
File Concatenation
There is a special form of .COPY that lets you copy and combine a
groupoffiles. This is called concatenation. The command form for
COPYis:
Note the use of the + symbol between thefiles that are to be com-
bined. The new file, BIGFILE.DOC contains the contents of the con-
catenatedfiles in the order you enter them. If no nameis specified for
the copy, MOS defaults to the first file in the command and addsthe
otherfiles to it in the order you enter them. For example:
The orderof the first item in the series offiles controls what will hap-
pen during the concatenation. In this example, MOS will search for
thefirst file with an .ASM extension. If A.ASM is found, then MOS
looks for a file named A.LST.If it is found, AAASM and A.LST are
written to a file MOS names A.TOT. If MOSdoes notfind a file
named A.LST, then only A.ASM is written to A.TOT.
4~28 MOS-DIOL
In either case, the new file named A.TOTis closed and MOSbegins
looking for the next file with an extension of .ASM. This continues
oo until MOScannotfind any morefiles with an .ASM extension.
Be careful of how you concatenate with global file names. If you enter
the following command, MOSwill copy the contentof all files with a
.DOC extension to a new file named X.BIG.
If a file named X.DOC does not currently exist, MOS will concatenate
all files with a .DOC extension into the newfile. If X.DOC does exist,
and MOSfindsit as thefirst file, the concatenation will take place. If
X.DOCis not thefirst file found, when MOSdoesfind X.DOCit ap-
pears as an attempt to write a file on top of itself. MOS will con-
a catenate thefile, but will display the following warning message to
let you know that something strange occurred during processing:
You may control this situation by using the following commandto in-
struct MOSto use the file named X.DOCas the newfile, and to con-
catenate otherfiles with a .DOC extension into the newfile.
The .COPY command hasan operand (+,,) that lets you change the
a creation and updated date andtimeofa text file to the current date
and time. For example, you may changethe last updated and creation
date and timeof a file named CONTRACT.SAVby entering thefol-
lowing command:
MOS-D191 4-29
General Commands
You may include this operand with the .COPY commandto assign the
current date and timeto only the new copyof file. For example:
SOPY xdee+,, b
If the file you want to changeis not a text file, you must enter the /b
operand. For example:
If you copy onefile to anotherfile, the /b is the default to copy the en-
tire content of a file. MOS will ignore any endoffile characters
(CTRL Z) in the file. For example, the following commanduses /b as
the default.
COPY ** As
Note that you may enter /a or /b before the namesof any files in the
copy so that the option applies to all the files. For example, the follow-
ing command uses/a to ensurethatall files with an .ASM extension
are copied only up to an endoffile character (CTRL Z):
4 30 MOS-DI191
Copying Secured Files
Normally, you may copya file or group of files within the current
drive and directory only if you give the copy a new name. However,
you maycopya file with the same namewithin the current drive and
directory if you use the /c operand to assign a different security class
to the file.
MOS would not allow this command withoutthe /c, because it would
be an attempt to write a newfile on top of an original file. Note that
you may only copy a securedfile if you have an accesslevel thatal-
lows you to access the class assigned to thefile.
SCOPY forms.doc js
MOSs-D191 4- BU
General Commands
DATE
-DATE sets the MOS system date in the format defined by the
COUNTRY commandstatement in your CONFIG.SYSfile. This is
the internal date that is known to MOS.
Type: Intrinsic.
Operands:
mim-dd-yy enter the date in the form used on your computer. The
default form for MOS is mm (month) dd (day) and yy
(year).
Explanation:
If your computer does not have a perpetual calendar, you may want
to include .DATE without an operand in your AUTOEXEC.BATfile.
Each time you boot your system, MOSwill prompt you to set the date.
You mayset the current date by entering the .DDATE commandat the
system prompt, followed by the correct date. For example:
ATE 10-21-87
You may type .DATE at the system prompt without any operandsto
display the current date that is known to the system, and to optional-
ly enter a new date. The date display appears similar to the following:
You may enter a new current date, or press ENTER without making
an entry to leave the date unchanged.
4 32 MOS-D191
DIR
.DIR displays the contents of a directory. There are several display op-
tions that let you list specific directories, sort by file name, sort by file
extension, sort by creation date and time,or sort by size. Only one
sort option at a time can be active. You may select to include hidden
and system files in the display. You may choose additional options for
a condensed format, or to pause between pages.
Type: Intrinsic.
Operands:
{sé sorts the display by date and timelast updated, with the
oldest date and time appearingfirst,
{88 sorts the display by file size, with the smallest file appear-
ingfirst.
MOS-DISI 4-33
General Commands
Explanation:
You may display the contents of the current directory on the current
drive by entering the command:
.DIR
DIR DAWORKS
To display only the directories within the selected directory, enter the
/d operandin the command.
DIR *.DOC
There are four sort options you mayselect for displaying the direc-
tory. Only one sort option maybe active at a time. The following is an
example of a directory displayedbyfile size.
4-34 MOS-DIL9L
Thefirst column displays the file name and extension. Thefile.size in
bytes is then shown. The date and timea file was last updated ap-
om,
pears next. For a directory entry, the word directory always appears
in this column.
Following the time are four columns that display the attribute set-
tings of thefile. The first column displays an asterisk if the archive
attribute is set. The second column displays an if the read-only at-
tribute is set, and the fourth column displays an for anyfile that
has a security class. If the /a operandis included in the command, the
third column displays an H if thefile is a hiddenfile.
If security is used, the next two columnsdisplay the security class as-
signed to the file, and the ID of the user who created thefile. The last
two columnsdisplay the date and timethefile was created.
The last line of the display shows the disk ID if one has been as-
signed. The total numberof bytes used bythefiles in the display ap-
pears next, along with the total numberoffiles in the display and the
remaining bytes available on the drive.
MOS-DL9L 4-38
General Commands
~DIRMAP
-DIRMAP scansa disk and displays the directories on that disk along
with the current numberoffiles and total bytes used in each direc-
tory. The directories display in the order they are found on the disk.
Type: Extrinsic.
Operands:
ipath you may enterthe letter of the drive and/or the nameof a
specific directory to display, or omit this operand to begin
the display at the root directory on the current drive.
Explanation:
4= 36 MOS-DiOl
¢
feng
o
You mayusethe path option to displayall levels of a specific direc-
tory. For example, the following commandwill display the WORK
directory as well as the WORK\JIM directory on the default drive:
.DIRMAP \WORK
<DIRMAP GCAWORKWIM ff
.DIRMAP CAWORK ja
would list all files in the WORK directory of the C drive that have the
archive attribute set. (Changing a file sets the archive attribute,
while running .EXPORTclears the archive attribute.)
If you havea lot of directoriesor files to display, you may want to use
the .MORE commandto display only 24 lines at a time. An example
of the .DIRMAP command used with .MORE could be:
MOS-DLOL 4-37
General Commands
-DISKCOPY
oo
-DISKCOPYcopies the entire contents of one diskette onto another
diskette. If the original diskette contains the boot sector, it is also
copied onto the destination diskette. .DISKCOPY workswith either a
one- or two-diskette drive computer.
Type: Extrinsic.
Form: DISKCOPY of a:
Operands:
a: enter the letter of the drive that contains the original dis-
kette you want to copy.
Explanation:
-DISKCOPY a: b:
.DISKGOPY b: a:
If you only have onediskette drive, you will need to swap the original
and destination diskettes in that one drive until the entire copy is
complete. The commandto copy a diskette when you have only one
diskette driveis:
DISKGOPY a a:
4-38 MOS-ID1 91
MOSwill prompt you to place the original diskette in drive A. When
you press ENTER, MOScopies as muchofthe original diskette as pos-
sible into memory, and then prompts you to removetheoriginal and
place the destination diskette in the drive. When you press ENTER
this time, MOScopies the original content in memory onto the des-
tination diskette.
If the entire contents of the original diskette could not be copied into
memory in one pass, a prompt appears instructing you to return the
original diskette to the drive. You will be prompted to continue swap-
ping diskettes until the content of the original diskette is completely
copied onto the destination diskette.
MOS-D191 4-39
General Commands
-DISKID
ao,
-DISKID lets you assign an 11-character nameto a diskette or hard
disk. The .DISKIDis displayed by the .DIR and .VERIFY commands.
Type: Extrinsic.
Operand:
a: enter the letter of the drive that contains the disk you
want to name,if not on the current drive.
Explanation:
&- 4D MOSs-DI91
You may type a different name, or press ENTER and MOSdisplays a
message asking if you want to delete the current name. You must
respond with a Y (yes) or an N (no) to continue.
NOTE: Never use .DISKID,or any other method, to change the Disk
ID of any .EXPORTdisk. Doingso will render .IMPORTinoperable
and you will not be able to restore the data from that .EXPORTset.
# ™.
MOS-DI8L Am Al
General Commands
LENVSIZE
Type: Intrinsic.
Operand:
nanny enter the numberof bytes you want to reserve for the en-
vironment. If you do not reserve the environmentsize,
MOSuses 128 bytes.
Explanation:
.ENVSIZE 256
4A MOS-DLOL
HRASE
aosy,
.ERASEdeletesa file or group offiles from a disk.
Type: Intrinsic.
Operands:
Explanation:
ERASE *.BAK jv
MOS-DI191 4-43
General Commands
ERASE *.*
You may enter Y (yes) to erase all files, or enter N (no) to return to
the system prompt.
You may include the /y operand with the commandto eraseall files
without displaying the verification prompt.
4 44 MOS-DL9L
HXCEPT
Type: Intrinsic.
EXCEPT CANCEL
Operands:
MOS-DIL LL 4-
5
s©
General Commands
Explanation:
This command statement will invoke a word processor, and let you
edit any file except a file named MYWORK.DOC.
This statement excludes files with .DOC and .TXT extensions from
the new commandprocessor.
NOTE: Be careful when you limit access to files. You may create files
excluded from an application or a new commandprocessor that may
already exist. Although it appears as if you are creating a newfile,
the existing file may be overwritten without your knowledge.
You may also use .EXCEPT DOto excludespecific files from a batch
file execution. For example:
.CDIWORK.DIR
ERASE *.* fy
.CD\ASM.dir
ERASE ** fy
4-46 MOS-D1Ol
NOTE: Be careful if you invoke a globally destructive batch file such
as this one. You may want to preview thefiles you'll be deleting. To
wo
preview thefiles, you could write CLEAN.BATasfollows:
onWORK.DIR
.DIR jwfp
-ECHO Erase thesefiles in WORK.DIR?
KEY %%a IN (y,n) DO GOTO pl%%a
iply
ERASE *.* <er/y
‘pin
Theuse of .KEY requires you to respond to the prompt. The key you
press as your response,either Y or N, determinesthe action that will
be taken. See .KEY for more information.
There may be times when you want to remove the .EXCEPT limita-
tion during the execution of a batch file. For example:
All files except those with an extension of .DOC and .TXT will be in-
cluded when FLIST.BATis invoked. The batch file named
FLIST.BAT includes:
.DIR
TEXT This displays a limited set of files based on the group
defined in the EXCEPT DO staternent.
AN SEL Q
EXCEPT DO «statamonat the t| ime this fie was invoked,
MOGS-DILO1 4~ 4D
General Commands
4 AS MOS-DLOL
EXPORT
.EXPORTcreates a compressed copy of one or morefiles for backup
purposes. .EXPORTis similar to the .COPY command, butdatais
compressed and a headeris placed at the beginningof the exported
file. We recommendthat you use .EXPORTfor backingupfiles. Un-
like .COPY, .EXPORTwill spreadfiles across multiple diskettes. You
may reinstate exportedfiles only with the IMPORT command.
Type: Extrinsic.
Operands:
a: enter the letter of the drive that contains the target disk
on which the exported files are to be placed. Only a drive
letter may be specified, not a subdirectory.
ifm exports only files which have been modified since your
lastEXPORToperation,i.e. those files with the archive
attribute set. The archive attribute indicates thesefiles
have been modified since the last .EXPORToperation.
/9 enter alone for Query Mode. This mode ignores the com-
mand line syntax and prompts the user to enter the
desired .EXPORToperation instructions manually.
MOS-D191 4-49
General Commands
Explanation:
You can export files to any type of drive, but removable drives, such
as a removable cartridge or diskette, are recommended. Thediskettes
(or cartridges), must already be formatted. When you invoke the
-EXPORT command, a message similar to the following appears:
You mayentera Y to erase anyfiles that may exist on the first export
disk and begin the export operation. You may enter an N to exit the
.EXPORTandthe following message appears.
You may enter the /a operand to use the diskettes "as is" without eras-
ing any existing files. TheEXPORT commandwill append data to
any existing data on the archive disks without erasing any existing
files. If you invoke theEXPORT commandwiththe /a operand, a
message similar to the following appears:
4-50 MOS-D181
MOSprompts you to change disks when exporting data that won’t fit
on one disk. If some space is available on the disk, MOS will copy as
oo
muchof thefile as the diskette can hold and then will continue copy-
ing thefile on the next diskette in the set. The archive attribute is
automatically removed from eachfile as it is exported. (See the
.FILEMODE command.)
Sometimes the end of an exported file will coincide with the end of a
disk’s space. .EXPORTwill create a directory entry with a zerofile
length for the next file to indicate that the .EXPORT sequence con-
tinues.
\WP\BOBWUNEST\PROJECTT
EXPORT \WPIBOB\".” /s
You may export all files on a disk by using the asterisk wildcard. If
the root directory is the current default, you could enter the following
command:
This commandwill begin the export at the root directory, and export
all files from all directories on the default drive. The nameof eachfile
appears on the screen as it is being exported. When .EXPORTis com-
plete, a message similar to the following displays:
General Commands
If you forget the commandline syntax for .EXPORT, you can enter oo
NOTE: Never use .DISKID,or any other method, to change the Disk
ID of any .EXPORTdisk. Doing so will render .IMPORT inoperable
and you will not be able to restore the data from that .EXPORTset.
4-52 MOS-D1L91
FTLEMODE
Type: Extrinsic.
Operands:
Explanation:
.FILEMODE +R \wo\contract.dec
Fort ee ary aad sf harrale ob: & pf
.FILEMODE \wp\letter.doc
4 ~ 54.
FORMAT
Type: Extrinsic.
Operands:
Explanation:
Gi
oye
g
General Commands
Place the diskette to format in drive A and press ENTER. If you are
formatting a hard disk, the following messagewill appear:
4-56 MOs-DIS1
The percentage complete is constantly updated until the FORMATis
complete. When the format is complete, MOSdisplays the total num-
ber of bytes on the disk, how manybytesare in bad sectors(if any)
and the total numberof bytes free. The following message then ap-
pears:
You may enter Y and repeat the procedure to format another dis-
kette. You may enter N to end the FORMAT commandandreturn to
the system prompt.
MOS-DI9L 4+ 57
General Commands
HELP
Type: Extrinsic
Operands:
Explanation:
You may use the .HELP commandat any timeto display an on-line
explanation of a MOS command.If you do not enter a command name
as an operand, a menulisting all the commands in MOSwill display.
At the menu, you may use the arrow keys to moveto the command
for which you want to display a help screen. Your current selection ap-
pears highlighted on the screen. Press ENTER to select the command
that is highlighted. You may press ESC at the menuto exit HELP
and return to the system prompt.
You mayalso use the plus (+) key on the numeric key pad to move to
the next command’s help screen without returning to the menu. In
the same way, you may also use the minus(-) key on the numeric key
pad to move to the previous command’s help screen without returning
to the menu.
RE BACVS LE Ol
4, » BB MOS-Di 97
-IMPORT must be used to restore and decompressfiles that were
backed up with the .EXPORT command. .[MPORTlets you reinstate
a singlefile, a groupoffiles, a single directory or a group of direc-
tories. You may import files to any location, which need not be the
directory from which they were exported.
Type: Extrinsic.
Operands:
ac\path| enter the drive and path of the target directory where the
import is to begin. Defaults to the current drive and direc-
tory if not entered.
/g enter alone for Query Mode. This mode ignores the com-
mandline syntax and prompts the user to enter the
desired .[MPORToperation instructions manually.
ie}
O
e
ia]
bed
ey
7
General Commands
Explanation:
This commandwill import all files and directories beginning with the
first directory on the first .EXPORTdisk in the set, from drive A to
the root directory of drive C. You will be promptedto insert thefirst
and subsequent archive disks until the import operation is complete.
If you don’t use the /o operand, any attempt to import a file over an
existing file with the same namewill cause MOSto prompt you for
verification before importingthefile:
If you forget the commandline syntax for .TMPORT, you can enter
IMPORT /? to get an on-screen review. If you don’t like dealing with
commandline syntax, enter .JMPORT /q to run .[MPORTin the
manual Query mode. In this mode youwill be asked a series of on-
screen questions about the .[MPORToperation you want to perform.
Once you answerthe question, the IMPORToperation will run. This
is a very easy way to use the .I[MPORTprogram.
4-60 MOS-DIL9L
MID
Type: Intrinsic.
Operand:
Explanation:
For example, you may set up a directory called MYDIRat the root
directory of a disk, and use it to store certain typesoffiles. From the
MYDIRdirectory you may makeanotherdirectory called MYINFO in
which you store text files. From MYINFO you may makeyet another
directory called MEMOSin which you store only memos. This direc-
tory is three levels deep and the directory name is 21 characters
long, for example:
\WAYDIRAVININFO\LETTERS
oy
MD CLIENTS
If the current directory is the root directory, you must enter the
preceding levels when you want to makea directory at a different
level. To add this fourth level of directory from the root, you would
enter the following command:
.MD \MYDIR\MYINFO\LETTERS\CLIENTS
4-62 MOs-DLOL
-MORE is a filter that massages standard input to produce standard
output in 24 line increments. The standard output displays on the
video screen with the message, CONTINUED..., on every 25th line.
Pressing any key causes the next 24 line increment of standard out-
put to display.
Type: Extrinsic.
Form: MORE
Explanation:
.DIRMAP | MORE
MOS-DILS 4-63
o
General Commands
MSORT
Type: Extrinsic.
Operands:
finn enter /f and the numberof the first column where the sort
string begins, followed by a comma. andthe total number
of charactersin the string.
4 G4 MOS-DILOL
fm displays several messages that you mayfind helpful
during lengthy sorts.
Explanation:
The nnnn in this example represents the numberof records read into
memory for the sort. If your system does not have enough memory to
sort all records in one pass, there will be multiple passes through the
file and the following message will appear:
MOS-DiS1 4-65
General Commands
Thefirst nnnn indicates the pass number, and the second nnnn is the
actual numberof records sorted and written to the temporary sort
file..MSORTwill continue until all records have been sorted, creat-
ing as many temporary workfiles as are required for thesort.
-MSORT maydisplay:
After merging the temporary files, MOS begins thefinal sort. The fol-
lowing message displays the numberof remaining temporary files
that need to be sorted duringthe final sort phase:
4-66 MOS-DI91
-MSYS
Type: Extrinsic.
Form: AMSYS a:
Operand:
Explanation:
For example, you can use the .MSYS commandto convert a bootable
DOSdisk to a bootable MOSdisk without having to reformat the
disk. Insert the DOSdisk in drive A and enter the following com-
mand at the MOS system prompt:
MSYS A:
NOTE: You must also copy the system file, $}MOS.SYS,and the com-
mand processorfiles, $$SHELL.SYS and COMMAND.COMto the
disk before it is truly bootable.
MOS-DL81 4-67
General Commands
ONLY
Type: Intrinsic.
ONLY GANCEL
Operands:
Explanation:
4» GB MOS-DLOL
ONLY (.map “exe *.cb] *.asm) DO .ERASE *.* jv
In this example only those files with the extensions listed will be
grouped for erasure. You may also use .ONLYto limit thefiles that
may be processed within an application. For example:
NOTE: Be careful when you exclude access to files. You may create
files excluded from an application or a new commandprocessorthat
mayalready exist. Although it appears as if you are creating a new
file, the existing file may be overwritten without your knowledge.
MOS-D191 4-69
General Commands
.CD\WORK.DIR
ERASE ** /y
.CD\ASM.DIR
ERASE ** fy
Note that this will erase all files which begin with tl and carry a
-DOC extension in the WORK.DIR and ASM.DIRdirectories. Had
you wantedto preview thefiles before erasing them, you could have
written CLEAN as follows:
CD\WORK.DIR
.DIR fw ip
ECHO Erase thesefiles in \WORK.DIR?
KEY %%a IN (yn) DO GOTO pi%%a
‘ply
.ERASE *.* fy
ipin
.CDIASM.DIR
.DIR /w ip
ECHO Erase these files in ASM.DIR?
KEY %%a IN Gn) DO GOTO p2e%%a
ip2y
-ERASE *.* fy
:pen
The use of .KEY requires you to respondto the prompt. The key you
press, either Y or N determinesthe action that will be taken. You
may couple the .ONLY statement with an .EXCEPT statementto fur-
ther limit the effect of a command. For example:
Type: Intrinsic.
Operands:
Explanation:
MOS-DL91 4-7
General Commands
.PATH o:\mos;e:\work\wordproc;c:\mywork
You may enter .PATH at the system prompt without any operands to
display the current path setting.
You maydelete the current path by entering .PATH ; (the space and
semicolon after .PATH are necessary parts of the command).
An T2 MOS-DLS1
PROMPT
Type: Intrinsic.
Form: .PROMPT[$5}{Sc}{Se}{SqH{Bh}{SIHSIHSn}{Sp}{$q}{$t}
(Su}{Sv}H{S_HEEH Sx]ftext}
Operands:
MOS-D191 4-%3
General Commands
$$ displays a single $.
text you may enter any text in the prompt that you want.
Explanation:
PROMPT St
The brackets display only with the default prompt, unless you enter _—
them as text in your .PROMPT command. To display only the hours
and minutes in the prompt, you may include the $h operand six times
to backspace over :ss:hh and omit them from the prompt. For ex-
ample:
PROMPT $t$h$h$h$h$h$h
a- 74 MOS-D191
ks sss
jem:
&
If you want your display to include the word TIME anda colon prior
to the time, you could enter:
.PROMPT TIME:$t
PROMPT $x JOES$g
You may use any combination of operands for a prompt display. For
example, the following creates a prompt that displays the current
drive and directory ($p), the greater than symbol ($g), the characters
JOE, and anothergreater than symbol($g):
PROMPT$p$gJOE$g
The prompt may appear similar to the following:
RD
-RD lets you remove an empty directory from the system. The direc-
tory to remove cannot contain anyfiles, and cannot be a parent to
anotherlevel of directory.
Type: Intrinsic.
Operand:
Explanation:
Before a directory may be removed, you must delete all files in the
directory, or use .RENAME to move them to a different directory.
You cannot delete a parent directory that contains any otherlevels of
directories.
You may only remove onedirectory level at a time. For example, you
may have a directory named \MYTEXT\MYFILES\LETTERS. In
order to remove the MYFILESdirectory, you must first remove the
LETTERS directory.
Normally, you must specify all levels of directories that precede the
directory you want to remove. For example, you could remove the
LETTERS directory with the following command:
AD \MYTEXT\MYFILES\LETTERS
.AD LETTERS
Note that you cannot remove a directory that is your current direc-
tory, nor can you removea directory that is currently being used by
someone in anotherpartition.
4-16 MOS-D1L91
REL
Type: Intrinsic.
Form: JREL
Explanation:
MOS-D191 4-77
General Commands
REMDEV
-REMDEYVlets you removea device driver. You may enter this com-
mandat the system prompt to removethe device.
Type: Extrinsic.
Operand:
Explanation:
You may use the .REMDEV commandat any time to remove a device
that is no longer necessary. For example, you may have a pipe device
defined that you want to remove to free memory for other uses. If the
pipe device name is PIPE4, the commandyou would enter to remove
it is: o—™
-REMDEV PIPES
There may be devices on your computer that are active or are re-
quired. If you attempt to remove one of these devices, MOS will dis-
play a message stating that the device cannot be removed. (Also see
the .ADDDEV command and the DEVICE= commandstatement.)
4-78 MOS-D1L9l
RENAME
-RENAME lets you change the nameof file or groupof files and op-
tionally move them to a different directory. You may also use
-RENAME to relocate or change the nameof a subdirectory.
Type: Intrinsic.
Operands:
Explanation:
-RENAME is useful for changing the nameofa file. For example, you
may want to temporarily change the contents of a batchfile, without
altering its original contents. You can renametheoriginal batchfile
with a different extension, for example:
MOS-D19l ~ 9S
oo
General Commands
You can then create a new AUTOEXEC.BATto use when you boot
the computer. When you wantto revert to the original file, delete the
new AUTOEXEC.BATand then rename AUTOEXEC.SAVwith the —
.BAT extension.
You can also movea file or a group offiles to a new directory. How-
ever, .RENAME cannot movefiles from one drive to anotherdrive.
The new directory must exist on the samedrive as the original direc-
tory. To move the groupof .BAK files to a different directory without
changingthe file names, you could enter the following command:
When moving a directory, the second operand must specify the com- _~,
plete path namefor the new location of the directory that is being
moved. For example, the following commandwill move the LETTERS
directory from its present location in the root to a new position as a
child of the WP directory:
4- 80 MOS-D191
RENAME LETTERS WP\LETTERS /m
MOS-D181 4-81
General Commands
SHARCH
Type: Extrinsic.
Operands:
4- BS MOS-DI9L
filename enter the nameofthefile to search, including the drive
letter and/or directory if not the current defaults. Wild
cards are not permitted in thefile name.
Explanation:
MOS-D19i 4-83
General Commands
SHT
The .SET commandlets you place character strings for specific vari-
ables in the environment space, which is a reference area for frequent-
ly accessed strings of information. A copy of the information
contained in the environment is made available to all programs.
Type: Intrinsic.
Operand:
Explanation:
&~ BA MOS-DLS1L
You may display the current variables that are set in the environ-
ment by entering the SET command without any operands. MOS will
display the current settings similar to the following:
You can delete items set into the environment by entering the .SET
command,the variable name, an equals symbol and then pressing
ENTER.The following example would delete the promptsetting for
the currentpartition:
SET PROMPT=
You may also use the .ENVSIZE commandto specify a minimum size
for your environment. .ENVSIZE lets you reserve the space for your
environmentprior to loading any resident programs.
MOS-DL9L 4-86
General Commands
LIME
-TIME lets you set or display the MOSsystem time. The formatfor
timeis defined with the COUNTRY commandstatementin your
CONFIG.SYSfile. The .TIME is the internal time that is known to
MOS.You will need to set the system time immediately after booting
MOSif your system does not have a perpetual clock. The .TIME file
was created and last updated appears with eachfile when a directory
is displayed.
Type: Intrinsic.
Operands:
Abwnm enter the hour (hh) and minutes (mm)for the correct time.
Explanation:
If your system does not have a perpetual system clock, you may want
to include .TIME in your AUTOEXEC.BATfile. This will cause MOS
to prompt you to enter the current time when you boot your computer.
You may type .TIME at the system prompt, without any operands, to
display and optionally reset the current time. The display appears
similar to the following:
4= 86 MOS-DLSI
You may press ENTERto leave the current time setting, or you may
enter a different time. The format for time is hours (hh), minutes
(mm)seconds(ss) and hundredthsof a second (hh).
MOS-DIL9OL 4-87
General Commands
“TYPE
-TYPE displays the contentsof a file on the video screen. You may
use the /h option for a display in a hexadecimal form.
Type:
Intrinsic.
Operands:
Explanation:
If you choose the hexadecimal form, the actual hexadecimal codes for
the contents of the file display. If the file is a text file, or any text ap-
pearsin thefile, the hexadecimal codes will appear and their "text
equivalents" will be displayed to the right. The following is an ex-
ample of a CONFIG.SYSfile displayed in hexadecimal form.
4-88 MOS-D191.
Note the periods that appear in the text equivalent column to the
right. Periods represent actual periodsin thefile or letters in the
ASCII character set that could not be translated into hexadecimal
codes.
If the file you are typing is very long, you may want to use the MORE
commandto display thefile one screen at a time. For example, thefol-
lowing commandwill type the contents of the MYFILE.DOCto the
-MORE command. The .MORE commandwill display thefile one
screen at a time.
MOS-D191 4-89
General Commands
VERIFY
Type: Extrinsic.
Operands:
ad: enter the letter of the drive that contains the disk to be
checked, or omit to check the current drive. _
Explanation:
.VERIFY should be run from task 0 with all other tasks removed. oom,
.VERIFY may be run on any type of disk. If you include the /c
operand, anyfiles with non-contiguous clusters display on the screen
as they are being checked, for example:
4-90 MOS-Di9i
If you specify /v, the file and path nameson the drive being checked
appear on the screen. The .VERIFYallocation status display notesin-
correct file sizes by comparing the actual file size to the numberof
clusters it occupies, for example:
If you specify /f, .VERIFY writes the data in the lost file allocation
clusters into files. These files are named LOSTDATA.nnn,and are
numberedin the order in which they are encountered. You may then
display and check thefiles to decide whetheror not they should be
deleted. Deleting thesefiles will free their disk space for other uses.
MOS8-DL9L A- OL
General Commands
When using MOS SECURITY forfile level security, care must be ex-
ercised when using the VERIFY commandto checka disk forfile al-
location errors! ONLY users with "level 3 - unrestricted access"
assigned for ALL file classes should be allowed to run VERIFY!(This
level of access is usually reserved for someone at the system ad-
ministratorlevel.)
CAUTION:If the user running VERIFY does not have level 3 access
for all file classes, VERIFY will not.be able to properly read the disk.
4-92 MOS-D191
WVER
Type: Intrinsic.
Operands:
Explanation:
The default status of .WVERis off when you boot your computer. You
maydisplay the current status of .WVERby typing the commandat
the system prompt without any operands. This will display a message
similar to the following:
MOS-D191 4 - 93
You may enter an A to abort the current function and return to the
system prompt, or enter an R to retry. If an error appears while
.WVERis active, you may have a problem with your disk or a pone,
A= 94. MOS-DLS1
CHAPTER5:
MULTI-TASKING / MULTI-USER
MOS-D191 5-1
Multi-Tasking / Multi-User
5-2 MOS-DISL
Connecting Terminals and Workstations ......... 5 - 52
KEYMAP 2... ee ee ee tt ee 5 - 62
Modems . i.e ee ee ee ee ew ns 5 - 64
MOS-DIL81 5-3
Multi-Tasking / Multi-User
Multi-Tasking Concepts
Thefirst time you boot your computer with MOS, the command
processor loads andall remaining base memory (memory below 1
megabyte) is available in a single-tasking environment. MOSgives
you theability to allocate the available extended memory (memory
above 1 megabyte) into partitions to create a multi-tasking environ-
ment. A partition in MOSis a portion of memory which is given
processing time for running programsor functions.
1 Megabyte
BIOS
MOS
Video Card
640K
BASE
MEMORY
(Partition 0)
B- 4 MOS-D191
This diagram showsthefirst megabyte of addressable memory, which
is contiguous RAM that wecall base memory. The base memory is
typically 640K, but depending on your system can often be less, and
sometimes can be as much as 704K.
The upper portion of this first megabyte from 640K to 1MBis called
high memory andis typically used for BIOS, the MOS command
processor, video card memory and other add-in board memory.
Note that a small portion of low base memory is used by the MOS
command processor, and about another 16K is reserved for use by
MOS. Sometimes more than 16K is reserved for MOS if FREEMEM
space is not large enough. (See FREEMEMin the Configuration chap-
ter of this manual.)
Thefirst time this computer is booted with MOS, most of the base
memory is available for processing in a single-tasking environment.
This area of base memory is referred to as partition 0. Only one pro-
gram or function can be active in partition 0 at a time.
For example, you could add two additional partitions in the extended
memory of this computer. Each partition is identified by a number.
The twopartitions we add will be partitions 1 and 2. The following
diagram illustrates the memory divisions for multi-tasking.
MOS-DL9I BB
Multi-Tasking / Multi-User
1 Megabyte
BIOS
MOS
Video Card
640K
BASE
MEMORY
(Partition 0)
5-6 MOS-D191
Multi-Tasking Processing
If you have a modem, you may set up one partition that does nothing
except transmit and receive files. While the modem is active, you may
be processing in other partitions.
Muiti-Oser Concepts
MOS-DL9L ~7
a
Multi-Tasking / Multi-User
Multi-User Processing
There are many features in MOSthat let you define the processing
environment. Security lets you restrict a user’s access to partitions,
directories and files. Security may be set up for only a few users, or
for all users. You should review the Security chapter in this manual
to determine whether or not you want to use security on your system.
Time Sharing
5-8 MOS-D191
When you first boot your computer, the default value for the SLICE
command statementis one time tick, which is approximately 1/18 of a
second. MOSconstantly gives each partition in turn an equal share of
the processing time. Partitions that are waiting, or "at rest" always
give up their turn.
As you add more partitions or more users, you may notice slightly
slower processing time in each partition. This is because the more ac-
tive partitions there are, the longer it takes MOSto get to each parti-
tion to give it processing time.
There are several utility functions in MOSthat let you control the
processing time allocated to each partition, as well as whether or not
a specific partition is to use disk caching. The commandthat provides
these functions isMOSADM.
Rebooting Tasks
MOS-D191 a-9
Multi-Tasking / Multi-User
oo
-16 MOS-D191
ot
ADDTASK
Type: Extrinsic.
Operands:
task ID enter up to two digits for the task numberto assign to the
partition. Zero is reserved for the partition in base
memory. The number entered correspondsto the access
key(s) by which the partition is accessed. If not entered,
MOSassigns thefirst available task number in sequence.
MOS-D191 5-1i
Multi-Tasking / Multi-User
3ATERM -ADM3A
MOS-D1 OL
52TERM - DEC VT-52
port The logical port numberof the serial port through which
the terminal for this task is connected to the host com-
puter. This port numberis based on the orderit is listed
in the $SERIAL.SYS statement in your CONFIG.SYS
file. For example, 2 represents the secondserial port ad-
dress listed in the DEVICE=$SERIAL.SYSstatement.
See $SERIAL.SYSin the Configuration chapter.
MOS-D191 “13
ar
Multi-Tasking / Multi-User
workstation Enter the numberof the workstation, e.g. 1 for the first
number workstation, 2 for the second, etc. (This operand is used
for hardware-based workstations like VNA and Ma- —
Xtation workstations, and replaces the "port" and "baud
rate" operands used with terminals.)
Explanation:
ADDTASK MAX
This will add a background task of maximum size with the next se-
quential task ID number,a blank security class and no startup batch
file for customizing the path, prompt, or other variables for that task. —~
You may add tasksof a specific size by including the memory size, in
Kilobytes, with the command. For example:
ADDTASK St2
ADBTASK 256,,,TASK
Note that a commais entered in the positions for the task ID and —
security class. You do not need to enter any commasafter the last
operand in the commandline.
5-44 MOSs-D191
You must use the partition access keys associated with the task num-
ber to access the partition. Partition access keys are explained follow-
ao,
ing these commands.
If you add three partitions with task numbers1, 2 and 3, and then
use the .REMTASK (remove task) command to remove task 2, only
tasks 1 and 3 are defined. If you then add anothertask and do not as-
sign a task number, MOSwill assign the new partition task number
2, which is the first available number. For better control, you may
want to specify a task number, for example:
-ADDTASK 256,5
The class operand is used only when user security is active on your
computer. Each partition may have one class assigned to it. Only
users that are allowed access to that class can access the partition
after they sign on. The access keys to a partition that a useris
restricted from accessing will not work for that user. See the Security
chapter of this manual for more detail.
oo
The startup file is a batch file that you must create prior to invoking
the .ADDTASK command.Thefile must be located on the root direc-
tory of the boot drive. MOS will automatically invoke the batchfile
from the .ADDTASK commandas a nestedbatchfile. The startup
batch file may contain any commands you want to automatically in-
vokefor a partition.
For example, you may want to assign the system promptin each par-
tition to display the task number. In a multi-user environment, you
may want to have the promptdisplay a user’s nameorinitials or the
task ID number.
For example, the startup batch file TASK.BAT mightcontain the fol-
lowing commandsto customize the environmentfor that task:
MOS-D191 5-15
Multi-Tasking / Multi-User
TASK.BAT
BATECHO OFF
PATH=CACAPCMOS
PROMPT=(TASK $1] $P$G
MOS must also know which port a terminal is connected to, and the
baudrate for communications. There is no default for these two
operands. The $SERIAL.SYSdevice driver that defines serial ports
mustbe defined with a DEVICE= command statement in your CON-
FIG.SYSfile.
ADDTASK 572,1,A,USER1,PCTERM,2,58400
would add task number 1 with a 512K memory size, security class A,
andstart-up batch file USER1I.BAT. PCTERM.SYSwould be theter-
minal driver used for communication, The terminal would be con-
nected to port 2, the second port defined with your $SERIAL.SYS
statement. The baud rate for communications would be 38400.
-16 MOS-DL9L
Or
Workstationsdiffer slightly from terminals. The ADDTASK com-
mandto add a 600K task for a MaXtation SH-4/M workstation with
the next sequential task ID number,a blank security class and the
startup batch file TASK1.BAT mightbe:
ADDTASK 600,,,TASK1,SH,1
where SH.SYSis the device driver, and 1 represents the first Ma-
Xtation workstation.
If user security is active, a user may also change the security class of
the partition in which the user signed on, or may changethe default
output class that is assigned to anyfiles or directories the user
creates in that partition. See the .CLASS commandin the security
chapterof this manual.
MOS-D191 5-17
Multi-Tasking / Multi-User
REMTASK
Type: Extrinsic.
Operand:
Explanation:
You may tse .REMTASKto remove any task to which you have un-
restricted access, except partition 0. Partition 0 is absolute and may
never be removed. To removea partition with a task ID of 4, you
would enter:
-REMTASK 4
REMTASK ALL
5-18 MOS-0191
For example, you may have partitions 1, 2, 3 and 4 set up on your sys-
tem. You use .REMTASKto removepartition 2. You then add
anotherpartition without specifying a partition number. The new par-
tition then becomespartition 2.
Partition Access
The ALT key and the numbers on the key are used to
switch between tasks. To switch tasks, hold down the ALT key, type
the number(s) of the task ID for the partition you want to access, and
then release the ALT key. (The task ID numbersare assigned by the
.ADDTASK commandand can be viewed with the MOS MAP com-
a,
mand.)
To access the partition assigned task ID 12, hold down the ALT key
and type a 1 and then type a 2 on the numeric keypad, then release
the ALT key, for example:
MOS-D191 5-19
Multi-Tasking / Multi-User
ALT 1 2
SWITCH Command
5-20 MOS-D19%
The .MOS Utility Command
These functions are invoked at the system prompt from within a par-
tition by typing .MOS, followed by the function and any necessary
operands. To invoke the MAP function, you would type .MOS, a
space, MAP,and then press ENTER. For example:
MOS MAP
MOS-D191 &- 21
Multi-Tasking / Multi-User
A utility function is active only for the partition you are in when the
function is invoked.If there is a function that you always want to
have active for a partition, you may wantto includeit in the startup
batch file for that partition.
The following explains each utility function along with any operands
that must be entered with the function.
MOS MAP
= 22 MOS-D191
"Pri" is the priority assigned to each partition. "Slice" is the number
of time ticks assigned to each partition. "Files" displays the number
of files currently open in each partition. "Status" displays whether
the partition is active or in a waiting state.
The bottom of the display shows how much system memory is avail-
able, how much expanded memory has beenassignedto the task if
any, and how much memory hasbeenassigned/used for the System
Memory Pool (SMP).
MOS DIS
Note that DIS cannot be used for all applications because they may
be disabled when you don’t want them to be. Sometrial and error is
needed to determine when DIS is appropriate. ,
MOS NODIS
MOS-D191 D- 23
Multi-Tasking / Multi-User
Serial port COM1 normally uses IRQ 4 as its default, and COM2 nor-
mally uses IRQ 3 as its default. Some applications and hardwarere-
quire the use of a specific interrupt vector, which may be 2, 5, 6 or 7. _
If a specific interrupt is required by the application or hardware
product, it will be explained in the documentation that comes with
the product. The valid IRQ numbers you mayreserve are 2 through 7.
For example, many tape backup units require the use of IRQ 6, which
is normally used by the system floppy disks. Before using such a tape
backup unit you should reserve IRQ 6 with the MOS USEIRQ 6 com-
mand. When your backupis finished, enter the command MOS
FREEIRQ6 to return use of IRQ 6 to the floppy disks.
MOS USEIRG 3
entered in a task would mean that task will always receive control
when an IRQ 3 occurs.
5 - 24. MOS-D191
If the interrupt vector is already assigned to another task or device,
one of the following messages appears:
when an IRQ 5 occurs, MOS will test the serial port at address O6A0
to see if it caused the IRQ to occur. If it did then task 0 will receive
control.
MOS-D1L9i 5-25
Multi-Tasking / Multi-User
when an IRQ 5 occurs,if the serial port at address 06A8 caused the
TRQ,then task 1 would receive control.
Using this method you could provide for multiple mouse support.
Each mouse would communicate using the same IRQ but through a
different port. (Note that your mouse software would have to be able
to be configured for IRQs and ports that are available in your specific
hardware environment.)
You can only release an interrupt vector while in the partition where
it was originally reserved. For example, if the release of IRQ 3 is suc-
cessful, the following message appears:
If the release is not successful, one of the following messages may ap-
pear:
a“ \.
5 - 26 MOS-DI9L
In orderto free a port specific IRQ reservation, the port must be
specified along with the IRQ. For example:
If that port was not previously reserved, the following message will
appear:
—,
MOS IRQ
The IRQ function will display the status of the interrupt vectors and
ports that are currently reserved on the system. For example:
MOS-DL8I 5-27
Multi-Tasking / Multi-User
For general IRQ reservations, the port column hasno entry and the
message:(non port specific reservation) appears.
Interrupt vectors that are still available for use will not appear in the
display. From our example display you can tell that interrupt vectors
6 and 7 are available for use.
The WAITfunction lets you instruct MOSto wait for an event before
continuing. The event may be a numberof seconds (nnnnn)up to
99999,or a specific date and time that must be enteredin the form
mm-dd-yy hh:mm:ss. The date is optional and may be omitted to set
only a specific time. The hh:mm:ssis the time known to the computer
wherehhis 0 to 24 for the hour, mm is 0 to 60 for the minutes, and ss
is 0 to 60 for the seconds.
For example, you may wantto set up a batchfile that will export files
to a back up device late in the evening when there is no one on the
computer. You may include .MOS WAITin a batchfile with the .EX-
PORT commandso that the export occurs at a specific time. You may
invokethe batchfile at the end of the day, and the export will be com-
plete the next morning.
Any user may cancel the wait function by pressing any key. Aborting
the WAITfunction sets an error level one. If the WAIT function is
processing from within a batchfile, control returnsto the next state-
ment in the batch file. You may wantto set the next statement in the
batchfile for errorlevel checking.
5-28 MOS-DL91
MOS VMODE mode
MONDO- monochromecard
CGA - 80column color graphics adapter
C40 -40column color graphics adapter
HG1_ - 32K Hercules type 1 support
HG2_~ - 64K Hercules type 2 support
E43 - 48 Line EGA Main Console
EGA - Multi-tasking EGA graphics - 80 column
E40 - Multi-tasking EGA graphics - 40 column
VGA - Multi-tasking VGA graphics - 80 column
V40 - Multi-tasking VGAgraphics - 40 column
You may have a color monitor attached to the main console. Manyter-
minals will not support color. If an application that runs in color
causes problems with the video display at a workstation, you may
need to change the mode at the workstation to monochrome before
running the application that causes the problem.
HG1 and HG2 set the video mode to recognize and work with a her-
cules type video card.
E48 sets the video display for 43 lines in graphics mode instead of 25
lines. This mode will require at least 256K of memory in each task
whereit is set. The resolution of some graphics applications may re-
quire the 43 line display.
MOS-DI981 5» 29
Multi-Tasking / Multi-User
EGA, E40, VGA and V40set the video modeto recognize a graphics
adapter card, and will require at least 256K of memory in each task
where they are set.
Note that you may set up EGA and E40 on any computer, but you can
only switch in and out of EGA tasks on an 80386-based computer or
greater (80486, etc.). VGA and V40 can also be set up on any com-
puter, but the 80386 requirement for task switching does not apply.
Also, these four multi-tasking modeswill only work at the main con-
sole, not at terminal workstations. When you switch out of any EGA
or VGAtask, any active processing in that task is suspended. The
.MOS MAP display will show a status of "HOLD"for all suspended
tasks.
This utility lets you initialize a specific serial port by the port number
defined with the $SERIAL.SYSdevice driver, and define the at-
tributes for the port as follows:
N - none
D -DTR
X - XON/XOFF
P-XPC
R- RTS
These are the same handshaking protocols that are used with the
$SERIAL.SYS driver. See $SERIAL.SYS in the Configuration chap-
ter for more information.
5 - 30 MOS-Di91
For example, you may have a modem and needto initialize a serial
port to set up the mode for communications, The commandto initial-
“—~ ize a port with its attributes could be as follows:
This utility lets you redirect printer output that is sent to an LPTn
device so that it will be sent to a COM port. This can be LPT1, LPT2
or LPT3. The COMport for redirection can be COM1 or COM2. This
is useful if you have a serial printer.
For example, the following command will intercept any printer out-
put sent to LPT1 anddirect the output to COM2, wheretheprinteris
actually connected to the computer:
The "TO"in the this commandis optional. You could also enter this
commandas:
This utility lets you redirect printer output that is sent to an LPTn
device to a different LPTn device. This is useful to redirect printer
output that an application sends to LPT1 to a different print device
(LPT2 or LPT3).
The "TO" in the this commandis optional. You could also enterthis
commandwith only a space between LPTn and LPTn.
MOS-D191 5-3
Multi-Tasking / Multi-User
This utility lets you redirect printer output that is sent to an LPTn
device to a printer attached to your terminal. This is only true for
most of the PCTERM terminal types. Your terminal must have a
serial or parallel port for the printer connection. For example, if you
have a printer connected to your terminal, the following command
redirects output normally sent to LPT1 to the locally attached printer:
Anyprinter output for this partition will then be directed to the pre-
viously defined LPT1 device. The "TO" in this commandis optional.
This utility lets you adjust the size of your partition at any time. The
nnnK represents the size of the partition in kilobytes (K). This size
maybe from a minimum of 32K to a maximum of 640K, depending on
your available memory. You must enter the K after the size to docu-
mentthatit is in kilobytes.
You may adjust the size of your partition at any time. For example,if
you need to increase the size for a partition before you can run an ap-
plication program, you could enter the following command:
This utility will adjust the size of only the partition you are currently
workingin.
5-32 MOS-D191
MOS INFO
MOS-DIS1 5» 33
Multi-Tasking / Multi-User
In this example thefirst three COM ports are undercontrol of the PC-
MOS $SERIAL.SYSdriver. There are three PC-type terminals con-
nected to the host computer through these ports. There are also four
SunRiver workstations installed. Since there are two serial ports on
each SunRiver workstation, the first SunRiver workstation’s serial
ports are therefore COM4 and COMB,the second SunRiver
workstation’s are COM6 and COM7, etc. You need to know these oo,
numbers whenspecifying the port number "n" with the MOS MOUSE
commandto initialize the mouse for the task.
MOS-D1L91
&
Gt
&
Also note in this example that the FREEMEMstatements conflict
with the default location of the SRTERM.SYSterminal driver’s
workspace at £4000 to E8000. Either the FREEMEM statements
would have to be changed to avoid using that address range, or the
SRTERM.SYSdriver’s workspace would have to be located at a dif-
ferent address.
MOS DSPORT n
DEVICE=$SERIAL.SYS /AD=03f8,IN=4/AD=06a0,IN=3/AD=06a8
If you connect a modem to this port and set it up for auto answer and
add a task for port 1, you would then have a multi-user environment
in which a remote dumb terminal and modem could dial in to access
the host machine.
MOS DSPORT 1
MOS-DIS1 5» do
Multi-Tasking / Multi-User
Once a port has been disabled with .MOS DSPORTit can be used
again later for a dumb terminal workstation by initializing that task
with the .ADDTASK command. Whena call is made to $SERIAL.SYS
to initialize a port, as .ADDTASK does when a port is specified,
$SERIAL.SYSreverses the effect of the disable action. This could be
done with either a local direct cabled workstation or a remote
workstation via modem.
If you intendto use a port with a modem onit for a remote LANLink
connection, you must re-initialize the port with .MOS SERINITto
reverse the effects of the disable command before running LAN ON.
MOS MOUSE
where:
For example:
5- 36 MOS-D191
will initialize a 2-button mouse on COM1 at 2400 baudfor the task in
which the commandwasentered.
For example, to install one mouse in the foreground task on the host
computer usingthefirst serial port (COM1), the following com-
mands/statements would be necessary:
CONFIG.SYSfile:
DEVICE=$SERIAL.SYS /AD=03F8,IN=4
DEVICE=$MOUSE.SYS
AUTOEXEC.BATfile:
(This will initialize the mouse on thefirst serial port with a 2400
baud rate and then run MOUSE.COMto start the mousesession.
The commands mustbe in this order.)
MOS-D1L91 S- 37
Multi-Tasking / Multi-User
MOS MOUSEoff
MOS KEYB
In order to use one of the foreign keyboard drivers you must inform
the system of the physical type of keyboard that is connected to the
workstation. The keyboard type is defined with the following com-
mand:
where:
AT = AT-Style keyboard
PC = PC-Style keyboard
EN = Enhanced keyboard
SB = Small type-ahead Buffer
LB = Large type-ahead Buffer
MOS KEYB AT
5+ 38 MOS-DI91
The type ahead buffer allows you to start typing your next command
while the current one is executing. However, under DOS,if you type
more than 15 characters ahead, you will hear a beep. This is because
the type ahead bufferis full.
MOS KEYB SB
The following device drivers can be used to remap or change the key
assignmentsof the standard U.S. English keyboard to those of the re-
quired national keyboard layout:
MOs-D191 5- 39
Multi-Tasking / Multi-User
DEVICE=$KBFR.SYS
MOS FILES on
&- 40 MOs-DL91
If a user accesses a printer that is not in use by any other task (by
printing or checking the status), the printer will be reserved for that
user for 15 seconds. Any other user will receive a busy status from
that printer while it is reserved. The time between access and release
of the device (reservation time) can be set with the "nnnn" operand.
only sets the reservation time for the LPT1 print device to 60
seconds.It does not actually access the printer, and therefore, does
not reserve the printer.
Entering:
will then access the LPT1 print device and display the results of the
access and reservation.
Entering:
Also see the "MOSADM HOLD task LPTx nnnn" commandfor the
system administrator. It is similar in function except it can set the
reservation time or release a printer for another task.
MOS TSR on
MOS-D191 5-41
Multi-Tasking / Multi-User
To removetheutility, enter:
5-42 MOS-D191
The .MOSADMUtility Command
These utility functions are invoked at the system prompt from within
any partition by typing .MOSADM,followed by the function and any
necessary operands.As in the .MOS command, you may invoke any of
these functions by entering only their first three characters.
wantin
MOS-DI181 5-43
Multi-Tasking / Multi-User
«MOSADM SLICE 3
You may also issue the following utility function to change the num-
ber of time ticks for a specific partition.
.MOSADM SLI 3 12
The maximum numberof time ticks you may define with the SLICE
utility is 255, howeverthis is not a practical limit. A practical limit
for assigning timeticks is 4. Note that if you enter 0 for the number
of timeticks, it will disable the partition.
5- 44 MOS-DL9L
MOSADM PRI n {task}
MOSADM PRI 7
This commandwill change the priority for the current partition. The
following commandwill change the priority to 5 for the partition as-
signed task ID number2:
.MOSADM PRI 5S 2
The partition(s) with the highest priority will always get processing
time before any partition(s) with a lowerpriority.
MOS-D191 5-45
Multi-Tasking / Multi-User
If you later want to turn disk caching back on, you may enterthefol-
lowing command:
MOSADM CACHE ON
MOSADM TMFACTOR 2
5-46 MOS-DI9L
will change the value of one timetick to approximately 1/36 of a
second(1/18 divided by 2). This means that each task will in tun
receive 1/36 of a second of processing time rather than 1/18 of a
second. In other words, MOSwill switch tasks twice as often.
NOTE: Usethe lowest value for "n" that gives satisfactory results
since using a larger multiplier than necessary will introduce extra
system overhead and reducethe overall system throughput. Values
for "n" in the range of 1 to 20 should work best in most cases. The
maximum allowable valueis 40.
To reset the time slicing rate back to the default value, enter:
MOSADM TMFACTOR 4
MOS-D191 5-47
Multi-Tasking / Multi-User
MOSADM VIRQ ON
This will effect the changes to the task switching procedures required
for patched mouse driver multiple mouse support.
where {task#} is the numberof the task for which the option will be
set.
5-48 MOS-DLO1
MOSADM TIME on| off
Operands:
off If you enter OFF as the only operand with the command,
the amount of EMS memory previously set for the task
will be de-allocated and returned to available system ex-
tended memory.
MOS-D191 - 49
cat
Multi-Tasking / Multi-User
For example, if you were going to run Ventura Publisher 3.0 in task 1
on your system, you would first switch into task 1 by pressing ALT- 1
and then enter the following commandat the system prompt:
For example, if you enter the MOS MAP commandin task 1, the last
two lines of the MOS MAP display mightbe:
5-50 MOS-D191
In this example the total amount of memory available on the system
is 4096K, or 4MB. Presently, 2196K of thatis still available as sys-
tem extended memory. Also, 256K of EMS expanded memory has
been assigned to task 1, the task in which this MOS MAP command
was just entered. All of the EMS memory is available since we had to
exit the application to enter the MOS MAP command.
MOS-D191 6B» 61
Multi-Tasking / Multi-User
You must also be sure any workstation options are set up correctly
for use under MOS. Some terminals may require the use of ESC key
sequences for communication with the processor. The next sections ex-
plain the necessary details for the proper installation and set up of
terminals and workstations.
Terminals vs Workstations
~ 82 MOS-D19i
HN
Serial Ports
The serial ports are normally the standard type that uses the NSI
8250 UARTor equivalent. MOSis also capable of supporting a
variety of workstation communication links. You must use a driver
that replaces $SERIAL.SYSfor the communication link. Special
ports that have synchronous communications capability may not be
compatible.
Cable Connections
2 3
3 2
7 7
MOS-D1 91 5-53
Multi-Tasking / Multi-User
2 2
3 3
5 7
2 3
3 2
5 5
You mayalso need to run a cable to a modem from either the host
computer or a terminal. For either of these, use a standard modem
cable includingthe following pin connections.
Main Console or
Terminal Pin Modem Pin
2 2
3 3
4 4
5 5
6 6
7 7
8 8
20 20
5 o4 MOS-DL9L
Terminal and Workstation Device Drivers
“as
MOSsupplies the terminal device drivers for most standardter-
minals. All terminal device drivers that you use mustbe set up and
defined in the CONFIG.SYSfile with the DEVICE= commandstate-
ment. The terminal device drivers included with MOSare:
38ATERM.SYS - ADM 3A
MOS-D191
Multi-Tasking / Multi-User
There may be other terminals that are not included with the MOS
standard terminal drivers that will also work with MOS.
° scrolling capability
* The total numberof data, start, stop and parity bits must add up
to 10.
5- 56 MOSs-DI91
Terminal Display Differences
The video screen on the main console has a 25 line display. The video
screen on some terminals may haveonly a 24 line display. With ap-
plications that require the use of 25 lines, you may needto scroll the
video screen on the terminal up or down to display thefirst or last
line of a screen.
For example, some applications use the 25th line as a control line.
While you are workingat a terminal, only lines 1 through 24 appear
on the video screen.
Whenyou needto see the 25th line, you mustscroll the screen up so.
that line 1 no longer displays, but line 25 does. You maythenscroll
the screen back down so that lines 1 through 24 again display.
MOS-D1LOl 5-57
Multi-Tasking / Multi-User
ESC T
ESC B
If you turn on the terminal after MOShas been booted, use ESC
T or ESC to refresh the display on the video screen.
ESC C
~ 58 MOS-D191
Or
ESC N
ESC A char
Press ESC and A to send a scan code emulation for the ALT key,
then type a character which maybe letter (A to Z), a digit (0 to
9), a hyphen, or an equal sign. For example, to emulate ALT X
from a terminal, press ESC A X.
ESC S H/E/U/D/I/X/P
ESC Z H/E/U/D
ESC n
MOS-DLS1 5-59
Multi-Tasking / Multi-User
ESC F nn
ESC K
Press ESC and K to send the scan code emulation from a terminal
for the CTRL BREAK key function on the main console. Use of
the break key may be disabled when running some application
programs.
ESC M nn
ESC ESC
Press ESC twice at a terminal to send the emulation scan code for
the ESC key (hexadecimal code 1B) on the main console.
NOTE: If you are using the DEC VT-52, IBM 3101, or Zenith Z-
19, do not use the ESC key. Instead, use the key combination that
generates the hex code 1C. On the VT-52 or VT-100, this would be
CTRL and backslash (CTRL\), on the 3101 (US keyboard) use
ALT and equals (ALT=).
-60 MOS-DIL9L
ot
Escape Sequence Chart for Non-PC Type Terminals
ESC CTRL-BREAK
ESC sc ESC
ESC 0-9 Toggle Task Switch
©
>
MOS-D1L9l 5-61
Multi-Tasking / Multi-User
-KEYMAP
Translate from?. *
Enter up to four key strokes as the new key and press ENTER. If pos- —.
sible, use only one key stroke. If you enter multiple keys, enter them
rapidly or they will not translate. Non-ASCII keys display on your
video screen as an asterisk (*), such as in this example for the Fi key.
If the ENTER keyis part of the string, enter $ R, which will appear
as a slash (/). You may enter $ $ to include a $ as part of the string.
Enter the string, which has no practical limit, and press ENTER. If
the key has been assigned to a different string, you will be askedif
you wish to replace it, and you may enter either Y or N. A prompt "Is
the above entry correct?" then appears. Enter Y if the assignmentis
correct. If not, enter N and you return to the MOS system prompt.
Translate from’?
You may continue to enter new key assignments, or press ENTER os,
without an entry to end the .KEYMAP session. A prompt, "All
finished?" will appear, and you mayenter either Y or N. A responseof
N returns you the "Translate from?" prompt.
5 - 62, MOS-D1L91
You mayenter the nameofa file to store your assignments, or press
ENTERif you do not want to save the assignments in a file. You
should use a file extension of .KEY to help you identify these files. If
you save the assignments, you mayrecall thefile to use the key as-
signments at a later time. For example, the commandto use the as-
signments in the SAMPLE.KEYfile is:
.KEYMAP SAMPLE.KEY
If you have more than onefile of key assignments, always load the
largest onefirst. If you load a small file and then load a largerfile,
the smaller file is overwritten. Depending on the numberof key as-
signments you set up, the .KEYMAP function will use a small
amount of memory in a partition, usually about 2K.
MOS-D191 &- 63
Multi-Tasking / Multi-User
Modems
MODEM x y
where "x" is the port number from the ADDTASK commandfor the
partition that controls the modem, and "y" is the modem type from
the following table:
5 - 64 MOS-D191
For example, the commands:
MODEM 7 2
ADDTASK 384,1,,USER1,PCTERM,1,2400
To edit or define modem types log onto the drive and directory which
contains the MODEM.COMprogram and enter the MODEM com-
mandat the system prompt with no operands,as follows:
MODEM
A menuwill appear that shows you the proper syntax for using the
MODEMcommandto initialize a modem plus the existing modem
types, followed by:
DEVICE=SRTERM.SYS E4000
-66 MOS-D191
oe
Also, only one task at a time may view anyparticular display screen.
For example,if the host computeris viewing its own display screen
(task 0), no other user may press ALT-0 to switch tasks and view that
screen at the same time. Multitasking partitions at the host do not
present the same problem. As such, the system administrator may
want to turn task switching off in multiuser partitions by using the
MOSADM SWITCH OFFcommand.
MOS-D191 5-67
Multi-Tasking / Multi-User
The MOS System Monitor is a terminate and stay resident (TSR) pro-
gram that provides a dynamic status screen for viewing and changing
your system’s multitasking/multiuser environment. It can be thought
of as an interactive MOS MAP display.
While the MOS MAP function only displays a map of statistical infor-
mation about the partitions set up on your computer, the System
Monitor program provides a menu interface with MOS whichallows
you to dynamically add and remove tasks without returning to MOS
and using the ADDTASK or REMTASK commands.
MONITOR
5-68 MOS-DI191
The hotkey combination CTRL SPACE is use to activate the System
Monitor once loaded. Pressing CTRL SPACEwill bring up the Sys-
tem Monitor display, similar to the following:
With the System Monitor display on the screen press ENTERto bring
up the Command Window. The Command Windowis a function sub-
menu that is superimposed over the System Monitor display, as fol-
lows:
Use the function keys to select the desired function from the Com-
mand Window. Whenyouselect a specific function, messages or
prompts will appear in the bottom half of the Command Window to
assist you with the operation.
MOS-DL9l 5-69
NOTE:Someof the functions in the Command Windoware task
specific, i.e. the operation will be performed on a specified task. To
specify a task for modification you must use the cursor keys to high- oo
light the desired task in the System Monitor display BEFORE press-
ing ENTERto call up the Command Window.
Any task specific functions you select will then be performed on the
selected task. These include: remove a task, restart a task, change
priority, change slice, change keyboard status, and task switching
ON/OFF.
If you are using a color monitor you may press TAB from the Com-
mand Windowto changethe color of the window.
Press ENTER to return to the System Monitor display from the Com-
mand Window.If you made any changestheywill be immediately up- om
dated on the System Monitor display. You may optionally press ESC
from the Command Windowto exit the System Monitor or press F10
to exit and remove the System Monitor from memory.
5-70 MOS-DISL
CHAPTER6:
BATCH FILES
MOS-DI91 6-1
Batch Files
Introduction
—,
ooo,
Batch files let you group commandsin file to create your own spe-
cialized processes. For example, you can create a batch file that will
copy several files into one large file,EXPORTthe largefile, and then
erase the original files.
ABORT
AUTOCD
.BATECHO
.CALLL RETURN “~
ECHO
FLUSH
FOR IN DO
GOTO
JF
INSERT
KEY
NEXT
PAUSE
REM
STOP
TEXT/.ENOTEXT
For example, you may have several applications on your system, but
always want to load the same application at startup. You can include
the path andfile namethat load the application in your
AUTOEXEC.BATfile. Each time the system is booted, it will then
automatically arrive at that application. This can be useful in estab-
lishing partitions and signons. Automated batchfiles are discussed in
this section.
You may use the MOSsystem editor, .ED, to create batchfiles in the
same wayyou create otherfiles. A batch file is an ASCII text file con-
taining a group of commands as they would be entered from the key-
board. .ED lets you easily create a batch file and later add, delete, or
insert lines. Refer to the Editor section of this manual for more infor-
mation about creatinga file.
MOS-DIOL 6-3
Batch Files
ABORT
Type: Intrinsic.
Form: ABORT
Explanations:
ABORTis generally used with the .IF command. You may use the
.IF commandto test for various conditions, which must be true or
false for processing to continue. In the example that follows, the condi-
tional .IF statement is testing the value of an errorlevel, which is set
by the processing of a command.Errorlevel.2 indicates that process-
ing was unsuccessful. For more information about error levels, refer
to the .IF commandinthis section.
If any step in the export process were to fail and generate an error-
level 2, this batch file and anyfiles that it may be nested from would
be aborted.
oA MOS-DL9L
&
AUTOCD
Type: Intrinsic.
Explanation:
CD>CADIRTSAV
CD
.DI RB os, 4
CD WORK
DIR %i1
GD WORK\TEMP
DIR %4
CD \WORK\TEMPASAVE
JR Yt
AUTOCD CADIRISAV
6-
CH
Ss
at
MOSs-D)
Batch Files
-BATECHO
Type: Intrinsic.
Operands:
Explanations:
BATECHO OFF
DATE
JTIME
PROMPT $P$G
CLS
This file prompts you for the system date and time, and theninitiates
a prompt. It then clears the screen and only the prompt will display.
Any batch files that may be executed after this file has executed will
have .ECHOoff.
6-6 MOS-D191
CALL/RETURN
a
-CALL statements let you redirect the order in which commands ex-
ecute within a batch file. You may redirect processing to a specific
line within thefile if it is preceded by a label. When a .CALL com-
mandis encountered, execution proceeds with thefirst statementfol-
lowing the specified label. When a corresponding .RETURN command
is found, processing is redirected back to the commandfollowing the
-CALL statement.
Type: Intrinsic.
label
-AETURN
Operand:
Explanation:
MOS-D1L91 6-7
Batch Files
GOTO START
(MOVE
PAUSE
COPY A:*.* B:
.-ERASE A:*.*
RETURN
‘START
.ECHO PLACE DISK #1 IN DRIVE A:
.ECHO AND BACKUP DISK #1 IN DRIVE B:
CALL MOVE
.ECHO PLACE DISK #2 IN DRIVE A:
ECHO AND BACKUP DISK #2 IN DRIVE B:
CALL MOVE
If no label is specified processing halts. Note that the label never dis-
plays during execution of a batchfile.
6-8 MOSs-DI191
ECHO
When .ECHOis on, the batch file statements are displayed on the
video screen as they execute. .ECHOoff prevents this display, but
does not inhibit the display of any messagesin thefile.
Type: Intrinsic.
.ECHO message
Operands:
Explanations:
-ECHOis also useful in sending messagesto the video screen. For ex-
ample:
ECHO OFF
CLS
ECHO THIS IS A LIST OF BATCH FILES
DIR *.BAT
MOS-D1L91 6-9
Batch Files
FLUSH
oo
.FLUSH mimics the action of pressing CTRL PgDnto clear the key-
board save buffer of entries. This prevents someone from viewing
your previous keystrokes.
Type: Intrinsic.
Form: FLUSH
Explanation:
-FLUSH
CLS
To quit working in MOS, just type QUIT. Because you've cleared the
buffer and cleared your screen, no one can retrieve your keystrokes to
see what you were workingon.
6-10 MOS-Di91
FOR IN DO
Type: Intrinsic.
Operands:
Explanation:
Note the use of a space as a delimiter between the items that com-
prise this group. In this example, the files that carry an .ASM, .DOC,
and .LST extension make upthe group. Each file with one of these ex-
tensions is a memberof the group and each will be executed as an
operand with the .COPY command.Theposition in %%A will be
replaced by eachofthefiles in the group.Soif three files, MOSCOM,
MOSATS, and MOSXOM,carrying the .ASM extension were en-
countered the execution would occur asfollows:
MOS-D191 6- il
Batch Files
COPY MOSCOM.ASM B:
Files copied: 1
COPY MOSATS.ASM B:
Files copied: 1
COPY MOSXCOM.ASM B:
Files copied: 1
The group members in this example could have been any typeoffiles.
Note that replaceable operands could be used as group members. To
execute thefile, the real operands would be entered on the command
line.
G-12 MOS-DISL
GO po
-
a
Type: Intrinsic.
Form: GOTOlabel
Operands:
Explanations:
-EXPORT*“DOG AS
ABORT
ROR
.ECHO AN ERROR WAS UNTERED
This batch file checks for errors during the .EXPORTand,if an error
was encountered, reports it. Note the redirection of processing to the
sERRORlabel. If no label were specified, the batch file execution
would stop when it encountered the .GOTO commandanddisplay the
message, "Label not found."
MOS-DIS1 6-13
BatchFiles
AF {NOT}
Type: Intrinsic.
Operands:
Explanations:
G-14 MOS-DLS1
Evror Level Conditions
0 - normal execution
You may also use an error level with a false statement. For example:
EXPORT textfile.doc a:
JP NOT ERRORLEVEL 1 GOTO OK
-ECHO Export was unsuccessful
ABORT
1OK
ERASE TEXTFILE. DOG
String == String
ao
You mayusestring == string to create conditions which must match
perfectly, before processing can continue. The commandform is:
The strings must match perfectly, though the match is not case sensi-
tive. Either string or both strings may consist of replaceable
operands. In the following example, if no operand was specified when
the batch file was started, the variable %1 will be null andtheIF con-
dition will appear as .IF !==! .GOTO NONAME.
Exist Statements
You may use a condition with an .EXIST statement. The form for an
exist statementis:
Type: Intrinsic.
Form: INSERT
Explanation:
INSERT
{OS-DILOL Ge LT
&a
he
&
BatchFiles
KEY
Type: Intrinsic.
Operands:
(set of keys)enter the group of keys or range of keys which you want
to invoke action. Keys must be separated by a delimiter
such as a commaor a space. This group may include the
letters A through Z, the numbers 0 through 9 and the
function keys F1 through F10. You mayspecify a range of
keys. If you do, they must be separated by a hyphen. Note
that if a lower case letter is entered, MOSinternally con-
verts it to an uppercase letter. Therefore, if b is used you
could press a lowercase b or an uppercase b and produce
the same effect. You may also use SP for a space and CR
for a carriage return.
command enter the command you want executed after the key has
been pressed.
Explanation:
The .KEY commandis often used with either .GOTO, .CALL,or the
nameof a user-defined batch file. Each of these commands may be
used to redirect processing within a batch file. The replaceable
operand, %%a, specifies to which point processingis to be directed.
For example:
COPY %I B: on
ECHO Do you want te erase %17 (Y/N)
KEY %%A IN (YN) DO .GOTO CHOICE**A
(GHOICEYy
ERASE %'
(;CHOIGEn
6-18 MOS-DL91
In this example if you were to press y, .GOTO choicey will be ex-
ecuted. The .GOTO commandredirects processing to the :choicey
branch within this batch file. Note that the character you press,
either y or n will replace the %%a operands, thereby redirecting
processing to a labelled point. In this example, there is no space be-
tween choice and %%a.
The .KEY command mayalso be used with the .CALL command. The
.CALL commandlets you redirect processing in a batchfile to a
labelled subroutine, execute it and return processingto the original
point with a .RETURN command. Lookat the use of .KEY in this ex-
ample:
‘START
TEXT Press the letter of the drive you want to review (A,B)
Press Fi to exit
-ENDTEXT
KEY %%A in (A-B,F1) DO .CALL SUB%S%A
GOTO START
‘SUBA
.DIR A:iwjp
RETURN
-SUBB
.DIR B:/w /p
RETURN
‘SUBFi
If you had pressed a key that was not in the group (A-B,F1), that
keystroke would be ignored and processing halted until a valid key
was pressed.
MOS-DL 91 6-19
BatchFiles
(MENU
CLS
EXT
Press one of the following:
1) COPY
2) DISPLAY
3) DELETE
) QUIT
mB
Type: Intrinsic.
Form: NEXT
Explanation:
Whenever you use .NEXT you will lose access to the current value as-
signedto the first operand (%0). Look at the example below and the
values for the operands.
%O WI We 3 %4 HS WG M7 KBB WO
a b co @ 6 g hoi
56 G&G G@ @€ Ff g on j K
Note that this permits you to add the k operand from the command
line. Now look at the next example, a batch file called XYZ.BAT.
PY %4 B:
if
Note that the use of !%1==! lets you test for a null case, where the
operand does not exist. Any character may be used in place of the !.
To invokethis batchfile, type:
The batch file will copy File1, File2, and File3 and so on until no more
operands are encountered, permitting you to enter more than ten
operands.
Batch Files
PAUSE
Type: Intrinsic.
Operand:
Explanation:
G = BE MOS-DL81L
REM
Type: Intrinsic.
Operand:
Explanation:
You may want to use .REM to insert remarks or comments into your
batch file. If you want to use .REM to display remarks on the video
screen during the execution of the batch file,ECHO must be on.
aw
MOS-DI91 G- Zo
Batch Files
#8TOP
Type: Intrinsic.
Form: STOP
Explanations:
You may use .STOP with the .IF command,to specify a condition
which requires a .STOP. The .IF command also may be used to
specify a condition that must exist for processing to occur. For ex-
ample:
If the file is nested two layers deep -- called by a batchfile that was
called by the original file, processing returnsto the batch file that
called the SSTOPpedfile. Execution of the file continues with the next
command statementafter the nameof the batch file that was just.ex-
ited.
“LEXT,ENDTEXT
Type: Intrinsic.
MOS-DL9L
oe
RO
oF
4
Batch Files
MOS-D191
Color Code Table
Black Black
TIMDOWDFOONDAUAWHY=AO0
MmMOUODWPOONMDHNAWN=AO
Blue Blue
Green Green
Cyan Cyan
Red Red
Magenta Magenta
Brown ordark yellow Brownor dark yellow
Light grey or white Light grey or white
Blinking black Dark grey or black
Blinking blue Light blue
Blinking green Light gree
Blinking Cyan Light cyan
Blinking red Light red
Blinking magenta Light magenta
Blinking brown Yellow orlight yellow
Blinking grey White
Explanation:
You mayfind it useful to use the clear screen command, .CLS, before
the .TEXT statement to clear the screen for the display. For example:
ACLS
TEXT
Exportingfil OS
a -ENDTEXT
MOS-D191
Batch Files
CLS
TEXT
i13 Exporting files
<ENDTEXT
You mayset default colors with the /Sbf, /Kbf, and /Cbf operands. You
mayalso set the initial cursor position within the text with the
/Pxxyy operand. For example:
TEXT/S14 /PO105
The text will start on line 5. The contents of the screen will be con-
verted to red on a blue background. This color selting becomes the
new defauit for all subsequent uses of .TEXT because /S was used.
JENDTEXT
6+ 28 MOS-DI191
Batch File Processing
eT
-ENVSIZE
.PATH
PROMPT
IME
DATE
ADDTASK
SIGNON
CLS
JNSERT
SET
MOS-DL9L 6« 29
Batch Files
-ENVSIZE
You may use the .ENVSIZE commandto specify the minimum size of
the environment. It must be followed by the size of the environment
in bytes. For example, if you specify .ENVSIZE 256, this permanent-
ly reserves at least 256 bytes for the environment.
-PATH
PATH=C:\dirl dire\dirSiwp
-PROMPT
-PROMPT [JAN]
JAN]
6- 30 MOS-D191
-TIME
If your system does not have a perpetual clock, you may use .TIME to
enter the system time. The .TIME is the internal timethat is known
to MOS. You must enter it in the format specified during system
setup. For example:
Whenentering the time, you may omit the seconds and hundredths of
seconds.
DATE
If your system does not havea perpetual calendar, you may use
.DATE to enter the system date. The .DATEis the internal date that
is known to MOS. You mustenterit in the format specified during
system setup. For example:
-ADDTASK
If you know that you always want to have certain partitions set up in
your system when it boots, include the .ADDTASK commandin the
AUTOEXEC.BAT. You may use multiple.ADDTASK commands to
set up as manypartitions as your system permits. In the example
that follows, the .ADDTASK command statement addsonepartition,
called partition 1, to the system.
ADDTASK 256,1,C,PART1
MOS-DISL @- 31
Batch Files
SIGNON
If you've chosen to use security for your system, include the SIGNON
command in your AUTOEXEC.BAT.This will automatically display
the MOSSignon screen whenthe system is booted:
CLS
INSERT
G- 32 MOS-D191
Nested Batch Files
COPY A**
JF ERRORLEVEL 2 SERIOUS
JF ERRORLEVEL 1 .GOTO ER1
NORMAL
GOTO NEXT
(ERI
POSSIBLE
(NEXT
.PAUSE Insert next diskette for processingy
NORMAL.BATcontains thefollowing:
CLS
wPEXT
ENDTERT
MOS-DLOL G+ dd
Batch Files
CLS
TEXT
JENDTEXT
PAUSE
CLS
PEAT
-ENDTEXT
ABORT
In these examples, the called batch files were executed and process-
ing was returnedto thecalling batch file. The called batch files them-
selves could have contained conditional statements that called
additional batch files. So you can nestfiles as many levels deep as
you need, up’to the full extent of the memory in your system.
You can create a batch file that performs the same group of com-
mands, but with different operands each time it is executed. This is
accomplished using replaceable operandsin thefile. When you ex-
ecute the file, MOS replaces the operands with those you enter on the
commandline. For example, look at the batch file, named
MOVE.BATthatfollows:
.EGHO. OFF
CLS
COPY %1 Ye
ERASE %i jv
G- 34 MOs-DLOL
To execute MOVE.BAT,type the following at the system prompt:
oo;
MOVE GAWPYV.DOG A;\
You mayalso use replaceable operands to pass data from one batch
file to another. You maydoso bysetting strings into the environment
with the .SET command. Lookat the two example batchfiles that fol-
low. Thefirst is called A.BAT. It contains:
SET DEST=A:
SET SOURCE=LIST1.D0C
B
SET SOURCE=(IST2. DOC
Each time B.BATis executed the current values for SOURCE and
DESTare found in the environment and substituted in place of
&SOURCEand &DEST. Note the use of the leading ampersand to
identify these operands as environmentreference variables. This al-
lows onebatchfile to control the action of another.
MM ¢
» SDL OL
3
Bs
ea
t
Compatibility
SET SCOMPATS=/N
SET $COMPAT$=/i
set Scompatd=/n/i
6» 36 MOS-DI91
MOS EDITOR - ED
MOS-DISL ded
MOSEditor - ED
Introduction
The Visual modeis similar to a word processor in that you may edit
screens of text, The file displays without line numbers, and the cursor
is positioned within the text. You can move anywhere in thefile to
add or delete text, copy a line, delete a line, page through screens,etc.__
In the Visual modé;allactivity appears on the screen asit occurs.
From either mode, you can display a graphic character table, and as-
sign graphic characters to the ten function keys. The function keys
while in the Visual modeto place graphic characters into your text.
You may find the graphic characters useful for designing special ef-
fects into your own menusandscreen displays.
o
Invokingthe
G-2 MOS-DLOL
A messagedisplays as the Editor is loading, and then the edit screen
appears similar to the following.
You mayalso invoke the editor directly in the Visual Modeby enter-
ing /v with the .ED commandas follows:
.£D filename jv
The following explains how to edit a file in the Command mode, and
the commandsthat are available. Following the commandsis an ex-
planation of how to edit a file in the Visual mode, andtheediting
keys that are available.
fee
MOS-D191 «3
al
MOS Editor - ED
You may changeor edit the text on the commandline.If you are
creating a new file, you may type any text for the line. The text may
not contain more than 80 characters. When you press ENTER,the —
text for the line is savedin thefile. The edited line then becomes the
currentline.
Using the previous example, the control line would show CL=2 when
you press ENTER.To display your changedline, you may enter the
list (L) command. Thefile would re-display on the text screen, begin-
ning with line 2, which is the current line. The current line is used as
a default value for most commands whena line.numberis not in-
cluded.
12 10C —
God MOs-DIL9L
Command Mode Commands
* ‘You may use the arrow keys and the backspacekey to edit any
entry on the commandline.
* Press the insert key to toggle the insert mode on andoff. When in-
sert is on, you may insert text anywhere in the line. When insert
is off, you will overwrite any current text.
MOS-D1LOL q-
Gr
MOSEditor - ED
A- ASSIGN
Form: A
Explanation:
Fi = Undelined
Whenyou assign values to the function keys, they are stored in file
named DEFKEYS.EDin the current directory. Each directory may
have its own unique DEFKEYS.EDfile. This file is loaded in a direc-
tory each time the editor is invokedin that directory.
7-6 MOS-D1LOL
C-COPY
Form: fypds
Operands:
Explanation:
29 S
To copy a block of lines, you must enterthefirst and last lines of the
block in the command. For example to copy lines 1 through 5 to the
end of the file, you would enter:
15 29 ¢
MOS-D191
=
a]
&
OS Editor - ED
D - DELETE
Form: ff iD
Operands:
Explanation:
You maydelete only one line by entering the numberof that line fol-
lowed by the D command. For example:
42 0
You maydelete a block of lines by enteringthe first and last line num-
bers of the block to delete. For example, the following command will
delete lines 3 through 10:
3 10D
Co
7-8 MOS-DISI
E- END
Form: E
Explanation:
MOS-DLOL 4-9
MOS Editor - ED
Form: Ffllename
Operands:
filename enter the new name you want to assign. There cannot be
any spaces between the F andthefilename, or within the
filename.
Explanation:
You mayassign a new file nameat any time duringthe editing ses-
sion. When you write thefile to the disk, the output is written to the
soo
new file name.If a file with the new namedoesnot exist, ED creates
the file for you. If a file with the new name doesexist, the output
replaces any current information in the existingfile.
For example, you may select to edit a file named MEMO.TXT. During
the editing session you may assign a different file name for output by
entering the following command on the commandline:
Fmemo.sav
You may then continue editing the file. When you issue a W (write) or
an E (end) command,the current text is saved on the disk in the
MEMO.SAVfile. If you enter the Q (quit) commandand select not to
save any changes, the original input file remains unchanged, the new
file name is ignored, and no outputis written to anyfile.
MOS-DI9L
wd
fesod,
So)
a
H- HELP
Form: H
Explanation:
Onceyou havethe information you need, you may press any key to
return to the editor.
MOS-DLOl
ag
fort
oid
&
MOS Editor - E
I- INSERT
The I commandlets you insert oneline at a time between any two ex-
isting lines in the file. You may use the I commandto insert a blank
line or a line of text.
Form: {nj i
Operand:
Explanation:
You may use the I commandto adda line of text or a blank line
anywherein file. For example, to insert a line at line 5 you may
enter: |
5 |
When you press ENTER,the control line displays the prompt "Insert
Line:" You may now enter text on the commandline that will appear
for the insertedline. If you want the inserted line to be blank, make
no entry and press ENTER. Rememberthat the inserted line will not
appear on the text screen until you re-displaythefile.
7-12 MOS-DiSt
L- LIST
The L commandlets you display the current text in a file and specify
thefirst line to appear on the text screen. You may use the L com-
mand to movethe text screen display upward or downward from any
pointin thefile.
Form: {np
Operand:
n enter the numberof the line where you want the display
to begin. You may omit the line numberto begin the dis-
play with the currentline.
Explanation:
The L commandlets you display the file on the text screen in 22-line
increments. The display will include any changes you've madeto the
file. You may enterthefirst line to display. For example:
164
MOS-DI81 7-13
MOS Editor - ED
M- MOVE
Form: fbadM
Operands:
Explanation:
If you want to move only one line, you must enter that line number as
both the beginning and ending lines to be moved. If you donot, the
move will not occur. For example:
18 182M
se
If you want to move only the current line, you can omit the beginning
and ending line numbers. In the previous example,if line 18 were the
current line, you could enter:
a
Form: iff () P
Operands:
Explanation:
SET LSTDEV=prniile.edt
Any text you print will be output to the file named prnfile.edt.
ee
MOS-DLOL
“=
MOSEditor - ED
@ ~- QUIT
Form: Q
Explanation:
7-16 MOS-DI9I
R.- REPLACE
en,
Form: {{ fp i} Pp &
Operands:
Explanation:
10 35 R
S - SEARCH
Operands:
F enter the numberof the line where you want the search
to begin.
Explanation:
Unless you include the ? operand, the search ends with thefirst
match found. When the ? is included, a "Found: Continue Y/N"
prompt appearsin the control line with each match. Any entry other
than Y ends the search. To search only a specific range of lines, enter
the first and last numberofthe lines to include. For example:
S89? FR
Note that if you enter "here" as the search string, a match is found om
with "where". You may want to enter spaces in the string, such as "
here ".
-18 MOS-D181
wl
V- VISUAL MODE
aon,
Form: Vv
Explanation:
ee
MOS-DL9E Tol
MOS Editor - ED
W - WRITE
The W commandwrites the current text to a file, and leaves the file
open so you can continue editing.
Form: W
Explanation:
You may issue a W commandat any time during your editing session.
The output. is permanently written to the designatedfile. If you end
the editing session with the Q commandandselect not to save chan-
ges, the output file contains the text last written with the W com-
mand.
7-20 MOS-DL9L
X- EXECOTE MACRO
Form: x
Explanation:
After macro execution the cursor will be positioned at the right end of
the control line. Use the cursor keys to position the cursor at the
desired location in your file to continue editing.
MOS-DLOI 7-2
MOS Editor - ED
When you switch to the Visual mode,the current file displays on the
text screen without line numbers, and the cursoris positioned at the
beginningofthefirst line of the text screen display. For example:
The control line now displays the row and column numbersof the cur-
sor position. If you are creating a new file, the cursor is positioned at
row one and column one and the screen will be blank. You are ready
to begin entering text in thefile.
If the file exists, you may use the Visual mode editing keys to move
the cursor to any position within the file. The ESC key switches con-
trol back to the Command mode. You mustbe in the Command mode
to exit thefile.
Manyediting keys are available in the Visual mode, and are ex-
plained following these special notes about using the Visual mode:
* You may press ENTERto endthe current line and moveto the
next line.
J 22 MOS-DLSL
° While in Visual mode, you may press CTRL and Q to display a
help screen of the available Visual mode editing keys.
* You maypress the INS keyto toggle the insert mode on andoff.
Whenthe insert mode is on, the word "INSERT"displays in the
control line.
MOS-DiL91 7-23
MOS Editor - ED
MOS-DL91
PgUp Scrolls the display towards the beginningof thefile in
22 line increments.
MOS-DIOL GF» 25
Using Macros
7 = 26 MOS-DI91
Chapter 8:
DEBUG
DEBUGCommands... ec ee ee te 8-6
MOS-D191 8-1
DEBUG
82 MOS-DLOL
Introduction
MOS-D1L91 8-3
DEBUG
The locations where you may halt processing are called "break
points". These are instruction locations in the program. .DEBUGlets
you set both hard and soft break points. Hard break points are
retained in memory for the length of the .DEBUGsession or until
they are specifically cleared. Soft break points are executed only one
time during a specified command. You may set a maximum of 10
hard break points and 10 soft break points at any given time in a
.DEBUGsession.
If you have the multi-user versions of MOS, you may invoke .DEBUG
at the main console to view the output of the program you are execut-
ing. At the same time, you may send the output of the program you
are debugging to a workstation’s terminal. See the CO commandin
.DEBUGfor information on how to set this up.
8-4 MOS-D19I
All commandsthat use addr as an operandwill default to
the segment previously specified in the last .DEBUG com-
mand statement, if the segmentis not included as part of
the address.
MOS-DL9T 8-5
DEBUG
DEBUG
Type: Extrinsic.
Operands:
Explanation:
DEBUG tesi.com
You may load a program at.a specific address if you enter .DEBUG
without a file name, use the name command(N) to namethe input
file, and then use the load command(L) with a specific address at
which to load the named inputfile. If you do not specify an address
with the L command, .DEBUGloadsthe program at the default ad-
dress of CS:100. Files with an .EXE extension do not load at address
CS:100; they are loaded as specified in the headerofthefile.
Form: A fader}
Operand:
Explanation:
MOS-D191 8-7
DEBUG
EF05 is the value of the CS register. CS may vary from session to ses-
sion, You may then enter the instruction:
Press ENTER again and MOSdisplays the address for the next in-
struction in the program.
8-8 MOS-DL9L
2
AU - ASSEMBLE - UNASSEMBLE
Form: AU faddr}
Operand:
addr enter the address at. which you want to add and assemble
the instruction.
Explanation:
au 123
MOS-D191 8-
DEBUG
BC - CLEAR BREAKPOINT
The BC commandlets you clear hard break points that have been set oo
previously with the breakpoint set (BS) command.
Form: BC n
Operand:
Explanation:
BCis used to clear only one break point at a time. You may only clear
the break point by its number, for example:
BC 1
DEBUGwill respond:
8-10 MOS-D19l
BD- BREAKPOINTDISABLE
—
The BD commandlets you disable hard break points that were pre-
viously set during the current .DEBUG session. Use BD for continued
processing without hard break point interruptions.
Form: BD
Explanation:
MOS-D1L9L 8-11
DEBUG
BE - BREAKPOINT ENABLE
Form: BE
Explanation:
8-12 MOS-D19l
BL - BREAKPOINT LIST
The BL commandis used to list hard break points. Hard break points
are retained in memory for the length of the DEBUGsession.
Form: BL
Explanation:
Whenhard break points are created, they are assigned the next free
sequential number. You may have up to 10 hard break points, num-
bered 0 - 9, in one program. Use the BL commandto list the break
points that have been set. For example:
BL
If hard break points have been set, a display similar to the following
appears.
DEBUG
BS - BREAKPOINT SET
Form: BS faddr}
Operand:
Explanation:
BS 123:0191
BS CS:125
BS DS:DxX
Operands:
Explanation:
DEBUGresponds with:
The hexadecimal value of the bytes is displayed after the first ad-
dress.
MOs-DI91 8-15
DEBUG
C? « DEBDG CONFIGURATION
Form: CG?
Explanation:
8-16 MOS-D191
CO - CHANGE CONSOLE
Form: CO port
Operand:
Explanation:
You may find CO more useful than the swap command(\) because
you can actually debug the program and simultaneouslysee its out-
put.
MOS-DI91 8-17
DEBUG
D- DUMP
D begin L length
Operand:
Explanation:
The first positions contain the address. The positions that follow con-
tain the offset. Note the column to the right. It contains the ASCII
characters for the hexadecimal codes that are displayed. Non-ASCII
characters are displayed as periods.
8-18 MOS-DiO1
ENTER
The E commandhas twoformsthat let you changethe contents of
memory. One form will let you enter information directly into
memory. The other form displays what is already in memory so you
can choose whetheror not to changeit.
Form: E faddr}
E {addr} {list}
Operands:
Explanation: |
Press ENTER and .DEBUGwill display the first byte found at that ad-
dress.
If you press the space bar, .DEBUGwill display the next byte posi-
tion. If you enter a new value, .DEBUGwill replace the existing
i value. Whenan eight-byte boundary is reached, a newlinewill begin.
You may press ENTER to end E at anytime. For example, if you
entered:
Nad bes
8-19
DEBUG
.DEBUGwould display:
8 « 20 MOS-DILOL
P- FOLL
oo,
The F commandautomatically fills a range of memory with bytes of
data.
Operands:
begin enter the beginning addressof the range you wantto fill
with data.
data enter the data with which you wantto fill the range. Data
maybe a text string or a byte list.
Explanation:
Press ENTER. When the .DEBUG prompt returns, the range has
beenfilled with data. You may view thisfill with the dump command
(D) by entering:
D 400 4380
MOS-DIS1 8-21
DEBUG
.DEBUGdisplays:
Had you wanted to enter the range with a byte string, you could have
typed:
F 400 430 G0 02 07
G-GO
Operand:
Explanation:
G=123 126
MOSs-D191 8-23
DEBUG
H-HEX
Operands:
Explanation:
H 29CE 300
MOSwoulddisplay:
The first value is the result of adding the length of the table to the
beginning address. The second valueis the result of subtracting the
length of the table from the beginning address.
8-24 MOS-DLOL
1-INPOT
Form: | addr
Operand:
Explanation:
You may find the I commandusefulin testing input from ports. For
example, if you wantedto read the value in COM1,you could enter:
| O3F8
MOS-DLSL 8- 25
DEBUG
L- LOAD
Operands:
addr enter the address at which you want to load the program
or record.
sector enter the starting logical disk sector number. The number
may range from 0 to FFFFFF.If the numberis larger
than FFFF,it must be entered as a double word quantity
with a colon separating the high and low words.
Explanation:
You may use L to load a program into .DEBUG after naming the
inputfile with the name (N) command. You mayalso reload a pro-
gram that has completed execution and was previously loaded for a
-DEBUGsession.
You may also use L to load a logical disk sector, such as the boot sec-
tor on a disk. For example:
L100 00 1
This commandentry loads the boot sector from the disk in drive A.If
you don’t specify a segment address, .DEBUG defaults to CS:100. You
may display this sector with the dump (D) command.
L100 2 12:3456 4
8-26 MOS-DL8l
ao
The M command movesa string of bytes in memory.
Operands:
Explanation:
You may move values from a specific range of memory into a new
range of memory. For example:
In this example, the contents of the range from 100 to 200 are moved
to the 400 address. You could then use the dump (D) commandto dis-
play the contents of the new address.
DEBUG
N+ NAME
Operands:
Explanation:
N TEST.COM DATATEST.DAT
Although you may use N to name an output program file, nothing will
be written to it unless you use the write command(W).
8-28 MOS-DU91
O- Eu
oo
The O commandis used to send a value to an I/O port.
Form: ©
Operand:
addr enter the address of the port to which you want to send a
value.
Explanation:
The O command will send specified data to a port. For example, you
maytype:
P-PROCEED
Operands:
sador enter the first address at which you want to start execut-
ing the program. The program will execute the instruc-
tion found at that address and then stop.
Explanation:
P 128
8-30 MOS8-DL91
@- QUIT
a, The Q command maybe invokedat any point to exit the .DEBUG ses-
sion. Changes madeto the program being debugged will NOT be
saved to disk unless they are written back to the inputfile with the
write command (W).
Form: Q
Explanation:
a,
MOS-D191 8-31
DEBUG
R- REGISTER
Form: F fregister}
RF
Operands:
fregister} enter the nameof the register whose contents you want to
display.
O - overflow
D - direction flag
I - interrupt enabled
S - sign
Z - zero
A - auxiliary carry
P - parity
C - carry
Explanation:
8-32 MOS-DILO1
S - SEARCH
The S commandlets you search a range of memory for specific bytes
of data or a specific string of text.
S addr 1 length
Operands:
‘data’ enter the data or text string for which you want to search.
Text strings should be enclosed in single quotes.
Explanation:
pam,
MOS-DLOL 8-
oe
oe
DEBUG
.DEBUGwoulddisplay:
These are the two positions that are occupied by the string, ’COM’.
Had you wanted to search for a non-text string, such as a byte list,
you could have entered:
S300 500 64 TE 92
&- 34 MOS-DLOL
T ~ TRACE
Operands:
=addr enter the starting address at which you want the program
to execute.
Explanation:
T 102
MOSs-D191 8-35
U- UNASSEMBLE
Operand:
Explanation:
Form: Va
Operands:
Explanation:
8- OF
DEBUG
W- WRITE
The W command maybe invoked at any point during the .DEBUG oom,
session. It is used to write any changes you’ve made backto the input
file. You may also use W to changethe contents of a disk sector or
specific record in file.
Operands:
arive used in loading logical disk sectors. Enter the value for
the drive; 0 for A:, 1 for B:, ete.
sector enter the starting logical disk sector number. The number
may rangefrom 0 to FFFFFF.If the numberis larger
than FFFF,enter it as a double word quantity with a
colon separating the high and low words.
Explanation:
8-38 MOS-DIS1
Whena file has completed execution, DEBUG assumes the outputfile
is the original inputfile. Unless its name has been changed, or a new
file specified with the name (N) command, .DEBUGwill overwrite its
contents with the W command. When W is invoked, .DEBUGreads
the CX register for the length of the file and uses that value to write
thefile to disk.
w ico 001
W 100 2 12:3456 4
MOS-D191 8-39
DEBUG
7 - COPROCESSOR
Form: ?
Explanation:
8-40
You may use the \ commandto switch to the screen output of a pro-
gram as it executes under .DEBUG.The \ commandis only recog-
nized whenissued from the .DEBUGconsole,it is not valid when
invokedat a workstation.
Form: \
Explanation:
Whena program writes output to the screen, you may use the \ com-
mand to view that output from within .DEBUG. Pressing ENTER
from the screen containing the output returns you to .DEBUG.For ex-
ample, if your program wrote output to the screen you could enter:
5
4
5
The screen output will appear just as it does during a normal execu-
tion of the program. Pressing ENTER will then return you to .DEBUG.
oom
DEBUG
!- SHELL
Form: |
Explanation:
8-42 MOS-DL9SL
". PAUSE FOR A KEY
Operand:
Explanation:
You may use the " commandto create a pause in the processing of a
patch file and display a message.
MOS-DLOL 8-43
DEBUG
3+ DELAY
Form:
Explanation:
The : commandwill halt processing for half a second. You may want
to use it-to let the user of a patch file view any output from process-
ing.
; *» REMARK
oe
Either an * or ; may be used to indicate remarksin patchfiles.
Form: ; ftexé)
* {text}
Operand:
Explanation:
MOS-DI91 B45
DEBUG
? BOELP
Form: ?
Explanation:
8-46 MOS-DI191
Using the .DEBOGcommands
You mayfind that one of the most common uses you'll have for
.DEBUGis to make modifications to existing programs. Review the
sample session that follows. It creates a small program that will
write characters to the screen using BIOS interrupt 10h. For more in-
formation about the interrupts on your computer,refer to its techni-
cal documentation.
Invoke .DEBUGbytyping:
.DEBUG
MOS-D191 83-47
DEBUG
Type the following instructions. If you choose, you may include the
comments.
iA 100
2183:0100 MOV AH,OE ;Use Function OE
2183:0102 MOV AL,4D ;Write Character 4DH ’M’
2783:0104 MOV BH,O ;Set Screen Page to 0
2183:0106 INT 10 ‘issue BIOS interrupt 10
2183:0108 MOV AH,GE
Z21iB3:010A MOV AL,4r ‘Write Character 4FH O°
2183:010C MOV BH,O
2183:010E INT 10
2183:0110 MOV AH,OE
2183:0112 MOV AL4E )Write. Character 4EH ’N’
2183:0114 MOV BH,0
21830116 INT 10
2183:0118 INT 20 ‘Terminate program
2183:071A ;Press return to stop assembling
8-48 MOS-D191
Look at the ending address of the program you've written --
2183:011A. You must nowset the size of the program in the CX
register. This tells .DEBUGhow big thefile is and where it ends. Set
the size to 1A bytes, which is the difference between the beginningad-
dress and the ending address, by typing the following:
{ROX
Cx 0000
A
You must now assign a nameto the program with the name (N) com-
mand,if you want to saveit.
IN TEST.COM
You may nowwrite the program to disk with the write (W) command.
This stores the program for future use.
]W
WAS
lg
Program Completed Execution
To see the output of the program, type the swap (\) command.
MOS-DI91 8-49
DEBUG
The screen should now show the output that the program writes to
the video display screen.
Now, set hard break points to examine how the program executes.
]BS. CS:0108
Breakpoint 0 set to 2183:0106
1BS CS:0110
Breakpoint 1 set to 2183:0110
IBS CS:0118
Breakpoint 2 set to 2183:0118
Ig=100
As the program reaches each breakpoint, processing will stop and
.DEBUGwill display the registers.
8-50 MOS-D191
Now enter a swap (\) commandto view the results, swapping the
screen to see the output being written to the video display screen.
h
The screen should display the following:
Ig
This process will be repeated at each break point.
lq
To see the results of your .DEBUGsession, type TEST at the MOS
prompt.
[C\ITEST
MON
ICy
To change the message printed by TEST.COM,restart .DEBUG.
[C:\|.DEBUG TEST.COM
MOS-DL81 &« 51
DEBUG
ju 100 178
2183:0100 B40E MOV AH,OE
2183:0102 BO4D MOV AL4D
2183:0104 B700 MOV BH,00
2183:0106 CD10 INT 10
2183:0108 B40E MOV AH,OE
2183:010A BO4F MOV AL4F
2183:010C B700 MOV BH,OD
2183:010E CD10 INT 10
2183:0110 B40E MOV AH,OE
2183:0112 BO4E MOV AL,4E
2183:0114 B700 MOV BH,00
2183:0116 CD10 INT 10
2183:0118 CD20 INT 20
At the .DEBUG prompttypein the following:
je 113
je 113
218A:0113 4E.53
Now save the modified program. Note that the program does not need
to be named,since it was loaded into memory when .DEBUG was
started.
iw
Writing 0000007 AH bytes of program TEST.COM
Now runthe program to see the results of the modification.
Ig
Program Completed Execution
h
MOS
Iq
Sometimes patches or modifications for programs are presented as
text files, often with the extension .PAT. In order to demonstrate this,
a patch file for TEST.COM will be created. It contains the keystrokes
to invoke the .DEBUG commands to makethe changesto thefile.
IC\IDEBUG TEST.COM<TEST.PAT
The program will run automatically, taking its input from the
TEST.PATfile. It will pause and wait for a key stroke when the " com-
mand is encountered. Now run TEST.COM.
(OVTEST
VION
MOS-DI9L SB» Ba
Your display should be similar to the following:
eo
MOS-Di 91
Introduction . 0... ee ee ee es 9-2
CLASS 2. ee es 9-7
SIGNOFF . 0. ee ee 9-9
SSIGNON 2... ee ee 9-10
MOSs-D191 9-1
Security
Introduction
It’s a good idea to read through this entire chapter before you begin
setting up security. Security can be set up or changedat anytime.If
you don’t think you will need security, then don’t set it up on your
computer.
HowSecurity Works
You can implement security for all items on your computer, and for
all users. If there are only a few directories or files that need to be
secured, you can implement security for only those items. You may
also implement security only for a few users who need access to the
secured items.
You mustfirst define how many classes you want to use, and what
each class will represent. One class may then be assigned to eachfile,
directory and partition you create. You must assign a blank or space
class to any items you do not want to secure.
9.8 MOS-DIS1
A user security file $$USER.SYSis set up to control who can access
secured items, and the level of access each user has to each class.
oo
This file contains a unique record for every user, or only for the users
who need access to secured items. In each user record, you may as-
sign oneof four levels of access to each class; no access (0), execute
only (1), read and execute only (2), or unrestricted access (8).
In order for a user to access a secured item, the user must invoke a
.<SIGNON command,and enter a valid user ID and password that ex-
ists in the user security file. After signing on, the useris further
restricted from accessingfiles, directories and partitions based on the
access level the user hasto the class assigned to the secured items.
Theaccess levels for secured items are handled differently at the par-
tition, directory andfile level. These differences are explainedlater in
this chapter. First you need to understand how the user security file
is set up, and how the MOSsecurity commandsare used.
MOS-DLOL ed
Security
You may also wantto reserve one security class exclusively for the
system administrator. Assign all other users the "no access" level to
that class. When the $$USER.SYSfile is complete, assign it a oo
reserved class with the .COPY command. The .COPY commandis ex-
plained in the General Commandschapterof this manual. This will
restrict any other users from being able to read or changethe infor-
mation in the $$USER.SYSfile.
You may use the MOS Editorto create the $$USER.SYSfile and
enter the user records. The Editor is explained in a separate chapter
of this manual.
on,
9-4 MOS-D191
If the user ID is less than four characters, you may enter
spaces. MOSwill ignore spaces entered at the beginning
ooo
or end of the user ID. The commadelimiter may be placed
immediately following the user ID, or maybe aligned
with the commain the formatline. For example:
* ID,
DAVE,
BOB ,
* ID,PASSWD,
DAVE, SYSADM,
* ID, PASSWD,
DAVE, SYSADM,
BOB ,ADM,
ABCDEFPGHTURLMNOPORSTUVWAYZ
MOS-DI191 9-
ot
0 No access
1 Execute only
2 Read and execute only
3 Unrestricted access
For example:
If the default class is left blank, any files or directories the user
creates will have a blank or space class. A space class designates no
security and the item can subsequently be accessed by anyone. Con-
tinue adding user records until the user security file is complete.
Rememberto assign a security class to this file to keep other users
from reading or changing any information in thefile.
9-6 MOS-DI91
.CLASS lets you assign or changethe security class of a directory.
You may also use .CLASSto display the current partition class and
user default output class. You may only changethepartition class
and user default output class of the partition you are currently access-
ing. You must use the .COPY commandto assign or change the
security classofa file.
Type: Extrinsic.
CLASS pd
Operands:
Explanation:
MOS-DLSE 9-7
Security
CLASS MYDIR B
You may only changetheclassof the partition you are currently ac-
cessing. You may also changethe default output class for the current
user whosigned onin the partition you are accessing. To display the
current class assignments, you may enter asterisks for these two
operands in the CLASS command.For example:
CLASS **
CLASS *z
You may change only the partition class, or you may changebothclas-
ses at the same time. Simply enter .CLASSfollowed by the new clas-
ses you wantto assign as the partition class and the user default
output class. For example:
CLASS ab
You may delete one or both security classes by entering the underline
character (_) in place of the correspondingasterisk for that operand.
For example the following commanddeletes both the partition
security class and the user default output class:
GLASS _
9-8 MOS-D19L
SIGNOFF
a
SIGNOFFlets you exit from the secured mode andreturn to the sys-
tem prompt. If you are sharing a workstation with other users, you
should always sign off before allowing anyone to use the workstation.
If you don’t, the new userwill be able to accessall of your secured
files, directories and partitions.
Type: Intrinsic.
Form: SIGNOFF
Explanation:
Once you havesigned off, you maystill use MOS, but you may only
accessa file, directory or partition that has a blank class.
Because the keyboard buffer retains key strokes, MOS will clear the
buffer when you invoke the SIGNOFF command.This will prevent
any other users from recalling your key strokes and viewing them on
the screen.
on
MOS-DLOL 9-9
Security
SIGNON
Before you can access any secured items, you must enter the
-SIGNON commandat the system promptto activate security for
your partition. This will display the MOSsign on screen where you
may enter your user ID and password.
Type: Intrinsic.
Operands:
Explanation:
You will only have to enter your password to complete the sign on. To
keep your password confidential, it will not appear on the screen as
you enter it on the keyboard. MOSchecks the $$USER.SYSfile to be
sure that the user ID and passwordare correct.
9-10 MOS-D191
If the sign on is not successful, MOS will prompt "Try again." This
will appear if either the user ID or password isincorrect.If the sign
on has not been successful after a random numberof attempts (be-
tween three and seven), MOSwill "lock" the workstation and display
the following message:
There are several ways that you may assign security to a partition,
directory or file. A security class may be assigned to a partition as
part of the .ADDTASK command.Files and directories may be as-
signed a user’s default class at the time a user creates them.If
security is active when a .DISKID commandis invoked, the nameas-
signedto the disk is also assigned a security class.
MOS-D191 9-11
Security
If your system does not have security, any user may access anyparti- oo,
The user may stay in the partition, but cannot read or write
information. The only thing the user can do is use theparti-
tion access keys to move outof the partition. Once out of the
partition, the user will not be able to access the partition
again.
1- execute only. The user can access the partition, but cannot
type information. The user may changethe class from within
a partition to a class set up for the user with an access level of
1. The user may then only usethe partition access keys to
movein and out of that partition.
O- 12 MOS-DIOL
If a user is working in a secured partition that has a class other users
can access, another user may moveinto the partition. Both users are
sharing the resources. The user who movedinto the partition can
nowaccessall the files and directories that are accessible to the user
whosigned on in the partition. The second user’s original sign on is
not effective while he is in this new partition.
You may want to keep users from accessing other users’ partitions.
You could set up all partitions with a blank class. Each time you boot
MOS,all partitions are available to all users. Each user may access a
partition in which they will be working. Once in the partition, a user
may use the .CLASS commandand changetheclassof the partition
to a class that only that user may access. That user may accessor cre-
ate additional partitions if multi-tasking capability is necessary.
Then define a partition for each secured user with the .ADDTASK
command in the AUTOEXEC.BATfile. In this example, the user,
Sara, has a security record that defines unrestricted access to class A.
All other users are assigned noaccessto class A, or are not set up to
run in the secured mode. The .ADDTASK commandthatcreates the
partition to run at Sara’s workstation is set up in the
AUTOEXEC.BATfile as follows:
ADDTASK 7128,2,A,SARA,PCTERM,1,19200
MOS-D19L 9-13
Security
SIGNON SARA
This will invoke the SSIGNON command and enter SARA for the user
ID. SARA will need to enter the password to sign on to the partition
at the workstation. Once signed on, no other users will be able to ac-
cess Sara’s partition.
@-14 MOS-DLOL
Directory Level Security
If your system does not have security, any user may access any direc-
tory on your computer. You may wantto secureall directories or only
a few directories that contain confidential information.
1- execute only. The user can see directories that are assigned a
class to which the user has level 1 access. The user can ex-
ecute anyfiles in this directory, but cannot read or change the
content of anyfiles.
2- read and execute only. The user can access the directory and
can read, load and execute files to which the user has access.
The user cannot create newfiles, or execute programs that
create newfiles.
MOS-D191 9-15
Security
If a directory has a class that is restricted from a user, the user can-
not access anyfiles in that directory, even if the files have a class
that the user can access. In the same way, a user mustbe able to ac-
cess all levels of directories from the root that precede the directory to
be accessed. For example:
Security Class: A B C D
User’s Level: 3 2 3 3
-i6 MOS-DI91
©
File Level Security
If your system does not have security, any user may access anyfile on
your computer. You may wantto secureallfiles or only a few files
that contain confidential information.
1- execute only. All files with a class to which the user has an ac-
cess level of 1 will appear on a directory listing, and can be
run if they are executable programs. However, the user can-
not type or load the file with another program.
2- read and execute only. The user can read or execute thefile.
A user must have an access level of 2 or 3 to a class assigned
to a batchfile in order to execute the batchfile. A user may
display the contentof a file with the .TYPE command, but
cannot edit thefile.
If you have users who share the samedirectory, you may want to set
security only at thefile level. For example, a directory may have a
class of A, but the files in the directory have classes of B and C. One
user may be set up with unrestricted access to classes A and B, but
may have noaccess to class C. Another user may have unrestricted
access to classes A and C, but may have noaccessto class B.
atti.
MOs-DI91 9-17
Security
NOTE:If you are signed on to security and create a file, thefile is as-
signed your user default output class. The file appears in the direc-
tory with your user ID, default class, and the time and date of
creation and last update.
If you create a file that replaces an existingfile, the user ID, creation
date and time, and class remain the same.The last update time and
date will contain the time and date of the replacement.
When using MOS SECURITY forfile level security, care must be ex-
ercised when using the VERIFY commandto checka diskforfile al-
location errors! ONLY users with "level 3 - unrestricted access" ~~
assigned for ALL file classes should be allowed to run VERIFY! (This
level of access is usually reserved for someone at the system ad-
ministratorlevel.)
CAUTION? If the user running VERIFY does not have level 3 access
for all file classes, VERIFY will not be able to properly read the disk.
9-18 MOs-D1L91
Precautions for Security Users
Advanced Security
The master password is not to be taken lightly. You may initiate user
security without a master password. If you initiate the master
password, it is NOT SAVED IN ANY FILES WHERE IT CAN BE LO-
CATED OR. SEEN.The master password becomespart of the encryp-
tion key for all secured files created on your computer.
If you forget the master password,it’s like crashing your entire com-
puter. You can do nothing, possibly not even boot MOS. And because
the master password key is not saved in any files and cannot be un-
encrypted, WE CAN DO NOTHING TO HELP YOU.Therefore, con-
sider it carefully before choosingto useit.
MOS-D191 9-19
Security
Initiating the master password causes MOSto prompt you for the
master password encryption key each time you boot MOS. Whatever
you enter becomesthe encryption key while the computeris active.
Because the master passwordis not saved in anyfiles or anywhereit
can be seen, MOScannottell if the master password you enteris cor-
rect or not.
Wesuggest that you set up a test file with a non-blank security class
and use it only for checking the master password when booting MOS.
If the test file appears to be encrypted and displays garbage, the
master password was incorrectly entered. You should reboot MOS
and enter the master password again.
9-26 MOS-D191
You may create the $$MASTER.SYSfile with the MOS Editor. You
may leave thefile blank, or enter anythingin thefile you like. MOS
checks only for the existence of a $$MASTER.SYSfile, and any
entries in the file are ignored by MOS.
If you make a mistake while entering your master password, you may
backspace over it and re-enterit, or press ESC to completely remove
it and then re-enterit.
MOS-D191 9-21
Changing the Master Password
You can use the .COPY commandwith the /c operand to change the
security class assigned to a file. When you assign the new copyof the
file a blank security class, it is saved in an unencrypted state. When
you are sure all files have a blank security class, reboot your com-
puter.
When you reboot your computer, enter the new master password to
use as a part of the encryption key. Then use the .COPY command
with the /c operand to assign security classes to files. When you as-
sign the new copyof thefile a security class, it is saved in an
encrypted state with the new master password as part of the encryp-
tion key.
9-22 MOS-DI9L
_-HAPTER 10:
PRINT SPOOLE!
SPRINT. 0. 0 ee es 10-8
SPOOL 2... ee ee ee 10-11
MOS-DL9L 10-1
Print Spooler
Introduction
There are two programs used in the spooling operation; a spooler and
a print processor. The spooler is invoked in all partitions where
spooled output is desired. The print processor is invoked in a parti-
tion dedicated to the spooling operation, and controls printing of the
spooledfiles.
The Print Spooler also gives you more control of the reportsorfiles
you need to print. You mayprioritize or classify reports depending on
your printing requirements. You may rename, delete and save
reports. A report may be flushed from the spooler, or may be restart-
ed at a specific page number. Letterhead and other noncontinuous
formscan easily be handled.
SPlannn.dpe
10-2 MOS-D191
Where:
SP - designates a spooledprintfile.
|. -is the system name (0-9 or A-Z) of the computer that
originated thefile. Defaults to L if not specified with the
SPOOL command.
xx - is the task ID of the partition where thefile originated
nrin- is a sequential numberthe spooler assigns to eachfile
€ - is the disposition of the file to be printed
p -is the priority assignedto thefile
¢ -is the printclassofthefile
All print file names begin with SP to designate that they are spooled
print files. The next position is a number(0 to 9) or a letter (A-Z)
designating the computerthat originated thefile. For multiuser sys-
tems spooling to a server each computer must havedifferent spoolfile
names. These system namesare assigned with the SPOOL command.
(Defaults to "L".) The task ID of the partition where the printer out-
put originated appearsin the next twoposition of the print file name.
For example, 00 appears for partition 0, 01 appearsfor partition 1, 12
appears for partition 12, etc.
SPLO1001.dpe
SPLO1002.dpc
SPLO2001 doc
SPLO1003.dpe
MOS-Di91 10-3
Print Spooler
You may change these default values with the .SPOOL command,or
with an option from the spooler menu that is available in each parti-
tion where the spooler is active. You may change these values after a
spoolfile has been created with an option from the print processor
menu. These three features are explained later in this chapter. The
values you mayenter for these three operandsare:
Disposition _
{)- Print the file and then delete it. (The default).
oo
10-4 MOS-D191
Priority
Print Class
Theprint processor will print only thefiles that are assigned the
class that is currently the active class. If you include the /P=*
operand with the .PRINT command,all classes maybe active at the
sametime.
You. may use the class for any special printing requirements. For ex-
ample, you may groupreports that require special forms into a
separate class. Then place the special formsfor that class in the
printer and makethatclass the active class. Only the reports that re-
quire the special formswill print. When they are complete, remove
the special forms from the printer and changetheactive class to
anotherclass.
MOS-DL91 10-5
Print Spooler
The "MOSADM HOLD task LPTx nnnn" commandfor the system ad-
ministrator is similar in function except it can set the reservation
timeor release a printer for another task.
PRINT.CTL File
The initialization strings are used to set up printer fonts or forms con-
trol. The termination messages usually contains a formfeed to
separate printfiles and other characters to reset the printer.
10-6 MOS-DL9l
The PRINT.CTL file has the following format:
“D @iont{COURt12)°M
“L
“L
MOS-D191 10-7
Print Spooler
The .PRINT commandlets you invoke the print processor and specify
the drive and path of the directory to checkfor printfiles.
Type: Extrinsic.
path defines the drive and directory to search for spool files
and the printer control file PRINT.CTL. Defaults to
C:\SPOOL.
10-8 MOS-DLOL
Explanation:
The drive and directory entered for the .PRINT command must be
the sameas the drive and directory entered with the .SPOOL com-
mand. For example:
PRINT GASPOOL(\
If you have two printers, you may create more than onedirectory for
~~ spooling printer output. You must invoke the .PRINT commandin a
dedicated partition for each of these directories. You may then use
the .SPOOL commandanddefinethe directory to which each parti-
tion will send printer output. You mayalso direct output to different
printers from one directory by assigning a different class for each
printer.
PRINT /A
MOS-D191 10-9
Print Spooler
10-10 MOS-D191
SPOOL
The .SPOOL commandlets you specify the drive and directory where
the print files for a partition are to be sent. .SPOOL is also used to
change the default print status and security class that is assigned to
printfiles for that partition.
Type: Extrinsic.
Forms:
SPOOL OFF
Operands:
MOS-D19l 10-11
Print Spooler
Explanation:
To remove the spooler TSR from memory, enter the following com-
mand:
SPOOL. OFF
The spool program is then unloaded and all subsequent print output
from that task is not spooled, but sent directly to the local printer
device. This is not a good idea if other tasks on the system could also
generate print requests.
10-12 MOS-DISI
The following are some examples of SPOOL commands:
SPOOL /NO FASPOOLER D4A /LPT1 D6B /LPT2 D2C /T100 /LPTS
MOS-DL9L 10-1
Print Spooler
SPOOL fh
SPOOL h6b
To changethe disposition and class, but not the priority, use an un-
derscore in the position for the priority. You would enter: om,
SPOOL h_b
You may change how quickly a spoolfile closes when there is no out-
put to the file with the /T operand. The /T operand maybe included
with the commandthat invokes the spooler directory. For example:
Or, you may enter the .SPOOL commandat the system prompt with
only the /T operand. For example:
SPOOL /T10
10-14 MOS-D1O1
You may have programsthat print one line, process information,
print anotherline,etc. If the processing time is longer than the
default of 18 seconds, the spoolfile will automatically close and the
report will not be complete. You may needto increase the time span
in a partition where 18 secondsis not enoughtimefor a report to be
completed.
If you assign a different hot key to bring up the spooler menu in a par-
tition, you may enter the SPOOL commandwithout any operands to
reset the hot key in that partition back to its original value of CTRL
HOME.
MD SPOOLER
Then use an editor to create the file PRINT.CTL, andcopyit into this
directory. See the section on the PRINT.CTL file in this chapter.
AADDTASK 32
MOS-D1S9i 1O-15
Print Spooler
PRINT CAWORDPROC\MEMOS\SPOCLER
The .SPOOL commandis invokedin each partition that you want con-
trolled by the print processor. Enter the .SPOOL commandfollowed
by the same drive and path entered for the .PRINT command.For ex-
ample:
sSPOOL CAWORDPROC\MEMOS\SPOOLER
Spooled outputfiles for the partition are now sent.to the directory
SPOOLER.The print processor checks the SPOOLERdirectory and
prints the files based on their print status.
If you plan to use the Print Spooler, you may want to automate the
-PRINT and .SPOOL commandsby placing them in the appropriate
batchfiles. You may place .ADDTASK commandsin the
AUTOEXEC.BATfile to create user partitions and the dedicated par-
tition for the print processor each time you boot MOS.
The startup batchfile for the print processor partition may include
the .PRINT command to automatically invoke the print processor.
The .SPOOL command maybeplaced in the startup batchfile for
each user partition that is to be controlled by the print processor.
10-16 MOS-DL91
The Print Spooler Menus
There are two menusavailable with the Print Spooler to let you con-
trol the printing operation. When you invoke the .PRINT command,
the print processor menu appearsin the partition where the .PRINT
commandis invoked. This should be a dedicated partition from which
the printing operation is controlled.
The print processor menuis available in the partition where you in-
voke the .PRINT command. You havefull control of the printfiles
that appear on the menu. The menu appearssimilar to the following:
MOS-Di9l 10-17
Print Spooler
Restart with new page nbr - You may stop printing from the
currentfile, and then restart printing beginning with a page
number you assign. This is very helpful if you wantto print
only part of a report, or if a paper jam or printer problem oc-
curs.
Delete file - You may use this option to delete a printfile from
Oo
10-18 MOS-D191
While printer output is being spooled, the print file name appears on
the menuwitha file length of zero. Theprintfile will not be closed by
the spooler until all output is complete. If output is sent by an ap-
plication program, output is complete when the program ends, Or,
you may pop-up a menuin the spooler partition and select the option
to manually close a file. When the printfile is closed, the actual file
length appears on the menu.
The print processor cannot print an openfile; it must wait until the
file is closed. The spooler automatically closes a file if there is a span
of time during which there is no output to the printfile.
For example, if you use the print screen key, a program is not actual-
ly runningthat will terminate the print file. You may terminate the
file manually with an option from the pop-up spooler menuin the
originating partition, or wait for the spooler to close the printfile for
you. The span of timeto close a file defaults to 18 seconds, but can be
changed with the .SPOOL command.
Spooler Menu
You mayuse the spooler hot key to bring up the spooler menu in any
partition where the spooler is active. The hot key is set to CTRL
HOME each time you invoke the .SPOOL command.Press the hot key
and the spooler menu pops-up over any current application. You may
select any option from the menu and then return to your application.
Press the CTRL and HOME keys at the same time andthe spooler
menu appears on your screen similar to the following:
MOS-D1L9. 10-49
Print Spooler
Type the numberof the option you wantto select. The options avail-
able are:
2. Spool File Status. The status of the current file appears for op-
tion 2, either OPEN or CLOSED.If there is nofile open, op-
tion 2 has no function.
10-20 MOS-D19S1
3. Spool File Close Time. This option sets the numberof seconds
that elapse without any outputbefore a printfile is automat-
ically closed and printed. To change, enter a 3 and the mes-
sage "Enter new spooler close time" appears. Then type the
new valueto assign, in seconds, and press ENTER. (Defaults
to 18 seconds, maximum is 3600 seconds - 60 minutes.)
MOS-DLSI LO ~ 20
Print Spooler
The following are examples of how you could set up batchfiles for in-
voking the print spooler. These are only example. Your batchfiles
should include all commands necessary for your particular needs.
This example is for one printer and three users. There are four parti-
tions, one for the print processor, and three for the users. Note that
the STARTUP.BATfile is nested in the AUTOEXEC.BATfile. This
will cause MOSto first invoke the spooler for partition 0, and then
begin executing the .AADDTASK commands.
10-22 MOS-D1LS1
AUTOEXEC.BATFile
.BATECHO OFF
STARTUP
ADDTASK 256,1,,slartup,octerm,7,19200
ADDTASK 256,2,,startup,pcterm,2,19200
ADDTASK 32,3,,printl
GLS
TEXT
-ENDTERT
STARTUP.BATFile
PATH eGCAPCMOS
SPOOL CASPOOL
PRINT1.BATFile
PATH@Gl\CAPCMOS
PRINT GASPOOL
This exampleis for two active printers and four users. Two users
sendall output to a letter quality printer (LPT1), and the other two
users send all output to a dot matrix printer (LPT2). Note that the
SPOOLI.BATfile is nested in the AUTOEXEC.BATfile. This will
cause MOSto first invoke the spooler for partition 0, and then begin
executing the .ADDTASK commands.
MOS-D191 10-238
AUTOEXEC.BATFile
.BATECHO OFF
SPOOLi
ADDTASK 256,1,,spoolt,pcterm,1,19200
ADDTASK 296,2,,spool2,pcterm,2,19200
AADDTASK 296,3,,spool2.pcterm,3, 19200
ADDTASK 32,4, printer
LS
TEXT
-ENDTEXT
SPOOL1.BATFile
.PATH=CA;CAPCMOS
SPOOL G\SPOOL d2q
SPOOL2.BATFile
-PATH=C\;C:\PCMOS
SPOOL CASPOOL d2d
PRINTER.BATFile
-PATH®CA;C:\PCMOS
-PRINT CASPOOL
10-24 MOS-D1L81
APPENDIX A: WARNING AND n
Liu
5)
ERROR MESSAGES eB
S
Introduction «06 6 ec ee ee ee ew ee eee ee et AD
MOS-DI91 A-1
Warning and Error Messages
Introduction
Self-Explanatory Messages
General Errors
A file lock conflict error typically occurs if you use an application that
is not designed for a multi-user environment.
A-2 MOS-DiSL
Record lock conflict
Wrong disk
The wrongdisk error occursif you are writing output to a file on disk
and you changethe disk before the write operation hasfinished.
witical Errors
Critical Errors are comprised of three variables and take the follow-
ing form:
MOS-DI91 A$
Warning and Error Messages
The possibilities for each of the variables that may appear in criti-
cal error are as follows:
Write Protect
Invalid Command
A unit not known error typically occurs if MOSis looking for a device
or drive that is not installed.
Awd MOS-D191
Not Ready
A not ready error mayoccur if you attempt to access a drive and the
drive door is open, or if you attempt to send output to a printer and
the printer is not turned on.
Data
Request Header
Search
Action: Check your disk andtry again. If the search error con-
tinues, the disk is probably damaged beyonduse.
MOS-DLOL Ae
GN
Unknown Disk
Action: Your disk may need formatting before use with MOS.
Action: Check to be sure you havethe correct disk and try again.
If the error continues, the disk is probably damaged
beyond use.
Write
A Write error indicates that your disk may be damaged and MOScan-
not write data to it.
Action: Check to be sure you have the correct disk and try again.
If the error continues, the disk is probably damaged
beyonduse.
Read
A read error indicates that your disk may be damaged or not in a for-
mat that MOScan read.
Action: Check to be sure you havethe correct disk and try again.
General Failure
A-6 MOS-DIOL
APPENDIX B: n
us
NETBIOS EMULATION 2
Q
=
nT
a
ae
<<
Introduction... ee ee ee B-2
MOS-DI191 B-1
NETBIOS Emulation
Introduction
DEVICE=$NETBIOS.SYS tasks=nn
The tasks=nn operand sets the numberof tasks (partitions) that will
emulate the network interface card. This number may range from 2
to 25. Each interface card you define will use approximately 1600
bytes of memory allocated from the System Memory Pool (SMP).
For example,if five workstations and the main console will use the
network application, you need to define six tasks for emulating six in-
terface cards, This will require approximately 9600 bytes of memory
from the SMP. Someapplications require that one task (partition) act
as a disk file server. If that is the case, you need to define one addi-
tional task.
B-2 MOs8-DI91
Be sure you have enough memory reserved with the SMPSIZE= com-
mand statement for the numberof partitions that will use the inter-
face card emulation, and all other device drivers. The SMPSIZE=
command statement is also defined in your CONFIG.SYSfile.
Each user must sign on from within a partition and enter a unique
user nameof up to 15 characters without any spaces. The user name
identifies each task (partition) and allows the networkto control and
track each user’s access to other user’s resources. For example:
NETNAME GARY
Note that only one user can sign on to the network from within a par-
tition, and only the numberof users defined with the $NETBIOS.SYS
device driver can access the network.
There are several messages that may appear when you attempt to
sign on to the network emulation. The following explains why these
messages occur.
MOS-D191 B-3
This message will appear if there is not sufficient memory to run the
.NETNAME command.
The interface card is busy and cannot process the sign on command.
You may want to wait a few seconds andtry again.
B-4 MOS-D191
APPENDIX C: CUSTOMIZING if
THE HELP FACILITY ;
ig
eg
MOS-D191 C-1
Customizing the HELP Facility
Introduction
File Descriptions
HELP.TXT This is the first data file HELP.EXE uses. This data
file is built from the source file HELP.SRC. DO NOT
EDITthis file, or you may find theHELP command
no longer functions properly.
HELP.SRC This file contains the raw text used to build the
HELP.TXT and HELP.NDX datafiles. This is the cur-
rent data used with the .HELP commandthat you
may customize for your own use.
C-2 MOS-Di91
This file does not have to be in the same directory
as the HELP.EXE file. The rules for customizing
this file are given following these file descriptions.
MOS-D191 C-3
The order in which the keywords andtheir associated text blocks are
entered in the HELP.TXTfile determines the order in which the
keywords appear on the menu.If you want to add help text for your os
own group of utility commands, you may preservethe currental-
phabetical order by placing each block in the appropriate position of
the existing HELP.SRCfile. Or, you may wantto place all of your
own entries at the end of the HELP.SRCfile as a group.
* the help text screen displays 18 lines of the text block at a time.
tee
a7
» &
©
a
sLOSSARY
MOS-D191
7:
jest
8
Glossary
Boot Sector - A special disk sector reserved for information the com-
puter needsto load the operating system.
Cluster - The smallest unit of disk space allocatedfor a file. The size
of the cluster is computed when the disk is formatted.
Cemmand Line - The line on which the MOS prompt appears and
where you may enter commands.
Ge MOS-Di91
Data Compression - A means of packing datato lessen the space it
occupies for storage.
ooo,
Default Drive - The present drive on which you are working. If you
make a commandline entry and do not specify otherwise, MOS
defaults to the current drive.
MOS-Di91 G-3
Glossary
Kernel - The core of the operating system that doesall the work. The
MOSkernel is $$MOS.SYS. When a user makes a request of the
operating system through the shell and command processor,it is the
kernel that actually does the work.
Ge 4 MOS-D191
Logical [Disk - A disk device defined in software that exists regard-
less of the numberof physical disks present on the system. For ex-
ample, one physical hard disk may be divided into four logical disks -
C:, D:, E: and F:.
MOs-DL 91 G-5
Random Access Memory - (RAM) Memory reserved for storage and
retrieval of data during processing. The application’s workspace.
Root - The base level of file storage on a disk. The root directory is
the first directory, under which all subsequent directories are made.
Shell - The shell is the interface between the user and the operating
system kernel. The MOSshell is $$SHELL.SYS. The MOS kernelis
$$MOS.SYS.
G-6 MOS-DLOL
$$MASTER.SYS
changing 9-22
initiating 9-20 to 9-21
purpose 1-9, 9-20
precautions for use 9-20, 9-21
$$MOS.SYS
making a diskette bootable 4-56, 4-67
purpose 1-8
$$SHELL.SYS
making a disk bootable 4-56, 4-67
purpose 1-8, 4-5
$$USER.SYS
creating 9-3 to 9-6
initiating 9-3 to 9-6
purpose 1-9, 4-3
securing from users 9-3, 9-6
$COMPATS$
explanation 6-36
purpose 6-36
$EMS.SYS
default value 2-38
emulation of EMS 2-38
explanation 2-38
operands 2-38
purpose 1-8
$MOUSE.SYS
explanation 2-40
purpose 2-40
$NETBIOS.SYS
errors during network sign on B-3 to B-4
explanation B-2 to B-4
operands B-2
purpose 1-8
setting up network emulation B-2 to B-4
signing on to the network B-3
MOS-D181 i-}
Index
$PIPE.SYS
default value 2-42
explanation 2-43
operands. 2-42
purpose 1-8
$RAMDISK.SYS
default value 2-44
explanation 2-45
operands 2-44
purpose 1-9
$SERIAL.SYS
.ADDTASKserial port assignments 5-13
default value 2-46, 2-47
explanation 2-47 to 2-50
initializing a port 5-30
interrupt vectors, reserving 5-23 to 5-27
modem connections 2-49
operands 2-46, 2-47
purpose 1-9
8087 commandstatement
default value 2-4
explanation 2-4
form 2-4
operands 2-4
type 2-4, 4-5
ABORT
command form 6-4
explanation 6-4
nested batch file usage 6-4
type 4-5, 6-4
access keys, partitions 5-19
access levels, security 9-2 to 9-22
directory level access: 9-15, 9-16
file level access 9-17, 9-18
partition level access 9-12 to 9-14
MOS-DiS1
.ADDDEV
explanation 4-11
—— form 4-11
operands 4-11
type 4-4, 4-11
adding tasks 5-11 to 5-17
-ADDTASK
batch file usage 6-31
command form 5-11
explanation 5-14 to 5-17
modem connection at remote location 5-64
operands 5-11 to 5-13
port assignments 5-13, 5-16
security class assignment 5-12, 5-15
startup batch file 5-13, 5-14
security example 9-13
terminal baud rates 5-13
terminal ID 5-12, 5-16
type 4-4, 5-11
ALIAS
explanation 4-13, 4-14
form 4-13
operands 4-13
type 4-4, 4-18
co archive attribute -3-4, 4-53
asterisk
attributes offiles 3-4, 4-53, G-1
wildcard character 3-5, 3-6
-AUTOCD
command form 6-5
explanation 6-5
type 4-5, 6-5
AUTOEXEC.BATfile
explanation 6-3, 6-29
purpose 1-9, 4-3
setting environment 6-29
MOS-DL9l 1-3
Index
backup
-EXPORT command 4-49 to 4-52
bank switching
$EMS.SYS. 2-38
$RAMDISK.SYS 2-44
base memory
definition G-1
multi-tasking 5-4 to 5-7
partition number 5-4, 5-6, 5-11
.BATfile extension 3-3, 4-6, 6-2
batchfile
automated batch files 6-29, G-1
color screen displays 6-25 to 6-28
commands 6-3 to 6-28
compatibility 6-36
creating 6-3
examples 6-29 to 6-35
explanation 6-2, 6-3, G-1
nested 6-2, 6-33
replaceable operands in 6-2, 6-21
startup batchfile for a partition 5-11, 5-15
-BATECHO
command form 6-6
explanation 6-6
type. 4-5, 6-6
baudrate for terminal workstations. 5-13, 5-64
boot sector
copying to a disk 4-55, 4-67
definition G-1
replacing current on a disk 4-67
braces { }
command form.conventions 4-9
.BREAK
explanation 4-16
form 4-16
operands 4-16
type 4-5, 4-16
break points in .DEBUG 8-4
MOS-DI91
oo cable connections
modems. 5-54
workstations 5-53
CACHE commandstatement
default values 2-5, 2-6
explanation 2-6
form 2-5
operands 2-5
turning on and off (.MOSADM CACHE) 5-46
type 2-5, 4-5
cache of memory 2-5, 5-46
.CALL/.RETURN
command form 6-7
explanation 6-7
type 4-5, 6-7
.CD
explanation 4-17
form 4-17
operands 4-17
type 4-5, 4-17
CGAvideo cards supported 1-3
modesettings 5-29
snow-like effect. corrected 2-16
characteristics of files 3-4.to 3-5
.CLASS
explanation. 9-7, 9-8
form 9-7
operands 9-7
type 4-4, 9-7
class
definition 1-10, G-1
displaying security assignments 3-5
print spooler file 10-4 to 10-7, 10-11 to 10-22
security 9-2 to 9-22
.CLS
batch file usage 6-32
explanation 4-19
form 4-19
type 4-5, 4-19
jet.
Index
cluster.
definition. G-2
file allocation check 4-90 to 4-92
color video screen displays in batch files 6-25 to 6-28
.COM file extensions 3-3, 4-6
COMMAND
explanation 4-20 to 4-21
form 4-20
operands 4-20
type 4-5, 4-20
command
batch file commands 6-1 to 6-36
configuration commandstatements 2-2 to 2-36
conventions in this manual 4-7 to 4-9
.DEBUG commands 8-7 to 8-46
definition 1-10, G-2
editor commands 7-6 to 7-21
extrinsic 1-8, 4-3, 4-4
general commands 4-11 to 4-94
intrinsic 1-8, 4-3, 4-5
multi-tasking/multi-user commands 5-11 to 5-18, 5-21 to 5-51
print spooler commands 10-8 to 10-15
security commands 9-7 to 9-11
commandline
definition G-2
MOSediting modes 1-13
MOSediting control keys 1-14 to 1-15
Command modeediting with .ED 7-2 to 7-26
commandprocessor
changing to anew layer 4-20
definition 4-3, G-2
loading 5-4
sharing amongpartitions 5-6
commandrecall buffer 1-13
clearing 1-13, 6-10, 9-9
retrieving lines from 1-13
COMMAND.COM
making a disk bootable 4-55, 4-67
purpose 1-8, 4-3
L-6 MOS-DI91
-COMPFILE
explanation 4-22 to 4-24
form 4-22
operands 4-22
type 4-4, 4-22
computer
cable connections 5-53
definition 1-10
host 5-7
workstations connections 5-7, 5-53
COMSPEC= 4-20. 4-84
COMFIG.SYSfile
command statements 2-2 to 2-36
defining an operating environment 2-2 to 2-36
explanation 2-2, 2-3
purpose 1-9
control keys for editing
at MOS system prompt 1-14, 1-15
in MOS.Editor 7-24, 7-25
conventions
command form 4-7 to 4-9
namingfiles 3-2 to 3-4
-COPY
ASCII andbinary files 4-30
changingfile dates and times 4-29
changing a security class 4-31, 9-3, 9-6
device input/output 4-27
explanation 4-25 to 4-31
file concatenation 4-28
form 4-25
operands 4-25, 4-26
securedfiles 4-31
type 4-5, 4-25
COUNTRYcommandstatement
available codes 2-15
default value 2-15
explanation 2-15
form 2-15
operands 2-15
type 2-15, 4-5
creating files 3-2, 7-2 to 7-4
critical error messages in MOS A-3 to A-6
cursor
insert mode display (block) 1-13
typeover mode display (underscore) 1-13
MOS-DI81 i-@7
D
-DATE —,
batch file usage 6-31
explanation 4-32
form 4-32
operands 4-32
type 4-5, 4-32
.DEBUG
break points 8-3
commands 8-7 to 8-46
explanation 8-3 to 8-5
form 8-6
operands 8-4 to 8-6
sample session 8-47 to 8-54
type 4-5, 8-6
default drive 4-7, 4-8, G-3
delimiter 4-7, G-3
DESNOW commandstatement
default value 2-16
explanation 2-16
form 2-16
operands 2-16
type 2-16, 4-5 _~
DEVICE command statement “
default value 2-17
explanation 2-17
form 2-17
operands 2-17
optional device drivers 2-17, 2-38 to 2-50
standard device drivers 2-17, 2-38
terminal drivers supplied with MOS 5-12, 5-13,:5-55, 5-56
type 2-17, 4-5
device drivers
adding with ADDDEV 4-11
adding with DEVICE= 2-17
optional 2-38 to 2-50
provided with MOS 1-8, 1-9, 2-37 to 2-50
removing with .REMDEV 4-78
SMPSIZErequired for loading 2-29
standard 2-37
terminal driver requirements 5-55, 5-56
terminal drivers supplied with MOS 5-12, 5-18, 5-55, 5-56
device names 2-37 to 2-50
-DIR
_n, explanation 4-34, 4-35.
form 4-33
operands 4-33
type 4-5, 4-33
directory
access levels under security 9-12 to 9-17
backslash usage 3-9 to 3-12
changing (.CD) 4-17
class 9-7
current directory 3-9 to 3-14, 4-17
dedicated for print spooling 10-2
diagram 3-8
displaying 3-13, 4-33 to 4-37
explanation 3-8 to 3-14, G-3
extension 3-10
levels 3-9 to 3-14
making (.MD) 4-61 to 4-62
maintaining 3-11
names 3-10
organizing 3-11
parent 3-9 to 3-12
path 3-8 to 3-10
removing (.RD) 4-76
root 3-8
securing 9-2, 9-3, 9-7, 9-12 to 9-17
signing on to security 9-10
structure 3-8 to 3-14
substituting access with ALIAS 4-13
.-DIRMAP
explanation 4-36
form 4-36
operands 4-36
type 4-4, 4-36
dirname 4-7
ni,
Index
-DISKCOPY
explanation 4-38
form 4-38 Oo
operands 4-38
type 4-4, 4-38
-DISKID
explanation 4-40
form 4-40
operands 4-40
type 4-4, 4-40
displaying files 3-3
disposition of print spoolerfile
default 10-3 to 10-4
changing 10-14, 10-17 to 10-21
-DOT command 4-6
drivers (see device drivers)
.ECHO
command form 6-9
explanation 6-9
type 4-5, 6-9
echoing to the video screen 6-7, 6-9
turn: off modem echoing 5-64
.ED (MOSEditor)
Command mode explanation 7-2 to 7-5
Command mode commands 7-6 to 7-21
editing modes 7-2, 7-3
graphic character assignments 7-2, 7-6
DEFKEYS.EDfile 7-6
type 4-4, 7-2
using macros 7-26
Visual modeediting keys 7-24, 7-25
Visual mode explanation 7-2, 7-19
editing
commandline editing keys 1-14, 1-15
MOSEditor- .ED 7-1 to 7-26
EGAvideo card
conflict with FREEMEM 2-19
supported 1-3
MOS-D19!
=
&
EMS
conflict with FREEMEM 2-20
“aos
emulation 1-8
encryption for security 9-20 to 9-22, G-3
environment
AUTOEXEC.BATfile 6-29
changing
.COMMAND 4-20
-PATH 4-71
SET 4-84, 4-85
definition G-3
reserving size for 4-42, 6-30
-ENVSIZE
batch file usage 6-30
explanation 4-42
form 4-42
operands 4-42
type 4-5, 4-42
-ERASE
explanation 4-43, 4-44
form 4-43
operands 4-43
type 4-5, 4-43
error
errorlevel conditions in batch file 6-15, G-4
messages in MOS A-2 to A-6
escape key sequences 5-58 to 5-61
escape sequence chart 5-61
-EXCEPT
CANCEL. 4-45 to 4-48
DO 4-45 to 4-48
explanation 4-45 to 4-48
MOS-D191
extensions
filenames, in 3-2 to 3-3, 4-3, 4-6
directory names, in 3-10
print spoolerfiles 10-2: to 10-4
special file types 3-3
extrinsic commands 1-8, 4-3, 4-4, G-4
.FILEMODE
explanation 4-53, 4-54
form 4-53
operands 4-53
type 4-4, 4-53
files
accessing in a directory 3-8 to 3-10, 9-17
attributes 3-4 to 3-5
backup (,EXPORT) 4-49 to 4-52
characteristics 3-3 to 3-4
command form conventions 4-7 to 4-9
comparing (.COMPFILE) 4-22 to 4-24
concatenation 4-28,.4-29
copying 4-25 to 4-31
creating 3-2
date and time 3-5
secured 9-17, 9-18
with MOS Editor 7-2 to 7-25
debugging (see .DEBUG)
directory groupings 3-8 to 3-14
displaying 3-3, 4-33 to 4-35, 4-88
disposition in print file names 10-3 to.10-4
changing 10-14, 10-17 to 10-21
erasing 4-43
explanation 3-2 to 3-7
extension
-BAT purpose 6-2, G-4
.COM purpose 1-8, 4-3
.EXE purpose 1-8, 4-3
print spooler assignments 10-2 to 10-5
“SYS purpose 1-8
usage by MOS 3-2, 3-3, 4-3
limiting numberof open 5-40
maintaining 3-7
oo naming conventions 3-2, 3-3
print spooler files 10-2 to 10-5
print spooler files 10-2 to 11-5
provided to customize HELP facility C-2 to C-4
provided with MOS 1-8, 1-9
README file ii
renaming 4-79 to 4-81
restoring (.[MPORT) 4-59, 4-60
securing 9-2, 9-3, 9-11, 9-17, 9-18
security assignment display 3-4
sharing 3-5
signing on to security 9-10
sizes 3-4
special processing, used for 1-9, 3-3
updating 3-4
time and date 3-4
with MOSEditor 7-2 to 7-26
verification 4-90 to 4-94
wildcard characters 3-5
.FLUSH
command form 6-10
explanation 6-10
type 4-5, 6-10
.FOR IN DO
commandform 6-11
explanation 6-11
type 4-5, 6-11
foreign keyboard drivers 5-38, 5-39
-FORMAT
explanation 4-55 to 4-57
form 4-55
operands 4-55
type 4-4, 4-55
FREEMEMcommandstatement
explanation 2-19 to 2-21
form 2-19
operands 2-19
type 2-19, 4-5
T-13
Index
.GOTO
command form 6-13
explanation 6-13
type 4-5, 6-13
graphic character assignments in the Editor 7-6
EH
JF
command form 6-14
explanation 6-14
type 4-5, 6-14
IMPORT
explanation 4-60
form 4-59
operands 4-59
type 4-4, 4-59
input/output redirection 4-9 to 4-10
sorting files 4-64 to 4-66
symbols for 4-9, 4-10
INSERT
command form 6-17
explanation 6-17
set commandline mode 1-13
type 4-5, 6-17
insert mode 1-18, 6-17
1-44. MOS-DIi9T
interrupt vector
displaying reserved vectors 5-27
ao, freeing a reserved vector 5-26
reserving 5-23 to 5-27
task switching method 5-48
intrinsic commands 1-4, 4-3, 4-5, G-4
IRQ (see interrupt vector)
MOS-D191 T-15
Index
main console
definition 1-10, G-5
securing with master password 9-20 to 9-22
master password. 1-9, 9-20 to 9-22
.MD
explanation 4-61 to 4-62
form 4-61
operands 4-61
type 4-5, 4-61
MEMDEVcommandstatement
explanation 2-22 to 2-25
form 2-22
operands 2-22, 2-23
type 2-22, 4-5
memory
addressable 5-4 to 5-6
allocation for partitions 5-5
managed environments 1-4, 2-22 to 2-25
management 1-4,:2-22 to 2-25
managementdrivers 2-24, 2-25
partition (see partition)
memory paging a,
$EMS.SYS 2-38
$RAMDISK.SYS 2-44
mode
changing a workstation video mode 5-29
setting for color monitor 5-29
video modesettings 5-29
modem
baud rate settings 5-64
defining types 5-65
initialization utility 5-64
remote workstation connections 5-64
partition set up 5-7
monochromevideo cards supported 1-3
«MORE
explanation 4-63
form 4-63
type 4-4, 4-63
pent
puced
52
g
.MOS
type 4-4
utility command 5-21
utility functions 5-9, 5-21 to 5-42
utility function display 5-21
-MOS ANSI 5-42
.MOS DIS 5-28
-.MOS DOSVER, 5-42
-.MOS DSPORT 5-35
-MOS FILES 5-40
-MOS FREEIRQ 5-26
-MOS HOLD LPTn 5-40, 5-41, 10-6
-MOS INFO 5-33
-MOS IRQ 5-27
-MOS KEYB 5-38
-MOS MAP 5-22
-MOS MOUSE 2-40, 5-36, 5-37
.MOS NODIS 5-23
-MOS RESIZE 5-32
.MOS ROUTELPTn to COMn 5-31
«MOS ROUTE LPTn to LPTn 5-31
-MOS ROUTE LPTn to NOTERM 5-32
.MOS ROUTE LPTn to TERM 5-82
-MOS.SERINIT 5-30
.MOS TSR 5-41
.MOS USEIRQ 5-23
-MOSutility command 5-21
-.MOS VMODE 5-29
-.MOS WAIT 5-28
-.MOSADM
change system time tick default. 2-27
help display 5-43
type 4-4
utility functions 5-9, 5-48 to 5-51
-MOSADM. CACHE 5-46
-.MOSADM EMSLIMIT5-50, 5-51
-MOSADM HOLD 5-47, 10-6
-MOSADM PRI 5-45
.MOSADM RESET 5-48
-MOSADM SLICE 5-44
-MOSADM SWITCH 5-46
-MOSADM TIME 5-49
-MOSADM TMFACTOR 5-46, 5-47
-MOSADM VIRQ 5-48
ani.
Index
mouse
device driver 2-40
initializing 5-36, 5-37
-MSORT
explanation 4-64 to 4-66
explanation 4-67
form 4-67
making a disk bootable 4-67
operands 4-67
type 4-4, 4-67
multi-tasking
commands 5-10 t0.5-19
commandprocessor, loading 5-4 to.5-7
concepts 5-4 to 5-6
definition 1-10
environment 5-4 to 5-6
memory organization 5-4 to 5-6, 2-22
processing 5-7
multi-user
advantages 5-8
commands 5-10 to 5-19
concepts 5-7, 5-8
definition 1-10
processing 5-8
workstations 5-7, 5-8
1-18 MOS-DLOL
oO
-ONLY
CANCEL 4-68 .to 4-70
DO 4-68 to 4-70
explanation 4-68 to 4-70
form 4-68
operands 4-68
type 4-5, 4-68
operand
definition 1-10, 4-8, G-5
replaceable (in batch files) 6-2, 6-21, 6-34, 6-35
operating system
definition 1-2
output redirection 4-9 to 4-10
MOS-DIS1 T-19
Index
T= 20
-PRINT
explanation 10-8 to 10-10
dedicated directory 10-2, 10-8
form 10-8
operands 10-8
type 4-4, 10-8
print class 10-3 to 10-5
changing 10-14, 10-17, 10-18
default value 10-3 to 10-5
print processor menu 10-17, 10-18
print spooler menu 10-19 to 10-21
ports
address assignments 2-46
-ADDTASKport number assignments 2-49, 5-13
definition G-5
initializing from a workstation 5-30
reserved for modem connections 2-49
$SERIAL.SYSdevice driver 2-46 to 2-50
standard buffered interface 2-46 to 2-50
terminal (workstation) connections 2-46, 5-7, 5-8, 5-13
Print Spooler 1-3, 5-8, 10-1 to 10-24
automating 10-16, 10-23, 10-24
dedicated partition 10-2, 10-8 to 10-16
example batch files 10-23, 10-24
filenames 10-2 to 10-5
initiating 10-15
introduction 10-2
multiple printer example 10-22, 10-24
multiple user example 10-23
PRINT.CTL file 10-6, 10-7
-PRINT command 10-8 to 10-10
print processor menu 10-17
SPOOL command 10-11 to 10-15
spooler menu 10-19 to 10-21
printer
redirection 5-31, 5-32
reservation 5-47
multiple printer use 10-22, 10-24
multiple users sharing 10-2 to 10-4, 10-23
spooling 10-2 to 10-24
MOSs-D1L91 1-2)
Index
priority
partition. 5-45
print spooler file
changing 10-12, 10-18 to 10-21
default value 10-3, 10-4
program files (see files)
prompt
definition G-5
MOSsystem default 1-13
.PROMPT
batch file usage 6-30
explanation 4-73 to 4-75
form 4-73
operands 4-73, 4-74
type 4-5, 4-73
Q
question mark wildcard character 3-6
R
RAM (Random Access Memory) 5-4 to-5-6, G-6
RAM disk
emulation 1-9
conflict with FREEMEM 2-20
$RAMDISK.SYS 2-44, 2-45
.RD
explanation 4-76
form 4-76
operands 4-76
type 4-5, 4-76
read-only attribute 3-4
reboot from keyboard 5-9
rebooting tasks 5-9.
record sharing 5-8
redirect processing
.GOTO batch file command. 6-13
sorting files 4-64 to 4-66
1-22 MOS-DISI
-REL
explanation 4-77
form 4-77
type 4-5, 4-77
-REM
explanation 6-23
form 6-23
type 4-5, 3-26
-REMDEV
explanation 4-78
form. 4-78
operands 4-78
type 4-4, 4-78
removing tasks. 5-18 to 5-20
.REMTASK
explanation 5-18 to 5-20
form 5-18
operands 5-18
task ID numbers 5-18
type 4-4, 5-18
-RENAME
explanation 4-79 to 4-81
form 4-79
operands 4-79
type 4-5, 4-79
replaceable operands 6-2, 6-21, 6-34, 6-35, G-6
resource sharing 1-2, 5-7, 5-8
root directory 3-9 to 3-14, G-6
Fs)
SEARCH
explanation 4-82, 4-83
form 4-82
operands 4-82
type 4-4, 4-82
MOS-DL9L I-23
Index
1-24 MOS-D191
shifting operands 6-21
SIGNOFF
explanation 9-9
form 9-9
type. 4-5, 9-9
SIGNON
batch file usage 6-32, 9-14
explanation 9-10, 9-14
form 9-10
operands 9-10
type 4-5, 9-10
sign on to network emulation (NETBIOS) B-3
single-user
definition 1-11
SLICE command statement
changingfor a partition 5-44
default value 2-27
explanation 2-27, G-6
form 2-27
operands 2-27
time sharing explanation 2-27, 5-8, 5-9
type 4-5
SMPSIZE commandstatement
default value 2-28
explanation 2-28
form 2-28
operands 2-28
type 2-28, 4-5
«SPOOL
dedicated directory 10-11
explanation 10-11 to 10-15
operands 10-11, 10-12
type 4-4, 10-11
spooler hot key 10-15, 10-18
spooler menu 10-19 to 10-21
standard device drivers 2-37
startup batchfile
.ADDTASK command. 5-12, 5-14
print spooler example 10-23, 10-24
security example 9-13, 9-14
MOS-DiSl 1-25
Index
STOP
command form 6-24
explanation 6-24 ss
tT
MOS-D191
-TYPE
explanation 4-88
7, form 4-88
operands 4-88
type 4-5, 4-88
typeover mode 1-13, 6-17
user
default output class 9-6 to 9-8
security records 9-4 to 9-6
user ID
assigning 9-4
displaying file assignments 3-4
SSIGNON command 9-10
USERFILE commandstatement
default value 2-30
explanation 2-30
form 2-30
operands 2-30
type 2-30, 4-5
utility functions
oo, multi-user/multi-tasking 5-9, 5-20, 5-51
-VERIFY
explanation 4-90 to 4-92
form 4-90
operands 4-90
type 4-4, 4-90
VGAvideo card
conflict with FREEMEM 2-19
supported 1-3
video
cards supported 1-3
clearing display (.CLS) 4-19, 6-32
display on terminals 5-56
handling 1-6
screen colors in batchfiles 6-25 to 6-28
type, for memory allocation 2-31 to 2-36
on,
MOS-D191 1-27
VIDPATCH.COM 1-6
virtual disk emulation
$RAMDISK-SYS 1-9, 2-44 oN
Visual mode editing 7-22 to 7-25
Visual mode editing keys 7-24, 7-25
VTYPE command statement 2-31 to 2-36
WwW
MOS-D19I