Hufflib provides functions for decompressing Huffman encoded data.
void hufflib::extract() *
Extracts Huffman compressed data.
Input: A0.L = Pointer to Huffman compressed data
A1.L = Pointer to memory where uncompressed data should be stored
D3.W = File number to extract (not necessary if not multifile)
void hufflib::extract_string() *
Extracts a string from Huffman compressed data.
Input: A0.L = Pointer to Huffman compressed data
A1.L = Pointer to memory where string should be stored
D3.W = File number to extract (not necessary if not multifile)
D4.W = String number. First string is number 0.
void hufflib::write_string() *
Writes a compressed string with the current font.
Input: A0.L = Pointer to Huffman compressed data
D0.W = X location
D1.W = Y location
D3.W = File number to extract (not necessary if not multifile)
D4.W = String number. First string is number 0.
void hufflib::write_string_inv() *
Writes a compressed string inverted with the current font.
Input: A0.L = Pointer to Huffman compressed data
D0.W = X location
D1.W = Y location
D3.W = File number to extract (not necessary if not multifile)
D4.W = String number. First string is number 0.
WORD hufflib::check_mem() *
Checks if there is enough memory (about 1100 bytes) free for decompression. Returns 1 if there is
enough, 0 if not.
Back to Programming Information
* The function was originally written by Jimmy Mårdell for Fargo.
Questions? Comments? E-mail me at river@gte.net
This page is maintained by Rusty Wagner