Well now, here ya go ppl, you can now check, generate, patch your rom files
at will. This little proggie takes a rom, and generates the CRC bytes used
by the N64 to validate it.

!!!WARNING!!!
The program assumes the rom is in big endian format, NOT the byte swapped
like the Doctor 64 does... Use my swapper if needed...
!!!END OF WARNING!!!

Algorithm is quite simple, only DAMN, is that you need a seed value. Luckily
i found it out, and it seems to be the same across all roms.
The algorithm is a mixture of XOR, some sums, and shifts... Converting the
MiPS asm to C, is rather simple. Getting the seed was the hardest.
Also, only the first megabyte of the program is checked (offset 000010000,
till 00101000).

See ya around...

(c) Nagra, 09 April 1997
