title: "KrillLoadCompressed" description: TRSE built-in method (from IDE help)
KrillLoadCompressed
Systems: C64, MEGA65, PLUS4
Parameters: a
KrillLoadCompressed( [address] );
- [address] - address
Description
Loads a compressed file from disk using the Krill loader system in TRSE.
Works exactly the same way as KrillLoad, but requires the file to be compressed. using TinyCrunch.
Compressing with TinyCrunch can be performed with TRSE by typing "1" into the "compressed" field in the d64 PAW file. Compress by compiling the paw file (ctrl+B)
You must have downloaded TinyCrunch + python installed + and having set up the link in the TRSE settings dialog.
For example, assume you have
- Created a .paw d64 file that contains some random data file with name "my_file" placed at a memory location of your chosing
- In the "project settings", selected a "d64" project
- Wish to include krill's loader at $0200
you need to write the following code to be able to load the file:
Example
program Loader;
var
i: byte;
@use KrillsLoader $0200 $2000 $5000
begin
InitKrill();
KrillLoad( my_file );
end;