/*
 INES Mapper 185
 is used for games that use the CNROM board with weak copy protection measures.
 2018-09-27
 test for B-Wings(Japan)
 2019-06-10
 Support crc detecd games.
*/
function cpu_dump(d, prg_size, prg_size_dummy)
{
	if(prg_size==0x4000)
		cpu_read(d, 0xc000, 0x4000);
	else//32k
		cpu_read(d, 0x8000, 0x8000);
}
function ppu_dump(d, chr_size, rst_crc)
{
	//Mighty Bomb Jack
	//if(prg_crc==0xaa755715)
	if( rst_crc==0x360f5e91 )
	{
		cpu_write(d,0x8071,0x00);
		cpu_write(d,0x8072,0x11);
	}
	else if(rst_crc==0xd3ec0e32)
	{
		cpu_write(d,0x8074,0x00);
		cpu_write(d,0x8075,0x11);
	}
	//Sansuu 1
	//else if(prg_crc==0x87a3f91e)
	else if(rst_crc==0x86c579a4)
	{
		cpu_write(d,0x805C,0x20);
		cpu_write(d,0x805D,0x22);
	}
	//Sansuu 2
	//else if(prg_crc==0xdaadebfa)
	else if(rst_crc==0x3541f851)
	{
		cpu_write(d,0x803F,0x20);
		cpu_write(d,0x8040,0x22);
	}
	//Sansuu 3
	//else if(prg_crc==0x73de64ad)
	else if(rst_crc==0x92c75fea)
	{
		cpu_write(d,0x805C,0x00);
		cpu_write(d,0x805D,0x2A);
	}
	//Spy Vs Spy
	//else if(prg_crc==0xb36457c7)
	else if(rst_crc==0xd4e27f8a)
	{
		cpu_write(d,0x8090,0x13);
		cpu_write(d,0x8091,0x21);
	}
	//Bird Week
	//else if(prg_crc==0x2a629f7d)
	else if(rst_crc==0x7746f67a)
	{
		cpu_write(d,0xC020,0xF0);
		cpu_write(d,0xC021,0x0F);
	}
	//Othello(??)
	//else if(prg_crc==0x81a743f5)
	else if(rst_crc==0x2756a8a6)
	{
		cpu_write(d,0x805C,0x20);
		cpu_write(d,0x805D,0x22);
	}
	//B-Wings
	//else if(prg_crc==0x725d5cc4)
	else if(rst_crc==0x997e33f2)
	{
		cpu_write(d,0xB69F,0x00);
		cpu_write(d,0xB69E,0x33);
	}
	//Seicross
	//else if(prg_crc==0xa03c98a7)
	else if(rst_crc==0x2831d065)
	{
		cpu_write(d,0x80DF,0x21);
		cpu_write(d,0x80DE,0x20);
	}
	else{
		//..** ..**
		//
		cpu_write(d,0x8010,0x20);
		cpu_write(d,0x8011,0x22);
	}
	
	ppu_read(d,0x0000, 0x2000);
}