Players loader plug-in for WAV-PRG
Written by Fabrizio Gennari, 1999

This plug-in converts Commodore 64 tapes using Players loader to PC emulator format.

File format:

Data endianness: least significant byte first
Threshold: 480 clock cycles
Lead-in byte:  $A0 (repeated)
Sync sequence: $0A, $09,...,$01

Then come:
end address - 1 (low byte, high byte)
length of data in bytes (low byte, high byte)
1 byte: if it is not 0, the content of the location $01 is decreased by 1 before storing each data byte, and increased by 1 immediately after.
data bytes (encoded, in reverse order)
checksum (XOR of all DECODED data bytes)

The first data byte is stored at <end address - 1>, the second one at <end address - 2> etc. Exactly <length> bytes are transmitted. The data bytes, before being stored, are decoded this way:
decoded byte = encoded byte XOR (store address AND $FF)