Welcome to Emulationworld

Forum Index | FAQ | New User | Login | Search

Make a New PostPrevious ThreadView All ThreadsNext ThreadShow in Flat Mode*


Subjectc64 question Reply to this message
Posted byTerry Bogard
Posted on01/08/04 09:38 AM



This morning I was under the shower and I was wondering what algorithm did the C64 packers use... it must be a very tiny thing (but that's not a great issue with 8bit instructions) able to decompress stuff in place (no disk swapping of course) and booted from the BASIC space maybe? But I vaguely recall the ,1 parameter in LOAD"*",8,1 to be used to load directly executable code or something like that...

Another suspect I had is that decompressing probably ended up eating the BASIC interpreter memory (was it copied to ram on boot? why those 38911 bytes free at startup otherwise?) and some video memory too maybe? There are a lot of games that throw trash on the screen once loaded, before starting... so I guess the video memory was shared.

So, is it some kind of weird, quick and dirty algo? Or just a stripped down Huffman or LZ? Just out of curiosity.. I am still awed to see how many pirate intros with music and gfx fit, together with the game, in a 120-block file or so :P

Thanks in advance :)



-
Entire Thread
Subject  Posted byPosted On
.c64 question  Terry Bogard01/08/04 09:38 AM
.*thanks [nt]  Terry Bogard01/13/04 09:55 AM
.*Re: c64 question  smf01/09/04 05:07 PM
..*Re: c64 question  R. Belmont01/10/04 00:28 AM
...*Re: c64 question  newsdee04/20/04 10:12 PM