This repository has been archived by the owner on Aug 20, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
File Entry
ksherlock edited this page Apr 23, 2015
·
5 revisions
This is the file entry, as originally defined in ProDOS/SOS.
Name | Offset | Size |
---|---|---|
storage_type | $00 | 4 bits (high) |
name_length | $00 | 4 bits (low) |
file_name | $01 | 15 bytes |
file_type | $10 | 1 byte |
key_pointer | $11 | 2 bytes |
blocks_used | $13 | 2 bytes |
EOF | $15 | 3 bytes |
creation | $18 | 4 bytes |
version | $1c | 1 byte |
min_version | $1d | 1 byte |
access | $1e | 1 byte |
aux_type | $1f | 2 bytes |
last_mod | $21 | 4 bytes |
header_pointer | $25 | 2 bytes |
- The
version
/min_version
fields were deprecated and replaced with filename case information as of IIgs System 5. Refer to GS/OS Technote #8
Name | Offset | Size |
---|---|---|
storage_type | $00 | 4 bits (high) |
name_length | $00 | 4 bits (low) |
file_name | $01 | 15 bytes |
file_type | $10 | 1 byte |
key_pointer | $11 | 2 bytes |
blocks_used | $13 | 2 bytes |
EOF | $15 | 3 bytes |
creation | $18 | 4 bytes |
file_name_case_bits | $1c | 2 bytes |
access | $1e | 1 byte |
aux_type | $1f | 2 bytes |
last_mod | $21 | 4 bytes |
header_pointer | $25 | 2 bytes |
The storage type is stored in the high 4 bits. Valid values are:
$01 | Seedling File |
---|---|
$02 | Sapling File |
$03 | Tree File |
$04 | Apple II Pascal Area |
$05 | Extended File |
$0D | Directory |
$0E | Subdirectory Key Block |
$0F | Volume Key Block |
Type 0x04 and 0x05 were not a part of the original ProDOS specification and are not supported under ProDOS 8. Refer to ProDOS Technote #25
Types 0x0E and 0x0F are not used in the File Entry.