42bs Posted June 2, 2020 Share Posted June 2, 2020 Hi just forked a simple LZ77 kinda packer and wrote the 65C02 depacker (71 bytes). https://github.com/42Bastian/zpacker.git cheers 3 Quote Link to comment Share on other sites More sharing options...
Nop90 Posted June 2, 2020 Share Posted June 2, 2020 Nice, I'll try it. Quote Link to comment Share on other sites More sharing options...
sage Posted June 2, 2020 Share Posted June 2, 2020 not bad, much smaller than my imploder, pucrunch and exomizer ports. but i guess tha packrate is worse. Quote Link to comment Share on other sites More sharing options...
42bs Posted June 2, 2020 Author Share Posted June 2, 2020 24 minutes ago, sage said: not bad, much smaller than my imploder, pucrunch and exomizer ports. but i guess tha packrate is worse. Might be, yes. It is a trade of size of depacker, packrate, speed of depacking. As there are no shifts speed is good and size as well. If you pack large files, then it might be worth to have 16bit offsets. Or 12bit counts. zpack w/o endmark (that is max. 0x40 literal bytes) packs demo0006.o from 15400 downto 9751bytes. W/ endmark it is 9754 bytes but depack is 6 bytes shorter. For reference: A tweaked version of lz4 shrinks it down to 9394 bytes. But the packer is much more complicated. Quote Link to comment Share on other sites More sharing options...
sage Posted June 2, 2020 Share Posted June 2, 2020 -rw-r----- 1 bjoern bjoern 15406 Jun 3 01:11 demo0006_1.o -rw-r----- 1 bjoern bjoern 18022 Jun 3 01:11 demo0006_2.o -rw-rw-r-- 1 bjoern bjoern 9749 Jun 3 01:11 demo0006_2.puc -rw-rw-r-- 1 bjoern bjoern 8321 Jun 3 01:11 demo0006_1.puc Quote Link to comment Share on other sites More sharing options...
sage Posted June 2, 2020 Share Posted June 2, 2020 -rw-rw-r-- 1 bjoern bjoern 7738 Jun 3 01:18 demo0006_1.exo -rw-rw-r-- 1 bjoern bjoern 9111 Jun 3 01:18 demo0006_2.exo but that is including the .o header and prepared fro stream unpacking. i am not sure that i ever created a version which directly can parse binabries to the correct location ... I used it only for video-playback on the lynx until now. Quote Link to comment Share on other sites More sharing options...
sage Posted June 2, 2020 Share Posted June 2, 2020 https://github.com/bspruck/pucrunch Quote Link to comment Share on other sites More sharing options...
42bs Posted June 2, 2020 Author Share Posted June 2, 2020 19 minutes ago, sage said: https://github.com/bspruck/pucrunch Looking at the packer, I find zpack much more appealing. It is simpler yet gets nearly the same pack results. Quote Link to comment Share on other sites More sharing options...
sage Posted June 2, 2020 Share Posted June 2, 2020 9700 vs 8300 is not "nearly" the same Quote Link to comment Share on other sites More sharing options...
42bs Posted June 2, 2020 Author Share Posted June 2, 2020 3 minutes ago, sage said: 9700 vs 8300 is not "nearly" the same Ok, the sorting of the directory was guiding me in the wrong direction. ? Quote Link to comment Share on other sites More sharing options...
sage Posted June 2, 2020 Share Posted June 2, 2020 anyway, not sure if we have the same binary ? but thats what i found on my disc without too much searching Quote Link to comment Share on other sites More sharing options...
42bs Posted June 2, 2020 Author Share Posted June 2, 2020 Just now, sage said: anyway, not sure if we have the same binary ? but thats what i found on my disc without too much searching I used this one: https://github.com/42Bastian/new_bll/blob/master/demos/demo0006.o Quote Link to comment Share on other sites More sharing options...
sage Posted June 2, 2020 Share Posted June 2, 2020 -rw-rw-r-- 1 bjoern bjoern 15400 Jun 3 02:41 demo0006.o -rw-rw-r-- 1 bjoern bjoern 8311 Jun 3 02:42 demo0006.puc similar rate 1 Quote Link to comment Share on other sites More sharing options...
42bs Posted June 3, 2020 Author Share Posted June 3, 2020 Nice. W/o the C64 depacker even down to 80xx bytes. Quote Link to comment Share on other sites More sharing options...
sage Posted June 6, 2020 Share Posted June 6, 2020 I added the exo decoder code plus the the magic spells you need to get it work here: https://github.com/bspruck/exolynx 1 Quote Link to comment Share on other sites More sharing options...
sage Posted June 6, 2020 Share Posted June 6, 2020 Remark: I used the code in BadApple https://demozoo.org/productions/198602/ for the video playback by doing a double buffering, thus decrunching one buffer while replaying the other one. I have not used it for depacking of binary code, as pucrunch is better integrated into lynxdir (loading adresses, etc). Even so this should not be a problem. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.