Home

Awesome

ZX02: 6502 optimized compression

This is a modified version of the ZX0 and ZX1 compressors to make the decompressor smaller and faster on a 6502.

The intended use is compressing data up to about 16kB, or where the decompressor size should be as small as possible.

The compression format is not compatible with ZX0

Features

Compared to ZX0, the differences are:

With the above changes, compared with the original ZX02 have:

So, this compressor is better suited to smaller data, and specially when you need the de-compressor code to be as small as possible.

In the ZX1 mode, in addition to the changes above, the format also differs on how the offsets are stored:

6502 decompressors

There are three 6502 assembly decoders, all with ROM-able code and using 8 bytes of zero-page:

C decompressor

There is a C decompressor command dzx02 that supports all variations of the format, including starting offsets and backward encode/decode.

Downloads

You can download pre-compiled compressor and decompressor binaries in the GitHub releases area.

Compressor usage

The compressor accepts the following options:

Standard Options

Advanced Compression Options

Options incompatible with standard decompressor