/*
 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)
*/
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, chr_size_dummy)
{
	local select = 3; //edit here to select game.
	
	if(select==0){
	//for B-Wings
	cpu_write(d,0xB69F,0x00);
	cpu_write(d,0xB69F,0x33);
	}
	
	else if(select==2){
	//Bird Week
	cpu_write(d,0xC020,0xF0);
	cpu_write(d,0xC021,0x0F);
	}
	
	else if(select==3){
	//Mighty Bomb Jack 
	cpu_write(d,0x8071,0x00);
	cpu_write(d,0x8072,0x11);
	}
	
	else if(select==4){
	//Sansuu 1 Nen - Keisan Game
	//Othell
	cpu_write(d,0x805C,0x20);
	cpu_write(d,0x805D,0x22);
	}
	
	else if(select==5){
	//Sansuu 3 Nen - Keisan Game
	cpu_write(d,0x805C,0x00);
	cpu_write(d,0x805D,0x2A);
	}
	
	else if(select==6){
	//Spy vs Spy
	cpu_write(d,0x8090,0x13);
	cpu_write(d,0x8091,0x21);
	}
	
	else if(select==7){
	//Seicross
	cpu_write(d,0x80DF,0x21);
	cpu_write(d,0x80DF,0x20);
	}
	
	
	ppu_read(d,0x0000, 0x2000);
}