using ZX0 decompressor, source must all be in memory?

Post Reply
tschak909
Well known member
Posts: 171
Joined: Sun Sep 09, 2018 5:44 pm

using ZX0 decompressor, source must all be in memory?

Post by tschak909 »

I am taking @stefano's port of scottfree and adapting for the Adam. It works well, but I wanted to be able to crunch all of the Scott Adams games onto the same disk. With zx0, I can crunch all of them to fit in 96K, so it can work either on floppy or digital data pack, but I am unsure as to how to best use the decompressor found in compress/zx0.h ... do I need to have the whole file in memory before I decompress? (the size of each adventure database is 5.6K)

-Thom
User avatar
dom
Well known member
Posts: 2072
Joined: Sun Jul 15, 2007 10:01 pm

Re: using ZX0 decompressor, source must all be in memory?

Post by dom »

I'm assuming that you compressed each file and then concatenated them in someway? In which case you just need to have the chunk corresponding to the file you want to load in memory.
Post Reply