And one more question, I have a multicart which is maybe use mapper 332, but i can't do a fully dump. Can someone help?
This is my mapper 332 script:
function cpu_dump(d, prg_size, banksize)
{
for (local i = 0x08; i < 0x10; i += 0x01) {
cpu_write(d, 0x6000, i &0x07);
cpu_read(d, 0x8000, 0x4000);
cpu_read(d, 0xC000, 0x4000);
}
for(local j = 0x48; j < 0x50; j += 0x01){
cpu_write(d, 0x6000, j &0x07 | j >>3 &0x08);
cpu_read(d, 0x8000, 0x4000);
cpu_read(d, 0xC000, 0x4000);
}
}
function ppu_dump(d, chr_size, banksize)
{
for (local i = 0x20; i < 0x28; i += 0x01) {
cpu_write(d, 0x6001, i &0x07);
ppu_read(d, 0x0000, 0x2000);
}
local j = 0x48;
cpu_write(d, 0x6000, j);
for (local i = 0x20; i < 0x28; i += 0x01) {
cpu_write(d, 0x6001, i &0x07);
ppu_read(d, 0x0000, 0x2000);
}
}