**********************************************
**             TNT2 compressor              **
**                     or                   **
**         BZ2 with Elias Gamma Code        **
**             for HP48,49&50               **
**********************************************
Author : Yann Collet

Current version : v1.1


TNT2 is a variant of BZ2 with little change,
using an Elias Gamma Code length encoder
instead of the original BZ-like expanding Trigram.

BZ2-with-Elias-Gamma-Code is fully compatible with TNT, 
because TNT itself is a rip of BZ with little modifications.

TNT2 compress more and faster than TNT.
See benchmark below for comparison.


How does it perform ?
---------------------

Benchmark Results :					
HP49G Comparison     TNT1.11      TNT2        BZ2.max
Memory Requirement   27KB(*)       9 KB        9 KB
Compression Ratio    2.25         +3.1%       -0.5%
Compression Speed    0.96 KB/s    +25%        +50%        
Decoding Speed       11.7 KB/s    +45%        +130%  

(*) TNT1 can decrease its memory usage up to 7KB, 
but compression speed drops sharply.

Complete detailed benchmarks are available at webpage :
http://hputils.webhop.org
or
http://phantasie.tonempire.net/utilitaires-f7/



How to use it ?
---------------

Put the object to compress on Stack 1.

Call TNT2, and it will compress the object
into a non-editable string.
Annunciators animation will be displayed during compression,
and statistics at the end (time & compression ratio).

Call TNT2 again, and it will uncompress the object.

A Standalone decoder, called UTNT2, is also provided.



Special Thanks to 
-----------------
Mika Heiskanen, the creator of original BZ
stfox, for its excellent help on testings HP48S&G versions

TNT author, while demonstrating the usefullness of Elias Gamma Code,
also took the decision to hide the work of Mika Heiskannen, pretending it to be its own,
and is therefore not named in this list.
