News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu

Snapshot - WinAPE compression

Started by CECPC, 13:40, 20 August 14

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

CECPC

Hi!

I'm programming a utility based on SnapShot data.
I was used the info of this wiki (among others) about this format.

Format:SNA snapshot file format - CPCWiki

But WinAPE has an option to "compress" the data inside a V3 Snapshot.
I didn't find any info about this option.

This compression is different to SNZ implementation (a simple Gzip over a normal SNA).
Showing two snapshots, with and without compression, seems like some type of RLE implementation altough i don't know the specific implementation. Even
how to detect (except that size don't match) if the snapshot is compressed or not to avoid accept compressed snapshots.

Someone knows about it?

Aeliss

#1
Something I have see in winape, if it s compressed Snapshot you have 2 things:
> offset 6b-6c = 0 (memory dump size)
> chunk memory and the end of file.

MEM0 for Standard 64k.
MEM1 to MEM8 for memory expansion bank.

And yes it's RLE compression. The control byte is 0x0e5.

IDK how to explain clearely but for decompression
11 22 33 = 11 22 33
E5 03 11 = 11 11 11
E5 00 = E5

And for compression 11 11 = 11 11 and not E5 02 11

Aeliss

#2
****
Wrong manipulation, there is nothing to delete post ?

TFM

Quote from: Aeliss on 16:49, 20 August 14
****
Wrong manipulation, there is nothing to delete post ?


No sadly not, we had that in the good old days, but  :-\
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

CECPC

Argh. I'm dumb. I though that the chunk part was for CPC+ only.

Sorry. I promise to RTFM better next time.

TFM

Quote from: CECPC on 08:41, 21 August 14
Sorry. I promise to RTFM better next time.


RTFM... here... ReadTheFutureosManual...



TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Executioner

Yes, Aeliss has the compression algorithm correct. It's simple RLE with E5 control byte, exactly as posted above.

Powered by SMFPacks Menu Editor Mod