/*************************************** Mapper 206 ***************************************/ function cpu_dump(d, prg_size, banksize) { /* for(local i = 0; i < (prg_size/0x2000) - 1; i += 1){ cpu_write(d, 0x8000, 6); cpu_write(d, 0x8001, i); cpu_read(d, 0x8000, 0x2000); //can not bank,why? } cpu_read(d, 0xE000, 0x2000); */ //The game Babel no Tou, on the PCB 3401, is the only game with 32 KiB PRG that allows—and uses!—PRG banking. All other games with 32 KiB PRG connect CPU A13 and CPU A14 directly to the PRG ROM, but fortunately they initialize their PRG registers to work on a normal board. Because all six games can be correctly emulated by respecting the PRG banking registers, it seems no submapper needs to be allocated for this variation. //It means no bank for PRG? //same as /* if(prg_size<=0x8000) cpu_read(d, 0x10000-prg_size, prg_size); else */ for(local i = 0; i < (prg_size/0x2000) - 2; i += 2){ cpu_write(d, 0x8000, 6,0x8001, i,0x8000, 7,0x8001, i|1); cpu_read(d, 0x8000, 0x4000); } cpu_read(d, 0xc000, 0x2000 * 2); } function ppu_dump(d, chr_size, banksize) { for(local i = 0; i < chr_size/0x400; i+=4){ cpu_write(d, 0x8000,2,0x8001, i, 0x8000, 3,0x8001, i | 1); cpu_write(d, 0x8000,4,0x8001, i|2,0x8000, 5,0x8001, i | 3); ppu_read(d, 0x1000, 0x400 * 4); } }