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 > GCR decoding on the fly
2013-03-31 12:46
lft

Registered: Jul 2007
Posts: 369
GCR decoding on the fly

Here's how to do it:

http://linusakesson.net/programming/gcr-decoding/index.php
 
... 149 posts hidden. Click here to view all posts....
 
2013-04-03 06:15
HCL

Registered: Feb 2003
Posts: 728
@WVL: Yes i know about Doynax's packer. It was based on ByteBoozer, at least from the beginning, and optimized from there in all (?) possible ways. I'm just honored by his work :). ..and again, transferring while reading is a no-go if you want to be interruptable, and i would not sacrifice that.
2013-04-03 13:54
Cruzer

Registered: Dec 2001
Posts: 1048
Quoting Krill
My experience with packing code has shown that it can indeed be sensible to pack code by separating op-code stream and operand stream.
Clever!

Quote:
For even better compression, make sure to actually add redundancy to the code (e.g., lda #$00:ldx #$00 is likely to pack better than lda #$00:tax in the end).
That would cause bigger code, resulting in a potentially worse effect, so I would never do a thing like that.

The priority for a trackmo should be effect quality > loading time > file size.
2013-04-03 16:43
Krill

Registered: Apr 2002
Posts: 2982
As i said, 4K.

But it really depends, there is no real loss in "lda #$00:ldx #$00" vs. "lda #$00:tax": same amount of cycles, just one byte more. The packed file is shorter with the former, the unpacked file longer. No problem. :)
2013-04-03 17:40
WVL

Registered: Mar 2002
Posts: 903
Talking about that Doynax packer, I can't find it on CSDb.. Has it been released or is it just a few people that got it from Doynax himself?
2013-04-03 19:52
Krill

Registered: Apr 2002
Posts: 2982
http://csdb.dk/forums/?roomid=11&topicid=59374#59404 -> http://doynax.googlepages.com/lz.zip .

Seems like he deleted his account, and before that never officially released the packer. Weird :\
2013-04-03 20:03
WVL

Registered: Mar 2002
Posts: 903
Whatever happened to him? :-(
2013-04-03 21:55
Burglar

Registered: Dec 2004
Posts: 1105
http://sh.scs-trc.net/hereyougo/doynax_lz.zip
2013-04-04 18:18
doynax
Account closed

Registered: Oct 2004
Posts: 212
First off, let me congratulate lft for an elegant solution and an entertaining write-up.
I have attempted to write a loader without an intermediate swizzling stage myself but could never manage it. This despite skipping the checksum, abusing the entire stack and zeropages as buffers, transmitting the resulting bit a whole bizarre order, and abusing every illegal opcode in the book.

Quoting Krill
Seems like he deleted his account, and before that never officially released the packer. Weird :
Oh, I'm still alive and lurking.
I rather lost interest after solving the technical problems but if anyone cares I'll put together a package with a bit of documentation plus binaries and "release" it somewhere reputable.
For the record it was designed to be easy to integrate into streaming loaders.


Personally I'm tempted to abandon D64 compatibility and try out Kabuto's beautiful 7-bit/byte GCR coder. I sort-of get the general idea but will really have to sit down with pen-and-paper to work out the finer details and convince myself that it really can code all inputs.
Anything to put off having to write actual game logic ;)
2013-04-04 20:18
Fungus

Registered: Sep 2002
Posts: 691
I would love to see a proper release of your compressor doynax.
2013-04-05 08:18
Dano

Registered: Jul 2004
Posts: 240
+1 for that!
Previous - 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | ... | 16 - 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
Dr. Doom/RAD
Jazzcat/Onslaught
anonym/padua
sP0CkEr2
Will/Chimera
Guests online: 78
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Coma Light 13  (9.6)
4 Edge of Disgrace  (9.6)
5 Mojo  (9.6)
6 Uncensored  (9.6)
7 The Demo Coder  (9.6)
8 Comaland 100%  (9.6)
9 What Is The Matrix 2  (9.6)
10 Wonderland XIV  (9.5)
Top onefile Demos
1 Layers  (9.7)
2 Cubic Dream  (9.6)
3 Party Elk 2  (9.6)
4 Copper Booze  (9.6)
5 Dawnfall V1.1  (9.5)
6 Rainbow Connection  (9.5)
7 Morph  (9.5)
8 Libertongo  (9.5)
9 Onscreen 5k  (9.5)
10 It's More Fun to Com..  (9.5)
Top Groups
1 Booze Design  (9.3)
2 Oxyron  (9.3)
3 Performers  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.3)
Top Crackers
1 Mr. Z  (9.9)
2 OTD  (9.8)
3 Antitrack  (9.8)
4 Fungus  (9.8)
5 S!R  (9.8)

Home - Disclaimer
Copyright © No Name 2001-2025
Page generated in: 0.044 sec.