Utility for checking .CAS files
Posted: Thu Dec 02, 2010 2:01 pm
Hi, everybody!
A couple of nights ago I was trying to recover a damaged .cas file, and I had to check the blocks of data against its crc, so I wrote a small program that checks the .CAS file structure and integrity of the data blocks.
Not that the error correction algorithm of the Dragon tapes is something wonderful, but it may help to detect errors.
I've kept it super simple as a command line tool and the source code compiles unmodified under Windows and Linux (and maybe MacOSX, but In havent't tried yet). It lists the blocks in the .CAS file along with the block type, length and CRC value. In case of an error, the actual CRC value is calculated (along with the CRC value stored on the block), so you can try to fix the damaged block(s).
If anybody is interested, I'll upload tonight the source code and compiled Win32 and Linux x86 32 bit versions.
Have a nice day!
A couple of nights ago I was trying to recover a damaged .cas file, and I had to check the blocks of data against its crc, so I wrote a small program that checks the .CAS file structure and integrity of the data blocks.
Not that the error correction algorithm of the Dragon tapes is something wonderful, but it may help to detect errors.
I've kept it super simple as a command line tool and the source code compiles unmodified under Windows and Linux (and maybe MacOSX, but In havent't tried yet). It lists the blocks in the .CAS file along with the block type, length and CRC value. In case of an error, the actual CRC value is calculated (along with the CRC value stored on the block), so you can try to fix the damaged block(s).
If anybody is interested, I'll upload tonight the source code and compiled Win32 and Linux x86 32 bit versions.
Have a nice day!