Home Pagee

Home Page

BASIC Handbook

Basic2 Commands
Disk Drives
PEEK's and POKE's
RAM Memory Map
ROM Memory Map
Screen Display
Sprite
ASCII and CHR$ Codes

eMail
email5-commodorecheetah.co.uk

Note: You will need to replace the '-' with the @ symbol.
This is to minimize spam.

My BASIC Quick Reference Guide

Disk Access Commands

OPEN fn,dn,sn
Open a file channel to Tape: OPEN fn, dn, sn, "name"
Open a file channel to Disk Drive: OPEN fn, dn, sn, "name, ft, di"
goto OPEN.

COMMAND
DESCRIPTION
DETALES
fn
unique number for that file to use with INPUT#, GET#, PRINT#.
dn
the device number of the drive 1= Tape deck
8 to 30 = Disk drives
sn
secondary number 0 = Tape read
1 = Tape write
2 = Tape write with End-of-tape marker
4 = Printer
5 to 14 = Is used for the Disk Drives
15 = Disc Drive error channel
"name"
File Name. (16 charites Max)
ft
File Type (Disk only) S = Sequential
P = Program
U = User
A = Append
L = Length (Relative file)
di
Direction (Disk only) R = read
W = write
M = modify


INPUT#fn,data
Retrieve a string data from file, goto INPUT#.

PRINT#fn,data
Write string data to file, goto PRINT#.

GET#fn,data
Reads data from the file one Byte at a time, goto GET#.


Commodore Cheetah made by Allen Monks, started in the year 2000.