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 Directory

DIRECTORY FILE TABLE FORMAT (ALL PARTITION TYPES)
1541 & 1571 PARTITION - TRACK 18 SECTOR 1
1581 PARTITION - TRACK 40 SECTOR 3
NATIVE PARTITION - TRACK & SECTOR STATED IN HEADER
BYTE
DESCRIPTION
0
Track pointer to next directory block (0 indicates last block)
1
Sector pointer to next directory block (255 indicates last block)
2-31
File entry 1 (Directory File Entry Format Below)
32-33
Reserved
34-63
File entry 2 (Directory File Entry Format Below)
64-65
Reserved
66-95
File entry 3 (Directory File Entry Format Below)
96-97
Reserved
98-127
File entry 4 (Directory File Entry Format Below)
128-129
Reserved
130-159
File entry 5 (Directory File Entry Format Below)
160-161
Reserved
162-191
File entry 6 (Directory File Entry Format Below)
192-193
Reserved
194-223
File entry 7 (Directory File Entry Format Below)
224-225
Reserved
226-255
File entry 8 (Directory File Entry Format Below)

 

DIRECTORY FILE ENTRY FORMAT
ALL PARTITION TYPES AND NATIV MODE SUBDIRECTORIES
BYTE
CONTENTS
DESCRIPTION
0
File type:
 
128

DEL (Deleted)

 
129
SEQ (Sequential)
 
130
PRG (Program)
 
131
USR (User)
 
132
REL (Relative)
 
CBM (1581 style sub-partition)
 
134
DIR (Native Mode subdirectory)
1
Track pointer to first data block or header block of DIR
2
Sector pointer to first data block or header block of DIR
3-18
Filename padded with shifted spaces [CHR$(160)]
19
Pointer to starting track of side/super side sector of REL
20
Pointer to starting sector of side/super side sector of REL
21
Record length or REL
22
0
Recerved
23
Year file was created
24
Mouth file was created
25
Day file was created
26
Hour file was created
27
Minute file was created
28
Number of blocks used by file (low byte)
29   Number of blocks used by file (high byte)

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