Talk:INES Mapper 221

From NESdev Wiki
Revision as of 14:06, 14 August 2021 by Cluster (talk | contribs) (Created page with "=== 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 diff...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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));

And seems like the fceux emulation code is not correct too because this code not works:

           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)