Samurai Trilogy

Found on:
"Samurai Trilogy"

Loader files:
ROM Header
Turbo loader
ROM Data
Autostart

Encoding:
Endianess:LSbF
Threshold:0x0208
Lead-in:27136 x 0-bit + 1 x 1-bit
8199 x 0-bit + 1 x 1-bit
6151/6143 0-bit + 1 x 1-bit

Sync:0xAA, 0x55

Structure:
Header:Yes
Checksum:Yes
Lead-in/Sync:
The main file uses the 27136 lead-in. Data files that are single files seems to use 8199, lead-in.
While data files made up of several files use the shortest of 6151 bits for the first file and 6143 for the rest.

Header Main:
00-02   - Filename ("J&J" = 0x4A,0x26,0x4A)

Header Data:
00-03   - Filename

Header Block:
00      - Load start address high byte, if it is zero there is no more blocks to load.

Checksum:
All the 256 bytes of a data block added togehter into a 16 bit value.

Data:
The files (areas) found on the tape can be single or multiple data files. Each file is preceeded by the Main or Data header.
The data files are arranged in 256 byte blocks. Each block is preceeded by the block header.
Each data block is followed by a 16 bit checksum value (low/high order).
Blocks are always 256 bytes. All files/areas seems to have a 2039 0-bit trailer.