News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu
avatar_freemac

DSK format : DIRStruct FileEntry

Started by freemac, 13:19, 10 September 15

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

freemac

Who knows more about floppy DIRStruct structure ?


Thing I know actually is :
-A DIREntry is on 4 first sector of dsk, A FileEntry does 32 bytes and matches with 16KB max.
-if first byte is xE5 (empty char that fill a virgin dsk) FileEntry is ignored.


What is between the red and the green bytes ?

arnoldemu

#1
CP/M information archive : disc formats

look at cpm2.2 directory structure.

EDIT: The number of sectors per directory, the start track of the directory and the number of files in the directory is all defined in the XDPB.

This doc has the XDPB for SYSTEM and DATA:

cpctech.cpc-live.com/docs/manual/s968se09.pdf
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

freemac

#2
So my red byte is in fact "low byte" of counter (%32), and its "high byte" value (/32) is the byte just at left of my green byte  ::)
Thanks a lot  8)

TFM

The byte in the green box is a counter of 128 byte records. It can not be higher than &80, if it is &80 then look for a 2nd extent of the file (file is bigger than 16 KB). The byte after the file-name is the counter of the extent (0 for first extent, then 1, 2...).

TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Powered by SMFPacks Menu Editor Mod