/***************************************
 VRC3 Mapper73 Not Test
***************************************/
function cpu_dump(d, prg_size, banksize)
{
	for(local i = 0; i < (prg_size/0x4000) - 1; i += 1){
		cpu_write(d, 0xf000, i);
		cpu_read(d, 0x8000, 0x4000);
	}
	cpu_write(d, 0xf000, 1 << 3);
	cpu_read(d, 0xc000, 0x4000);
}
function cpu_erase(d, prg_size, prg_size_dummy)
{
	cpu_write_flash(d,0x8555,0xF0);
	cpu_write_flash(d,0x8555,0xAA);
	cpu_write_flash(d,0x8AAA,0x55);
	cpu_write_flash(d,0x8555,0x80);
	cpu_write_flash(d,0x8555,0xAA);
	cpu_write_flash(d,0x8AAA,0x55);
	cpu_write_flash(d,0x8555,0x10);
}
function cpu_flash(d, prg_size, prg_size_dummy)
{
	flash_configure(d,0xC555,0xC555,0xCAAA,0xC555);

	for(local i = 0; i < (prg_size/0x4000)-1; i += 1){
		cpu_write(d, 0xF000, i);
		prg_flash(d, 0x8000, 0x4000);
	}
	prg_flash(d, 0xc000, 0x2000 * 2)
}
function ppu_dump(d, chr_size, chr_size_dummy)
{
}