Huh, weird.lidnariq wrote:You could PM me the bad dump and maybe I'll be able to figure out what's going wrong.
The literal contents of that dump are
bank 0, bank 0, bank 0, bank 0
bank 1, bank 1, bank 1, bank 1
bank 2, bank 2, bank 2, bank 2
bank 3, bank 3, bank 3, bank 15
... derp. That's actually exactly what our documentation for mapper 82 says it does. Sorry!
Use these lines:
Code: Select all
for(i = 0; i < pagesize - 2; i += 2){
cpu_write(d, 0x7efa, i << 2);
cpu_write(d, 0x7efc, (i | 1) << 2);
cpu_read(d, 0x8000, banksize * 2);
}
cpu_write(d, 0x7efe, i << 2);