Space Crusade

Found on:
"Space Crusade"

Loader files:
ROM Header
Autostart.
ROM Data
Turbo loader

Encoding:
Endianess:LSbF
Threshold:0x0140 (0x01E0)
Lead-in:4096 x 0-bit
Sync:0x3C
Byte:8-16 bits
Phy 0-bit:Long
Log 0-bit:Long

Structure:
Header:Yes
Checksum:Yes

Header:
Header is a separate file preceeding the data file.

00        File type, 0=header, 1=data
01-02   Bytes to load
03        Filename length
04-0B   Filename, 0x20 padded if shorter than above length

The data file has a 1 byte header, the file type
00        File type, 0=header, 1=data

Checksum:
Both header and data files have a checksum byte that comes after the payload.
It's EOR cancellation, so EOR of all bytes including the checksum byte should become 0x00.

Threshold:
Loader uses a threshold of 0x0140 but due to pulse lengths and how the loader is written a threshold of 0x01E0 needs to be used.

Info:
Load address are hardcoded.
Side 1 - Files 1-3: 0xC000, 0x6800, 0x0F00
Side 2 - Files 1-4: ??