mirror of
https://github.com/libretro/Mesen.git
synced 2024-11-23 17:19:39 +00:00
MMC1: Fixed MMC1 not working properly w/ random mapper init state option
This commit is contained in:
parent
0dccbf49c9
commit
e73abef7ee
@ -179,7 +179,7 @@ class MMC1 : public BaseMapper
|
||||
|
||||
virtual void InitMapper() override
|
||||
{
|
||||
_state.Reg8000 = GetPowerOnByte(0x0C); //On powerup: bits 2,3 of $8000 are set (this ensures the $8000 is bank 0, and $C000 is the last bank - needed for SEROM/SHROM/SH1ROM which do no support banking)
|
||||
_state.Reg8000 = GetPowerOnByte() | 0x0C; //On powerup: bits 2,3 of $8000 are set (this ensures the $8000 is bank 0, and $C000 is the last bank - needed for SEROM/SHROM/SH1ROM which do no support banking)
|
||||
_state.RegA000 = GetPowerOnByte();
|
||||
_state.RegC000 = GetPowerOnByte();
|
||||
_state.RegE000 = (_databaseInfo.Board.find("MMC1B") != string::npos ? 0x10 : 0x00); //WRAM Disable: enabled by default for MMC1B
|
||||
|
Loading…
Reference in New Issue
Block a user