Atari DOS 2.5: XF551 Owner's Manual page 87

Atari dos 2.5 disk drive
Table of Contents

Advertisement

The XIO command is a generallNPUT/OUTPUT statement used
for special operations
.
It is used when you want to perform some
of the functions that would otherwise be performed using the
DOS Menu selections
.
These XIO commands are used to open a
file
,
read
or
write a record or
character,
close a file
,
reference a
location in a ' ile
for
reading or writing
,
or to rename
,
delete
, lock,
or unlock a file. Note that X!O calls require filespecs
.
CMDNO (command number) is used to designate
just
which of
the operations is to be performed.
CMDNO
OPERATION
EXAMPLE
13
STATUS Request
XIO 13,
#
1,
0, 0, "
D: TEST,BAS
"
32
RENAME
XIO
32,
#1
, 0, 0, " D: OLD,
NEW
"
33
DELETE
XIO
33, #1, 0, 0, " D:
TEMP
BAS
"
35
LOCK FILE
XIO
35,
#1,
0, 0, "
0
:
ATAR!.
BAS
"
36
UNLOCK FILE
XIO 36
,
#1
, 0, 0, "
D:DOSEX
,
BAS
"
253
FORMAT DISK
XIO 253
.
#1. 0,
0,
"
D1
:"
Format Single Density
254
FORMAT
DISK
XIO 254
, #1, 0, 0,
"
01
:"
Format Enhanced Density
Note: Do not use the device name twice when renaming a file
,
i.e.,
do not use
"
0
: OLD,
0
: NEW."
Following is a mini· DOS program that lets you manipulate your
disk files from
BASIC.
Normally if you want to re
name,
delete,
lock (protect) or unlock (unprotect) a file
,
you need to exit BASIC
by typing DOS to access the DOS menu
,
which usually erases
any BASIC program
in
memory. By using the X1Q command
you
can perform these functions without exiting to DOS
.
77

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xf551

Table of Contents