Talk:INES Mapper 221: Difference between revisions

From NESdev Wiki
Jump to navigationJump to search
(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...")
 
No edit summary
 
Line 5: Line 5:
             data.AddRange(dumper.ReadCpu(0x8000, 0x4000));
             data.AddRange(dumper.ReadCpu(0x8000, 0x4000));


And seems like the fceux emulation code is not correct too because this code not works:
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((ushort)(0x8000 | (bank << 2)), 0x00);
             dumper.WriteCpu(0xFFF0, 0x00);
             dumper.WriteCpu(0xFFF0, 0x00);
             data.AddRange(dumper.ReadCpu(0x8000, 0x4000));
             data.AddRange(dumper.ReadCpu(0x8000, 0x4000));


[[User:Cluster|Cluster]] ([[User talk:Cluster|talk]]) 14:06, 14 August 2021 (UTC)
[[User:Cluster|Cluster]] ([[User talk:Cluster|talk]]) 14:06, 14 August 2021 (UTC)

Latest revision as of 14:07, 14 August 2021

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)