| |
Flavioweb
Registered: Nov 2011 Posts: 447 |
Native crunch/decrunch code.
Do you know if the source code of a native crunch/decrunch routine for C64 exists somewhere?
Not a complete utility with interface etc...
just the compression/decompression code. |
|
| |
tlr
Registered: Sep 2003 Posts: 1724 |
Are there any requirements on performance here? Compression and speed that is. |
| |
Flavioweb
Registered: Nov 2011 Posts: 447 |
No.
Preferably it should use little ram but I have some headroom to adapt. |
| |
Krill
Registered: Apr 2002 Posts: 2854 |
Quoting FlaviowebDo you know if the source code of a native crunch/decrunch routine for C64 exists somewhere?
Not a complete utility with interface etc...
just the compression/decompression code. Why would you want to crunch natively?
And if you really must, why do you need the source code?
Just pick apart any of the crunchers from the olden days. |
| |
Flavioweb
Registered: Nov 2011 Posts: 447 |
Quoting KrillWhy would you want to crunch natively?
And if you really must, why do you need the source code?
Just pick apart any of the crunchers from the olden days.
I have a program running, from $3000 to $FFFF that modifies itself.
I would like the user to be able to save a stand alone version.
I managed to get the working sources of Fast Cruncher 5.09 but as soon as I change a small thing I create a lot of problems.
I would like to avoid unnecessary waste of time by using existing code... if it exists somewhere.
that's all. |
| |
tlr
Registered: Sep 2003 Posts: 1724 |
Quote: No.
Preferably it should use little ram but I have some headroom to adapt.
Then I’d go for a simple RLE. |
| |
Krill
Registered: Apr 2002 Posts: 2854 |
Quoting tlrThen I’d go for a simple RLE. Indeed. Native LZ-style crunching would take hours like it did in the olden days.
RLE is not nearly as crunchy, but fast and might fit the bill, too. |
| |
Flavioweb
Registered: Nov 2011 Posts: 447 |
Thank you!
If you can provide me with something I hope to be able to use it properly. |
| |
Krill
Registered: Apr 2002 Posts: 2854 |
Quoting FlaviowebIf you can provide me with something I hope to be able to use it properly. https://codebase64.org/doku.php?id=base:rle_pack_unpack perhaps. |
| |
Raistlin
Registered: Mar 2007 Posts: 575 |
Quote: Quoting FlaviowebIf you can provide me with something I hope to be able to use it properly. https://codebase64.org/doku.php?id=base:rle_pack_unpack perhaps.
I’m not the person for this, but, that code on Codebase64 looks a bit long for just RLE pack/depack doesn’t it..? It seems like something that could be coded with a really tight loop… |
| |
tlr
Registered: Sep 2003 Posts: 1724 |
Quoting RaistlinI’m not the person for this, but, that code on Codebase64 looks a bit long for just RLE pack/depack doesn’t it..? It seems like something that could be coded with a really tight loop…
Also it's missing the requested executable binary generation. I have some RLE code here, but that is for streamed input from disk which may not be optimal for this usecase. |
... 13 posts hidden. Click here to view all posts.... |
Previous - 1 | 2 | 3 - Next |