| |
tlr
Registered: Sep 2003 Posts: 1723 |
Test-file generator?
Has anyone written a generic test-file generator for testing loaders/savers?
Preferably generating files of arbitrary length and start-address containing random data and a self checker.
I want to test some turbos, and want to quickly be able to see if there are errors with different timings and end alignments.
|
|
| |
Oswald
Registered: Apr 2002 Posts: 5025 |
why doesnt some random one filer games do ? writing such generator on PC and then xferring to c64 is a piece of cake aswell. |
| |
tlr
Registered: Sep 2003 Posts: 1723 |
Quote: why doesnt some random one filer games do ? writing such generator on PC and then xferring to c64 is a piece of cake aswell.
Absolutely, but I don't want to write another one if there already is one perfectly good. ;)
One long file will work for testing timing, though you cannot always be sure it doesn't start if there are very few bit errors.
I also need to exercise end offset alignment within the last block and stuff like that, so I need to have a selection different lengths.
I'll write a small generator if there isn't one. |
| |
chatGPZ
Registered: Dec 2001 Posts: 11136 |
dd if=/dev/random
? |
| |
Style
Registered: Jun 2004 Posts: 498 |
groepaz: try dd if=/dev/urandom
Dont wanna deplete the entropy pool unncecessarily :)
|
| |
tlr
Registered: Sep 2003 Posts: 1723 |
Quote: dd if=/dev/random
?
:)
It somehow misses to output a self checker (atleast most of the time).
|
| |
chatGPZ
Registered: Dec 2001 Posts: 11136 |
thats pretty trivial to code though :) |
| |
Style
Registered: Jun 2004 Posts: 498 |
errm, append the CRC32 to the end or something?
|