======================
Z80 aPLib decompressor
======================

http://www.smspower.org/maxim/SMSSoftware/Compressors


1/12/2008

This is a repackaging and conversion for Sega 8-bit systems of Dan Weiss's
TI-targetting Z80 decompressor for the aPLib compression format. See

http://www.ibsensoftware.com/products_aPLib.html

for the original software and description, and

http://home.comcast.net/~alanweiss3/dwedit/files/apack_demo.zip

for Dan's version. I optimised it a bit for size (primarily) and speed, and
adjusted a copy to write to VRAM via the I/O ports on Sega 8-bit systems.

See the Example code directory for examples of how to use it.

Maxim


=============================================================================

From the aplib website.  No source or binaries from this site are included in
z88dk but you will need a compressor from here to generate compressed files.


                   ______   ______   ____     ______   ____
                  _\__  /_ _\    /_ _\  /___ _\____/  _\  /___
                 /       //   /   //   /   //   /___ /       /
                /   /   //   /   //   /   //   /   //   /   /
               /_  /   //_   ___//_  /   //_  /   //_  /   /
                /______\ /___\    /______\ /______\ /______\
               -= t h e  s m a l l e r  t h e  b e t t e r =-

         Copyright (c) 1998-2014 Joergen Ibsen, All Rights Reserved

                       http://www.ibsensoftware.com/



About
-----

aPLib is a compression library based on the algorithm used in aPACK (my
16-bit executable packer). aPLib is an easy-to-use alternative to many of the
heavy-weight compression libraries available.

The compression ratios achieved by aPLib combined with the speed and tiny
footprint of the depackers (as low as 169 bytes!) makes it the ideal choice
for many products.

Please read the documentation file 'doc/aPLib.chm' or
'doc/html/index.html'.



License
-------

aPLib is freeware. If you use aPLib in a product, an acknowledgement would be
appreciated, e.g. by adding something like the following to the documentation:

    This product uses the aPLib compression library,
    Copyright (c) 1998-2014 Joergen Ibsen, All Rights Reserved.
    For more information, please visit: http://www.ibsensoftware.com/

You may not redistribute aPLib without all of the files.

You may not edit or reverse engineer any of the files (except the header files
and the decompression code, which you may edit as long as you do not remove
the copyright notice).

You may not sell aPLib, or any part of it, for money (except for charging for
the media).

    #ifndef COMMON_SENSE

    This software is provided "as is". In no event shall I, the author, be
    liable for any kind of loss or damage arising out of the use, abuse or
    the inability to use this software. USE IT ENTIRELY AT YOUR OWN RISK!

    This software comes without any kind of warranty, either expressed or
    implied, including, but not limited to the implied warranties of
    merchantability or fitness for any particular purpose.

    If you do not agree with these terms or if your jurisdiction does not
    allow the exclusion of warranty and liability as stated above you are
    NOT allowed to use this software at all.

    #else

    Bla bla bla .. the usual stuff - you know it anyway:

    If anything goes even remotely wrong - blame _yourself_, NOT me!

    #endif
