Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is deprecated

Important

This code is deprecated, it was continued as a new compression format ZX02 at https://github.com/dmsc/zx02


Custom version of ZX0 compressor

This is a modified version of the ZX0 compressor to make the decompressor smaller on a 6502.

Also, there is a new C decompressor compatible with all variants: new, classic, 6502 optimized and backwards modes)

Compressed Stream Variants

The variants differ on how the bits are stored in the stream, but the basic code is the same. The table shows the differences:

Format Elias Code ending Offset MSB Offset LSB Decoding Order
New (V2) Bit 1 ends Negative Negative From Start
Classic Bit 1 ends Positive Negative From Start
6502 (2) Bit 0 ends Positive Positive From Start
6502 (3) Bit 1 ends Positive Positive From Start
Backward Bit 0 ends Positive Positive From End
  • Elias Code ending: bit used to mark the end of the elias-code.
  • Offset MSB: how the elias-code of the MSB offset is stored.
  • Offset LSB: how the literal LSB of offset is stored.
  • Decoding Order: the direction the compression/decompression is performed, from start to end or in reverse.

The 6502 (2) format decoder is one byte shorter than the old (3) format.

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages