Maxim's World of Stuff - SMS/Meka stuff

aPLib

Description

aPLib is a general-purpose compression library written by Jørgen Ibsen, based on his aPACK executable compressor. Dwedit ported the decompression code Z80 for TI calculators, and I adjusted it for Sega 8-bit systems, targetting the WLA DX assembler.

This is based on my Pucrunch code, but I was pleasantly surprised to find that Z80 aPLib compresses better and uses less RAM and 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: 233 bytes (RAM decompression) / 296 bytes (VRAM decompression)
  • RAM usage: 5 bytes

Download

aPLib (48KB)

Links

Licence

aPLib is free for non-commercial use, however if you are going to use aPLib compression in a commercial product you will have to register.

See the aPLib website for information about that.

News

27/5/2006: v1.1: Added code to decompress directly to VRAM.
25/3/2006: I've updated it to use WLA DX's .ramsection syntax, and also optimised a dozen bytes off the ROM size.