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.
ICE! extractor from .ST disk images
Moderators: Mug UK, Moderator Team
ICE! extractor from .ST disk images
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).
Hardware: Cumana CSA 354, Ultimate Ripper, Blitz Turbo, Synchro Express II (US and UK Versions).
- prog99
- 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
Does your extractor assume the files are stored in contiguous sectors on the disk image?
All my real skills are undervalued
- Mug UK
- Administrator
- Posts: 11751
- Joined: Thu Apr 29, 2004 7:16 pm
- Location: Stockport (UK)
- Contact:
Re: ICE! extractor from .ST disk images
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.
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
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
Re: ICE! extractor from .ST disk images
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.
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).
Hardware: Cumana CSA 354, Ultimate Ripper, Blitz Turbo, Synchro Express II (US and UK Versions).
- Mug UK
- Administrator
- Posts: 11751
- Joined: Thu Apr 29, 2004 7:16 pm
- Location: Stockport (UK)
- Contact:
Re: ICE! extractor from .ST disk images
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
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