ICE! extractor from .ST disk images

WinSTon, Nostalgia, MSA Converter, FloImg, Makedisk and all the others.

Moderators: Mug UK, Moderator Team

Post Reply
mlynn1974
Atari Super Hero
Atari Super Hero
Posts: 567
Joined: Mon Mar 03, 2008 10:33 pm
Contact:

ICE! extractor from .ST disk images

Post by mlynn1974 »

I have written a program in C++ to extract ICE! packed sections from .ST disk images:
https://lynn3686.com/download/iceextract_v1.zip
This was because MugUK managed to extract tunes from The Wild Boys Waveforms demo. I tried using SainT memory snapshots but had no luck.
ICE! indicates it was packed with Pack-Ice 2.4. Ice! was earlier versions but I haven't added that feature yet.

The code is written using Microsoft Visual Studio 2005 (C++) but should be able to be upgraded to more recent versions.
It is compiled using Multibyte Character Set (MBCS) not Unicode in Release and Debug modes.

In the test directory there is:
iceextract.exe
test.bat
clean.bat
waveforms.st

test.bat calls iceextract.exe and writes out_0.bin, out_1.bin for every ICE! section reached.
If the length after the ICE! identifier is larger than the disk image it will skip that chunk.

It only looks at the first longword after ICE! to determine the length of the file. I vaguely remember the 2nd and 3rd longs doing something. Maybe the length of the DATA and BSS sections for executables? I can't remember seeing any documentation for that.
Any suggestions or improvements would be appreciated.
Last edited by mlynn1974 on Mon May 23, 2022 9:50 am, edited 1 time in total.
Still got, still working: Atari 4Mb STe, 520STFM (x2), 2.5Mb STF, Atari 2600JR, Flashback 8 Gold.
Hardware: Cumana CSA 354, Ultimate Ripper, Blitz Turbo, Synchro Express II (US and UK Versions).
User avatar
prog99
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 140
Joined: Thu Jun 19, 2003 8:08 pm
Location: Ross & Cromarty
Contact:

Re: ICE! extractor from .ST disk images

Post by prog99 »

Does your extractor assume the files are stored in contiguous sectors on the disk image?
All my real skills are undervalued
User avatar
Mug UK
Administrator
Administrator
Posts: 11751
Joined: Thu Apr 29, 2004 7:16 pm
Location: Stockport (UK)
Contact:

Re: ICE! extractor from .ST disk images

Post by Mug UK »

I'd try it out with a few demos that use ICE! headers and add them to a "tested with" list.

Ice! was a bugger to add to my Multi Depacker as the same header was used for 2 x different versions of Ice Packer, each having different depacker routines.

Like with New Depack's author above, we had to add an option of "which depacker do you want to try" and then cross-fingers it didn't bork the ST.
My main site: http://www.mug-uk.co.uk - slowly digging up the bits from my past (and re-working a few): Atari ST, Sega 8-bit (game hacks) and NDS (Music ripping guide).

I develop a free Word (for Windows) add-in that's available for Word 2007 upwards. It's a fix-it toolbox that will allow power Word users to fix document errors. You can find it at: http://www.mikestoolbox.co.uk
mlynn1974
Atari Super Hero
Atari Super Hero
Posts: 567
Joined: Mon Mar 03, 2008 10:33 pm
Contact:

Re: ICE! extractor from .ST disk images

Post by mlynn1974 »

prog99 wrote: Mon May 23, 2022 7:08 am Does your extractor assume the files are stored in contiguous sectors on the disk image?
Yes contiguous sectors only. These custom loaders must have been very difficult to write and work out where each screen would go on the disk.
Mug UK wrote: Mon May 23, 2022 7:21 am I'd try it out with a few demos that use ICE! headers and add them to a "tested with" list.

Like with New Depack's author above, we had to add an option of "which depacker do you want to try" and then cross-fingers it didn't bork the ST.
I'll try that when I get time. Thanks for the advice on the old Ice! format.
Still got, still working: Atari 4Mb STe, 520STFM (x2), 2.5Mb STF, Atari 2600JR, Flashback 8 Gold.
Hardware: Cumana CSA 354, Ultimate Ripper, Blitz Turbo, Synchro Express II (US and UK Versions).
User avatar
Mug UK
Administrator
Administrator
Posts: 11751
Joined: Thu Apr 29, 2004 7:16 pm
Location: Stockport (UK)
Contact:

Re: ICE! extractor from .ST disk images

Post by Mug UK »

The 2nd long was, from memory, what the unpacked file size *should* be.
My main site: http://www.mug-uk.co.uk - slowly digging up the bits from my past (and re-working a few): Atari ST, Sega 8-bit (game hacks) and NDS (Music ripping guide).

I develop a free Word (for Windows) add-in that's available for Word 2007 upwards. It's a fix-it toolbox that will allow power Word users to fix document errors. You can find it at: http://www.mikestoolbox.co.uk
Post Reply

Return to “Other emulators & tools”