The post you guys are thinking back to is The Dumper's. Here's his source:
You'll still need to rewire a few lines (I forget which)
Code:
#include <iostream>
#include <fstream.h>
#define BITSIZE 1*1024*1024
static unsigned char bitsIn[BITSIZE];
static unsigned char bitsOut[BITSIZE];
int main( int argc, char **argv )
{
unsigned int addrIn, addrOut;
unsigned char c1;
if( argc != 3 )
{
cout << "Usage: " << argv[0] << " infile outfile" << endl;
return 1;
}
ifstream ifile( argv[1], ios::in | ios::binary | ios::nocreate );
if( ifile.fail() )
{
cout << "Error - Input file " << argv[1] << " not found" << endl;
return 2;
}
ofstream ofile( argv[2], ios::trunc|ios::binary );
addrIn = 0;
while( ifile.get(c1) )
{
if( addrIn >= sizeof(bitsIn) )
{
cout << "Error - bits array too small" << endl;
break;
}
bitsIn[addrIn++] = c1;
}
for( addrIn = 0 ; addrIn < sizeof(bitsIn); addrIn++ )
{
addrOut = addrIn;
addrOut &= ~0xf0000; // Strip bits 16,17,18,19
// Swap address bits to match Nintendo pinout
if( addrIn & 0x10000 )
addrOut |= 0x40000;
if( addrIn & 0x20000 )
addrOut |= 0x80000;
if( addrIn & 0x40000 )
addrOut |= 0x10000;
if( addrIn & 0x80000 )
addrOut |= 0x20000;
bitsOut[addrOut] = bitsIn[addrIn];
}
for( addrOut = 0 ; addrOut < sizeof(bitsOut); addrOut++ )
{
ofile.put( bitsOut[addrOut] );
}
ifile.close();
ofile.close();
return 0;
}

![[IMG]](https://web.archive.org/web/2im_/http://kogami02.free.fr/Boite/StarFox_2_JPN_Boite.jpg)
![[IMG]](https://web.archive.org/web/2im_/http://kogami02.free.fr/Boite/StarFox_2_Boite_1.jpg)