| |
Case
Registered: Aug 2002 Posts: 142 |
Depacking files from Memory
Hi, i am doing some coding and have hit a wall. I need to pack and then depack 3 pictures from memory depending on a keypress.
Can anyone help me with one ? |
|
... 10 posts hidden. Click here to view all posts.... |
| |
Krill
Registered: Apr 2002 Posts: 2980 |
Quoting Casei have 3 standard bitmaps [...] i have some music sitting at $8000 So that's 3*10 KB for the pictures and 4-8ish KB for the tune, in a 64 KB system.
Are you sure you need to compress the pictures? |
| |
Case
Registered: Aug 2002 Posts: 142 |
Quote: Quoting Casei have 3 standard bitmaps [...] i have some music sitting at $8000 So that's 3*10 KB for the pictures and 4-8ish KB for the tune, in a 64 KB system.
Are you sure you need to compress the pictures?
not sure, my coding skills were never that great and i was trying to get a little better doing it this way. Would also like to adapt the depack from memory and maybe create another 'heartbeat' release. |
| |
Luca
Registered: Apr 2002 Posts: 178 |
I second Krill. I've used Exomizer on Plus/4 in order to depack on the fly both the bitmaps in my demopart included into Crackers' Demo 5 coopdemo: a remarkable packing ratio and easy to manage in general. If I'd been capable to use it, believe me, anybody can ;) |
| |
Krill
Registered: Apr 2002 Posts: 2980 |
Quoting CaseIf anyone has a working .exe of the packer and the depacker in kickass format i would be very grateful. Really, try to use the material that's there. If you have no working .exe, build it from source.
Likewise for the C-64 depacking part. It's a library, and as such should be assembled with the tools intended by the author. You can then easily include the binary in your project and use whatever assembler/tools you like. Translating stuff from one assembly syntax to another is a useless exercise most of the time and likely to introduce bugs. |
| |
mhindsbo
Registered: Dec 2014 Posts: 51 |
I have experimented a little with the new Exomizer. I find it quite versatile and easy to use.
It is very easy to crunch binary and prg files into a format that can be unpacked from memory.
I converted the decruncher to C64 Studio format if that is helpful to anyone.
BTW does anyone know what flag or similar you need to crunch with to use EXTRA_TABLE_ENTRY_FOR_LENGTH_THREE option? FOr some reason I couldn't find that in the documentation. |
| |
cadaver
Registered: Feb 2002 Posts: 1160 |
Check exo30info.txt in the newest version, and the documentation of the -P flag (near the beginning) |
| |
Krill
Registered: Apr 2002 Posts: 2980 |
For what it's worth (cue shameless plug): Krill's Loader, Repository Version 166 comes with a memory decompression call and supports various crunchers:DECOMPRESSOR = DECOMPRESSORS::TINYCRUNCH; available are NONE, BITNAX (recommended for demos), BYTEBOOZER2, DOYNAX_LZ, EXOMIZER, LEVELCRUSH, NUCRUNCH, PUCRUNCH, SUBSIZER, TINYCRUNCH (recommended for demos)
If loading isn't actually required, the code can at least serve as a how-to. |
Previous - 1 | 2 - Next |