Maxim's World of Stuff - SMS/Meka stuff

Pucrunch

Description

Pucrunch is a C64 compression library written by Pasi Ojala, based on a hybrid LZ77/RLE algorithm. That means it compresses stuff quite well. Jeff Frohwein ported the decompression code to GB-Z80, and I ported it to real Z80. I also did a few optimisations along the way.

I originally did this with the intention of entering the 2004 MiniGame competition but I wasn't able to finish an entry due to time restrictions. I've also since found this Z80 decompressor, which differs from mine because it is self-modifying to reduce its size but cannot be run from ROM.

Features:

  • Proper, strong compression from a well-used algorithm
  • Should be bug-free since it's been used for years
  • Example code showing how to use it for decompressing data and also as a loader for an entirely compressed program
  • ROM usage: 392 bytes
  • RAM usage: 44 bytes

Download

Pucrunch (67KB)

Links

More links

These are some other Z80 compressors/decompressors that I intend to look at one day.