Test/Demo Diskette - Commodore 1541 User Manual

Hide thumbs Also See for 1541:
Table of Contents

Advertisement

APPENDIX D: DISK COMMAND QUICK REFERENCE
CHARl
General Format: OPEN 15
,8,
15 :PRINT#l5,command:CLOSE 15 (Basic
2)
HOUSEKEEPING COMMANDS
BASIC
2
NEW
COPY
RENAME
SCRATCH
INITIALIZE
VALIDATE
BASIC 3.5
NEW
COPY
RENAME
SCRATCH
VALIDATE
BOTH
INITIALIZE
FILE COMMANDS
BASIC 2
LOAD
SAVE
BASIC
3.5
LOAD
BOTH
SAVE
CLOSE
GET#
INPUT#
OPEN
PRINT#
RECORD#
"
NO:diskette name
, id"
" CO:
new file
=
O:old file
"
"
RO:new name
=
old
name"
"
SO:file name"
"
IO"
''
VO
"
HEADER
"
diskette name," lid ,DO
COPY
"old
file
"
TO
"
new file
"
RENAME
"
old name
"
TO
"
new name
"
SCRATCH
"
file name"
COLLECT
" IO"
LOAD ' 'file
name"
,8
SA YE
" O:file
name
" ,8
DLOAD
"
file
name"
DSA YE "file
name"
CLOSE file#
GET#file # ,variable list
INPUT#file # .variable list
OPEN file # ,8,channel #
,
"O:file name .file
type.direction
''
PRINT#file # ,data list
" P"
+CHR$(channel
#)+CHR$(<
record #
)
+
CHR$(>
record # )+
CHR$(offset)
DIRECT ACCESS COMMANDS
BLOCK-ALLOCATE
BLOCK-EXECUTE
BLOCK-FREE
BUFFER-POINTER
BLOCK-READ
BLOCK-WRITE
MEMORY-EXECUTE
MEMORY-READ
MEMORY-WRITE
USER
"B-A" ;O;track # ;sector#
"
B-E";channel # ;O;track # ;sector #
" B-F"
;O;track # ;sector#
"
B-P";channel #
;byte
"
UI ";channel # ;O;track # ;sector#
"
U2 ";channel # ;O;track # ;sector#
''
M-E' 'CHR$(
<
add~ss)CHR$(
>
address)
''
M-R' 'CHR$(
<address)CHR$(>
address)CHR$( # of
bytes)
''M-W"
CHR$(
<address)CHR$(> address)CHR$(
# of
bytes)
CHR$ (data byte)
" Ucharacter"
92
APPENDIX E: TEST /DEMO DISKETTE
HOW TO USE
The
"
HOW TO USE" programs provide brief descriptions of the other programs
on the Test/Demo diskette
.
THE VIC-20 & C-64 WEDGES
Additional commands are available which allow you to type short instructions to
the disk drive. Load and run the VIC-20 WEDGE if you have a VIC; use the C-64
WEDGE if you have a Commodore 64. Using either, you will be able to press backslash
(/) followed by the program name and the RETURN key to load a program; the "
/"
means load from disk
drive.
For
example,
type "
/
how to use" to load that program.
Type
">"
or
" @"
and then press RETURN to display the current disk error
status.
Type
">
$" or "@$" and RETURN to display the directory without erasing the current
program.
DOSS.1
The DOS 5. l program is not intended to be loaded directly, but is loaded instead
from the program C-64 WEDGE
.
Its load address is $CC00 hexadecimal
.
PRINTER TEST
The PRINTER TEST prints a listing of characters in a form that makes it easy to
check the mechanical and electronic capabilities of the printer.
DISK ADDR CHANGE
Use this program to change the device number of the disk drive. It is a soft
change-when the system is turned off, the disk drive is reset to its original device
number.
VIEW BAM
The VIEW BAM program allows a programmer to examine the contents of the sec-
tors that make up the block availability map (BAM)-the table that DOS uses to identify
blocks that ha ve been allocated to the files on that diskette.
CHECK DISK
The CHECK DISK program can be used to make sure a new diskette that has been
headered is in fact a good diskette. The program writes to every block to verify its ability
to store information and identifies any diskette that contains a bad block
.
Don
'
t use
such
diskettes.
DISPLAYT&S
The DISPLAY T&S program allows a programmer to examine the
contents
of a
block by specifying the particular track number and sector number that
identifies
that
block
.
PERFORMANCE TEST
The PERFORMANCE TEST program tests the electronic and mechanical capabili-
ties of the disk drive whenever
necessary.
Use this program whenever you suspect there
may be damage to the drive
.
93

Advertisement

Table of Contents
loading

Table of Contents