MiSTer-devel / NES_MiSTer

GNU General Public License v3.0
169 stars 73 forks source link

Issues with MMC5 on PAL systems? #359

Open r-bengtsson opened 1 year ago

r-bengtsson commented 1 year ago

There seems to be a bug with the MMC5 emulation on PAL systems. Graphics are garbled or missing.

The only PAL game with MMC5 are Castlevania III, and it has garbled graphics on the title screen (the cross selector has extra lines), name select screen (the selector has the same problem), Trevor Belmont praying in front of the big cross also has those extra lines. When the first level starts, the level data is all garbled and display random data from the chr.

When emulation is switched from PAL to NTSC, the game is displayed correctly (but with sped up sound ofc).

The ROM are verified with the No-Intro DAT Nintendo - Nintendo Entertainment System (Headered) (20230710-041933).dat and is named Castlevania III - Dracula's Curse (Europe).nes The header are iNES 2.0 (hex): 4E 45 53 1A 10 10 50 08 00 00 00 00 01 00 00 01

The ROM I use works perfectly in Mesen v2.0.0, Nestopia UE vx.xx and FCEUX 2.2.3

Apparantly (I have not tested this myself), other MMC5 games (USA/Japan) suffer of similar problems if played in PAL mode.

Timing issues on PAL? 20230725_222514

ClassicGamerRG commented 10 months ago

The game is working well in 22.02.12 version but broken since 22.03.26. @paulb-nl maybe it's related to this MMC5 change : https://github.com/MiSTer-devel/NES_MiSTer/commit/d2fc19c375c8c53ab9aebc30fdaab463e3590445 ?

paulb-nl commented 10 months ago

This was already fixed in July but it is not released yet.

https://github.com/MiSTer-devel/NES_MiSTer/commit/b664390369f2276436dddcc22eb97fe59784df1a