SCL format: Difference between revisions
Jump to navigation
Jump to search
(Add to File Formats category) |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[ | The SCL format is a compact representation of [[TR-DOS filesystem]] content. It stores only the file headers and the used sectors. | ||
It is conventional for emulators to build real disk images on the fly from SCL data to use for disk emulation. | |||
== SCL file structure == | == SCL file structure == | ||
Line 24: | Line 18: | ||
|- | |- | ||
|0x0009 | |0x0009 | ||
|N | |N × 14 | ||
|File headers | |File headers | ||
|- | |- | ||
|0x0009 + N | |0x0009 + N × 14 | ||
|DATA LENGTH | |DATA LENGTH | ||
|Sector data | |Sector data | ||
|} | |} | ||
== SCL file header == | |||
::{|border=1 | ::{|border=1 | ||
Line 49: | Line 43: | ||
|} | |} | ||
== File headers == | |||
::{|border=1 | ::{|border=1 | ||
Line 69: | Line 63: | ||
|... | |... | ||
|- | |- | ||
|0x0000 + (N-1) | |0x0000 + (N-1) × 14 | ||
|14 | |14 | ||
|Nth file header entry | |Nth file header entry | ||
Line 76: | Line 70: | ||
==== File header entry ==== | ==== File header entry ==== | ||
The file headers structure is the same as | The file headers structure is the same as in the [[TR-DOS filesystem]], except the last two bytes (start sector, start track). | ||
::{|border=1 | ::{|border=1 | ||
Line 101: | Line 95: | ||
|} | |} | ||
== Files data == | |||
::{|border=1 | ::{|border=1 | ||
Line 110: | Line 104: | ||
|- | |- | ||
|0x0000 | |0x0000 | ||
|1st file length | |1st file length × 256 | ||
|1st file data | |1st file data | ||
|- | |- | ||
|0x0000 + 1st file length | |0x0000 + 1st file length × 256 | ||
|2nd file length | |2nd file length × 256 | ||
|2nd file header entry | |2nd file header entry | ||
|- | |- | ||
Line 125: | Line 119: | ||
|Nth file header entry | |Nth file header entry | ||
|} | |} | ||
== See also == | |||
[[TRD format]] | |||
[[Category:File Formats]] | |||
[[Category:Specifications]] |
Latest revision as of 00:54, 10 May 2020
The SCL format is a compact representation of TR-DOS filesystem content. It stores only the file headers and the used sectors.
It is conventional for emulators to build real disk images on the fly from SCL data to use for disk emulation.
SCL file structure
The file begins with a 8 byte 'magic': SINCLAIR, then the number of files, the file headers an after that all the data blocks.
Offset Length Comment 0x0000 9 SCL file header 0x0009 N × 14 File headers 0x0009 + N × 14 DATA LENGTH Sector data
SCL file header
Offset Length Comment 0x0000 8 Signature "SINCLAIR" 0x0008 1 Number of files (N)
File headers
Offset Length Comment 0x0000 14 1st file header entry 0x000e 14 2nd file header entry ... ... ... 0x0000 + (N-1) × 14 14 Nth file header entry
File header entry
The file headers structure is the same as in the TR-DOS filesystem, except the last two bytes (start sector, start track).
Offset Length Comment 0x0000 8 File name 0x0008 1 File type 0x0009 3 File parameters (based on type) 0x000d 1 File length in sectors
Files data
Offset Length Comment 0x0000 1st file length × 256 1st file data 0x0000 + 1st file length × 256 2nd file length × 256 2nd file header entry ... ... ... 0x0000 + .... last file length Nth file header entry