__________________________________________________________________________
				 MCS v1.0
		 Map (or Matrix) Compression System v1.0 by pacHa
				04/06/2002
__________________________________________________________________________



	CONTENTS
 What is it ?
 How to use it ? How to insert it in my programs ?
 Technical description
 Contact






------------
What is it ?
------------

	MCS v1.0 is a group of programs who helps you to compress matrix(s)
to list(s). It's very useful to save RAM when you want to save maps as 
matrixs for a 3D game, for example.
	This archive includes 4 programs :

		ZCMPRSS[.82p	The system program to compress
		ZCMSELEC.82p	The interface program to compress
		ZDCPRSS[.82p	The system program to decompress
		ZDCSELEC.82p	The interface program to decompress

	


---------------------------------
How to use it ?
How to insert it in my programs ?
---------------------------------

	First, you have to know that it compresses matrix [E] (dim MUST BE
16*16, and ONLY filled with 0 and 1, for the walls, for example) into X1t, 
an hacked temporary list, who is then stored in the list you want by 
selecting it at the menu "SAVE IN..."
	The decompressing program decompresses the list you want (by 
selecting it at the "CHOOSE LEVEL" menu) into matrix [E].
	If you want to execute the compressing system, execute ONLY 
ZCMSELEC and if you want to execute the decompressing system, execute ONLY
ZDCSELEC. Please read this :

	YOU HAVE TO KNOW THAT THESE PROGRAMS ARE PROTECTED, YOU CAN ONLY
EXECUTE THEM BY ADDING A LINE LIKE :prgmZCMSELEC INSTEAD OF RECALLING 
THEM. YOU CAN USE THEM FREELY BUT PLEASE GIVE ME CREDITS AND SEND ME AN 
E-MAIL (look at the "contact" section).


---------------------
Technical description
---------------------

	This system compresses the matrix [E] (dim 16*16, only filled with 0
and 1) into L? (the list you choosed). This way of doing saves 2232 bytes by
saving only ONE matrix.

	Compressing time : about 10 seconds
	Decompressing time : 7-13 seconds (depends of the number of "1")

	Matrix [E] (16*16)  2312 bytes ===>  L? (dim 8) 80 bytes !

	Size of the programs on calc :

	ZCMPRSS[	222 bytes ||
	ZCMSELEC	137 bytes ||
	ZDCPRSS[	264 bytes ||
	ZDCSELEC	170 bytes ||
				  \/
			Total  793 bytes

   It uses a puissant algorythm of compression (size is divided by 28.9 !)

	Variables used by the following programs :

ZCMPRSS[ + ZCMSELEC			[E] (logically), A, B, E, Y, the list
					you choosed and X1t (as a list).

ZDCPRSS[ + ZDCSELEC			[E] (logically), A, B, C, I, Y and 
					X1t (as a list).



-------
Contact
-------

	If you want to use this system or you have some problems to include it,
e-mail me at : pacha07@caramail.com and i'll give you answers.


	Check also my ticalc.org author page at :
http://www.ticalc.org/archives/files/authors/62/6259.html



	ENJOY !





