Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Native crunch/decrunch code.
2024-04-20 05:56
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.
2024-04-20 09:52
tlr

Registered: Sep 2003
Posts: 1724
Are there any requirements on performance here? Compression and speed that is.
2024-04-20 10:04
Flavioweb

Registered: Nov 2011
Posts: 447
No.
Preferably it should use little ram but I have some headroom to adapt.
2024-04-20 10:13
Krill

Registered: Apr 2002
Posts: 2854
Quoting Flavioweb
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.
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.
2024-04-20 10:40
Flavioweb

Registered: Nov 2011
Posts: 447
Quoting Krill
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.

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.
2024-04-20 11:23
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.
2024-04-20 11:33
Krill

Registered: Apr 2002
Posts: 2854
Quoting tlr
Then 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.
2024-04-20 11:48
Flavioweb

Registered: Nov 2011
Posts: 447
Thank you!
If you can provide me with something I hope to be able to use it properly.
2024-04-20 12:14
Krill

Registered: Apr 2002
Posts: 2854
Quoting Flavioweb
If 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.
2024-04-20 16:45
Raistlin

Registered: Mar 2007
Posts: 575
Quote: Quoting Flavioweb
If 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…
2024-04-20 17:00
tlr

Registered: Sep 2003
Posts: 1724
Quoting Raistlin
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…

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
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
algorithm
Martin Piper
Alakran_64
Mr SQL
Guests online: 101
Top Demos
1 Next Level  (9.8)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.7)
5 Edge of Disgrace  (9.6)
6 Comaland 100%  (9.6)
7 Uncensored  (9.6)
8 No Bounds  (9.6)
9 Wonderland XIV  (9.6)
10 Bromance  (9.5)
Top onefile Demos
1 Layers  (9.7)
2 It's More Fun to Com..  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 TRSAC, Gabber & Pebe..  (9.5)
7 Rainbow Connection  (9.5)
8 Dawnfall V1.1  (9.5)
9 Quadrants  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Booze Design  (9.3)
3 Censor Design  (9.3)
4 Crest  (9.3)
5 Performers  (9.3)
Top Coders
1 Axis  (9.8)
2 Graham  (9.8)
3 Lft  (9.8)
4 Crossbow  (9.8)
5 HCL  (9.8)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.056 sec.