Rewrite mapper 134 emulation for simplicity. Fix WRAM-using games. Remove leftover code from mmc3.c. Initialize the Frame IRQ register only on power-on reset, not soft-reset, which is necessary for two multicarts.

This commit is contained in:
NewRisingSun
2022-02-19 12:53:26 +01:00
parent f27adb5209
commit 53bca8e9bf
7 changed files with 101 additions and 302 deletions

View File

@@ -1028,7 +1028,6 @@ due to that whole MegaMan 2 Game Genie thing.
void FCEUSND_Reset(void) {
int x;
IRQFrameMode = 0x0;
fhcnt = fhinc;
fcnt = 0;
nreg = 1;
@@ -1079,6 +1078,7 @@ void FCEUSND_Power(void) {
for (x = 0; x < 5; x++)
ChannelBC[x] = 0;
soundtsoffs = 0;
IRQFrameMode = 0x0; /* Only initialized by power-on reset, not by soft reset */
LoadDMCPeriod(DMCFormat & 0xF);
}