
	RRR	U  U	N  N	 CCC
	R  R	U  U	NN N	C
	RRR	U  U	N NN	C
	R R	U  U	N  N	C 
	R  R	 UU	N  N     CCC

		Version	1.50

Runc is a basic program which can run compressed programs with shrink92.
You compress the program on the PC and you extract them on your calc.
It is really usefull when you want to archive the programs or the games on your calc.
It doesn't archive them back, or recompress them. So you lose your high-scores
but you gain in stability !

In general you will compress them at 40% !!! Super !

You can also compress multiple files in one archive !!! Fantastic !

You can also compress the dynamic libraries of a program !!! Wonderfull !

It is compatible with both nostub and kernel program !!! Unbeleivable !

Note:
	As you still need a kernel to run 'runc', even if you run a nostub program,
	you will have the anti-crash protection.

Requirements
------------
 - A Graph-Link (TM) cable, or any working cable and the appropriate software.
 - A TI 89 or a TI 92 Plus
 - UniOs / TeOs / DoorsOs II
 - MS-DOS / windows / Dosemu / ?
 - shrink92 somewhere in your patch.
 - pk92lib v1.20.P1 and shrnklib v1.00.P2
 
How to use it ?
---------------

You will need the libraries 'pk92lib' and 'shrnklib' if you choose the compatible version.
You will need the library 'shrnklib' if you choose the newest version.




		+++ Autorun archive +++

Well, they will run the program and don't add it in the VAT.

How to do ?
	+ First compress the program, use the program runc.exe :
	 runc inputfile outputfile
	 Example : runc sma.9xz sma.9xs in a DOS command.
	+ Then, on the calc :
	 runc("sma") at the home screen will run the program.
	Or:
	 In Doors Explorer, select 'sma' and press 'Enter'.
	 You will see a dialog box (The first time).
	 Enter 'runc' as the program and select 'Signature'.
	Or:
	 In Pct, select 'sma' and press 'Enter'

Note: The signature is CPkP for packer92, and CPkS for shrink92





		+++ Multiple files in one archive +++

Well, the program won't be run, but all the files will be added in the VAT.
Very usell if you have a lot of texts :)

How to do ?
	+ First compress the files, use the program runc.exe :
	 runc inputfile1 inputfile2 [...] outputfile
	 Example : runc chim1.9xt chim2.9xt chim3.9xt chim.9xs in a DOS command.
	Note1: You must have more than one file !
	Note2: You can use filters: runc *.9xt chim.9xs
		and indirection files runc @files.txt chim.9xs
	+ Then, on the calc :
	 runc("chim") at the home screen will extract all the files.
	Or:
	 In Doors Explorer, select 'chim' and press 'Enter'.
	 You will see a dialog box (The first time).
	 Enter 'runc' as the program and select 'Signature'.
	Or:
	 In Pct, select 'chim' and press 'Enter' (In the latest release).

Note: The signature is CPkA for shrink92 archive.



		+++ Compressed Dynamic Libraries +++

Well, you can also compress the dynamic library of a program.

How to do ?
	+ First compress the libraries, using the multiple files in one archive :
	 runc libfile1 libfile2 [...] libcpka.9XS
	Example : runc graphlib.9xz userlib.9xz filelib.9xz ziplib.9xz libcpka.9xs
	  in a DOS command.
	Note1: You must have more than one library !
	Note2: You can use filters: runc *.9xz libcpka.9xs
		and indirection files runc @files.txt libcpka.9xs
	Note3: The output name must be libcpka.9xs or libcpka.89s
	Note4: You can uncompress all the libraries on your calc using 'runc("libcpka")'.
	+ Then compress all your programs using the AutoRun archive.
	+ Then you should have the file LIBCPKA archived in the MAIN folder.
	It will be useless in any other folder.
	+ Then, on the calc :
	You should do in the home screen (Or in Doors Explorer, in Pct).
	 runc("tetris") 
	 It will extract the program.
	If the program needs some libraries, and if the libraries aren't in the current or main folder, and if they are in the file libcpka, they will be temporaly extracted during the running of the program.
	That's all. It is transparent.
	
	NOTE: If you want to run a program which isn't compressed by runc, and which recquires some libraries in libcpka, you can run 'runc("libcpka")' to extract all the libraries in your VAT so that you can run it.
	NOTE2: Of course you CAN NOT add shrnklib in your libcpka since it is needed to run the program.
		You can add pk92lib only in the newest package.

History:
--------
v1.00 : 1st public release
v1.05 : Add compatibility with wiewers ('Open file with')
v1.07 : Now the compressed program will only use shrnklib since you can use archives greater
	than 32Kb in shrnklin now !
	Note, that runc program (on-calc) will stil accept both pk92lib & shrnklib
	compressed programs. Pk92lib compressed programs will be removed in newer version v1.20.
v1.10 : Add compatibility with plug-in (Pct98)
v1.15 : Add nostub compatibility ?? Still some bugs :(
v1.20 : Add Archive manager.
v1.30 : Add nostub compatibility (At least).
	In fact, I use tios::EX_patch instead of my own code.
	I don't know if it is better since the ti routine is very slow.
	(Very funny, my inline code is only two bytes bigger than calling
	tios routine !)
v1.40 : Add packed libraries manager. You can even compressed the libraries of a program !
	They will be uncompressed during the execution !
	:-( : They won't be erased after the execution of the program
	Add 2 versions. One compatible with old Packer92 format. The other only compatible with new format.
v1.50 : Now the libraries are erased after the execution of the program.


Thanks:
-------
David Khling, David Ellsworth, Brian Tribondeau, Patrick Davidson,
Thomas Corvazier, Rusty Wagner & Xavier VASSOR.
Ian D. Mead & Laurent Feltz

Author:
-------
 Patrick Pelissier
 ppelissier@hotmail.com
