EasyManua.ls Logo

Commodore 1581 User Manual

Commodore 1581
138 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
Page #1 background imageLoading...
Page #1 background image
COMMODORE
n
DISK
DRIVE
useris
guide
v

Table of Contents

Other manuals for Commodore 1581

Question and Answer IconNeed help?

Do you have a question about the Commodore 1581 and is the answer not in the manual?

Commodore 1581 Specifications

General IconGeneral
ManufacturerCommodore
Model1581
TypeFloppy Disk Drive
Storage Capacity800 KB
CompatibilityCommodore 64, Commodore 128
ControllerBuilt-in
Format3.5 inch
InterfaceIEC
Power SupplyExternal

Summary

User's Manual Statement

Introduction to the Commodore 1581 Disk Drive

How This Guide is Organized

Explains the structure of the user's guide, divided into parts and chapters.

Chapter 1: Unpacking, Setting Up and Using the 1581

Step-by-Step Instructions

Detailed instructions for unpacking, setting up, and starting to use the 1581 disk drive.

Troubleshooting Guide

Lists common problems, possible causes, and solutions for the 1581 disk drive.

Tips for Maintenance and Care

Provides essential advice for keeping the 1581 disk drive in good working condition.

Inserting a Diskette

Explains the correct method for inserting a diskette into the drive.

Using Pre-Programmed (Software) Diskettes

Guides users on how to load and run software programs from diskettes.

How to Prepare a New Diskette

Details the process of formatting a new diskette for use with the drive.

Diskette Directory

Describes how to view the list of files stored on a diskette.

Selective Directories

Explains how to create custom directory listings for specific file types.

Printing a Directory

Instructions for printing the diskette directory.

Pattern Matching

How to use wildcard characters for file selection and directory listings.

Splat Files

Information on identifying and handling improperly closed files.

Chapter 2: Basic 2.0 Commands

Error Checking

How to detect and diagnose disk errors using BASIC 2.0 commands.

Basic Hints

Useful tips and best practices for using BASIC commands with the disk drive.

Save Command

How to preserve programs or files on a formatted diskette.

Save With Replace Command

Method for overwriting existing files on diskette with new versions.

Verify Command

How to confirm that a program file was saved correctly to disk.

Scratch Command

Command to erase unwanted files and free up disk space.

More About Scratch

Additional details and cautions regarding the SCRATCH command.

More About Splat Files

Further explanation of splat files and their handling.

Locked Files

Information on files protected from erasure.

Rename Command

How to change the name of a program or file in the diskette directory.

Renaming and Scratching Troublesome Files

Techniques for managing files with problematic names.

Copy Command

How to create spare copies of programs or files on the diskette.

Validate Command

Recalculates the diskette's Block Availability Map to restore disk health.

Initialize Command

Re-reads the diskette's directory into the disk buffer if information is unreliable.

Chapter 3: Basic 7.0 Commands

Error Checking

How to diagnose disk errors using BASIC 7.0 commands.

Save Command

Saves a program or file for later reuse on a formatted diskette.

Save With Replace Command

Replaces an existing file on diskette with a new version.

Verify Command

Compares a program in memory against its copy on diskette.

Copy Command

Makes a spare copy of a program or file on the diskette.

Concat Command

Combines two sequential files into a single file.

Scratch Command

Erases unwanted files from diskettes, freeing up space.

More About Scratch

Additional details and cautions for using the SCRATCH command.

More About Splat Files

Explains splat files and their handling.

Locked Files

Information on files protected from erasure.

Rename Command

How to alter the name of a file in the diskette directory.

Renaming and Scratching Troublesome Files

Techniques for managing files with problematic names.

Collect Command

Recalculates Block Availability Map, similar to VALIDATE.

DCLEAR Command

Re-reads the diskette's BAM into the disk buffer to ensure data integrity.

Chapter 4: Sequential Data Files

Opening a File

How to open files for reading or writing using the OPEN statement.

Closing a File

Importance of closing files to ensure data is written and directory updated.

Reading File Data: Using INPUT#

How to read data from disk files into variables using INPUT#.

More About INPUT#

Explains common errors encountered with INPUT# and file data.

Commas and Colons in File Handling

How commas and colons affect data input and file handling.

Numeric Data Storage on Diskette

How numeric variables are stored as strings on diskette.

Reading File Data: Using GET#

How to read data character by character using GET#.

File Status Variable Meanings

Interpretation of the ST file status variable codes.

Demonstration of Sequential Files (BASIC 7.0)

A sample BASIC 7.0 program demonstrating sequential file operations.

Chapter 5: Relative Data Files

Files, Records, and Fields

Concepts of organizing data into files, records, and fields for relative access.

File Limits for Relative Files

Constraints on record size and file capacity when using relative files.

Creating a Relative File

How to create or reopen a relative file for data operations.

Using Relative Files: RECORD# Command

How to position the record pointer for reading/writing in relative files.

Examples of RECORD# Command Usage

Practical examples of using the RECORD# command.

Completing Relative File Creation

Steps to properly create a relative file, including initial record setup.

Expanding a Relative File

How to add more records to an existing relative file.

Writing Relative File Data

Using PRINT#, INPUT#, and GET# for writing relative file data.

Designing Relative Records

Methods for structuring data within a relative file record.

Writing the Record

Example program for entering variable length fields into a relative record.

Reading Relative Records

How to read data back from relative files into memory.

The Value of Index Files

How sequential files can be used with relative files for efficient data retrieval.

Chapter 6: Direct Access Commands

Opening Data Channel for Direct Access

Setting up dedicated channels for direct sector access operations.

Block-Read Command

Loading contents of a specified disk sector into a file buffer.

Block-Write Command

Saving the contents of a file buffer into a specified disk sector.

Original Block-Read and Block-Write Commands

Using older commands for block read/write operations.

The Buffer Pointer

How to manage the buffer pointer for accessing disk memory.

Allocating Blocks

Marking sectors as used to prevent overwriting.

Freeing Blocks

Releasing allocated disk blocks for reuse.

Partitions and Sub-Directories

Creating and managing partition areas as sub-directories on the disk.

Using Random Files

Developing programs that utilize random file access methods.

Chapter 7: Internal Disk Commands

1581 Memory Map

Overview of the 1581's internal memory layout and purpose of memory areas.

Memory-Read Command

Reading bytes from disk memory into the computer.

Memory-Write Command

Writing bytes into disk memory from the computer.

Memory-Execute Command

Executing routines directly from disk memory.

Block-Execute Command

Loading and executing machine language routines from diskette sectors.

User Commands

Commands for interacting with machine language programs and system functions.

Utility Loader

Loading user-type files into the drive's RAM.

Auto Boot Loader

How the drive automatically loads and executes specific user files.

Chapter 8: Machine Language Programs

Disk-Related Kernal Subroutines

List of Kernal ROM routines for disk operations and their usage.

Chapter 9: Burst Commands

CMD 1: Read

Command for reading data using the burst protocol.

CMD 2: Write

Command for writing data using the burst protocol.

CMD 5: Inquire Disk

Command to query the diskette's format and status.

CMD 4: Format

Command for formatting diskettes with various options.

CMD 6: Query Disk Format

Retrieves detailed information about the diskette's format.

CMD 7: Inquire Status

Command to inquire about the drive's current status.

CMD 8: Dump Track Cache Buffer

Command to view the contents of the track cache buffer.

Chgutl Utility

Utility for changing drive parameters and modes.

Fastload Utility

Utility for accelerating data transfer operations.

Status Byte Breakdown

Explains the meaning of status bytes returned by commands.

Burst Transfer Protocol

Details the handshake protocol for burst data transfers.

Explanation of Procedures

Defines the terms and procedures used in burst commands.

Handshake

Illustrates the timing and sequence of the burst protocol.

Chapter 10: 1581 Internal Operation

Logical Versus Physical Disk Format

Explains the difference between logical and physical disk formatting.

Track Cache Buffer

Describes the buffer used to improve disk drive efficiency.

Controller Job Queue

How the DOS and Controller communicate via a job queue.

Vectored Jump Table

Table of indirect vectors for DOS commands, allowing customization.

Appendix A: Changing the Device Number

Appendix B: DOS Error Messages

Appendix C: DOS Diskette Format

Appendix D: Disk Command Quick Reference Chart

Appendix E: Specifications of the 1581 Disk Drive

Appendix F: Serial Interface Information

Related product manuals