Talk:INES Mapper 221

From NESdev Wiki
Jump to navigationJump to search

Something wrong

Mapper #221 on this page and mapper #221 emulated by fceux (https://github.com/TASVideos/fceux/blob/master/src/boards/n625092.cpp) are two totally different mappers. I dumped "NEW MIXED GAME CARD 40000 IN 1" using this code:

           dumper.WriteCpu((ushort)(0x8000 | ((bank & 0b11111000) << 2)), 0x00);
           dumper.WriteCpu((ushort)(0xFFF0 | (bank & 0b00000111)), 0x00);
           data.AddRange(dumper.ReadCpu(0x8000, 0x4000));

It works in fceux but seems like the fceux emulation code is not correct too because this dumping code is not working:

           dumper.WriteCpu((ushort)(0x8000 | (bank << 2)), 0x00);
           dumper.WriteCpu(0xFFF0, 0x00);
           data.AddRange(dumper.ReadCpu(0x8000, 0x4000));

Cluster (talk) 14:06, 14 August 2021 (UTC)