@delroth 
"// Nintendo format algorithm.
 +	// Constants are fixed by the GC SDK
 +	// Changing the constants will break memorycard support"
The code basically simulates the "unlock" dsp ucode, and corresponding ppc code to initialize a memcard.