EasyManua.ls Logo

Commodore 1581 - Page 130

Commodore 1581
138 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
•STRUCTURE
OF
EACH
INDIVIDUAL
DIRECTORY
ENTRY
BYTE
OFFSET
0
1-2
3-18
19-20
21
22-25
26-27
28-29
CONTENTS
128
+
type
DEFINITION
File
type
OR'ed
with
$80
to
indicate
properly
closed
file.
(if
OR'ed
with
$C0
instead,
file
is
locked.)
TYPES:
0
=
DELeted
1
=
SEQuential
2
=
PROGram
3
=
USER
4
=
RELative
5
=
CBM
Track
and
sector
of
first
data
block.
File
name
padded
with
shifted
spaces.
Relative
file
only:
track
and
sector
of
the
super
side
sector
block.
Relative
file
only:
record
length.
Unused.
Track
and
sector
of
replacement
file
during
an
©SAVE
or
©OPEN.
Number
of blocks
in
file:
stored
as
a
two-byte
integer,
in
low-byte,
high-byte
order.
PROGRAM
FILE
FORMAT
BYTE
DEFINITION
FIRST
SECTOR
0,1
Track
and
sector
of
next
block
in
program
file
1.
2,3
Load
address
of the
program.
4-255
Next
252
bytes
of
program
information
stored
as
in
computer,
memory
(with
key
words
tokenized).
REMAINING
FULL
SECTORS
0,1
Track
and
sector
of
next
block
in
program
file
1.
2-255
Next
254
bytes
of
program
information
stored
as
in
computer
memory
(with
key
words
tokenized).
FINAL
SECTOR
0,1
Null
($00),
followed
by
number
of
valid
data
bytes
in
sector.
2-???
Last
bytes
of
the
program
information,
stored
as
in
computer
memory
(with
key
words
tokenized).
The
end
of
a
BASIC
file
is
marked
by
three
zero
bytes
in
a
row.
Any
remaining
bytes
in
the
sector
are
garbajge
and
may
be
ignored.
121

Table of Contents

Other manuals for Commodore 1581

Related product manuals