mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
fix mitchell.cpp nvram saving [D. Haywood]
This commit is contained in:
parent
fc0a2a32e0
commit
8cb689e7ac
@ -2303,27 +2303,27 @@ DRIVER_INIT_MEMBER(mitchell_state,hatena)
|
||||
DRIVER_INIT_MEMBER(mitchell_state,spang)
|
||||
{
|
||||
m_input_type = 3;
|
||||
m_nvram->set_base(&memregion("maincpu")->base()[0xe000], 0x80); /* NVRAM */
|
||||
m_nvram->set_base(m_mainram, m_mainram.bytes());
|
||||
configure_banks(spang_decode);
|
||||
}
|
||||
|
||||
DRIVER_INIT_MEMBER(mitchell_state,spangbl)
|
||||
{
|
||||
m_input_type = 3;
|
||||
m_nvram->set_base(&memregion("maincpu")->base()[0xe000], 0x80); /* NVRAM */
|
||||
m_nvram->set_base(m_mainram, m_mainram.bytes());
|
||||
bootleg_decode();
|
||||
}
|
||||
|
||||
DRIVER_INIT_MEMBER(mitchell_state,spangj)
|
||||
{
|
||||
m_input_type = 3;
|
||||
m_nvram->set_base(&memregion("maincpu")->base()[0xe000], 0x80); /* NVRAM */
|
||||
m_nvram->set_base(m_mainram, m_mainram.bytes());
|
||||
configure_banks(spangj_decode);
|
||||
}
|
||||
DRIVER_INIT_MEMBER(mitchell_state,sbbros)
|
||||
{
|
||||
m_input_type = 3;
|
||||
m_nvram->set_base(&memregion("maincpu")->base()[0xe000], 0x80); /* NVRAM */
|
||||
m_nvram->set_base(m_mainram, m_mainram.bytes());
|
||||
configure_banks(sbbros_decode);
|
||||
}
|
||||
DRIVER_INIT_MEMBER(mitchell_state,qtono1)
|
||||
@ -2367,13 +2367,13 @@ DRIVER_INIT_MEMBER(mitchell_state,marukin)
|
||||
DRIVER_INIT_MEMBER(mitchell_state,block)
|
||||
{
|
||||
m_input_type = 2;
|
||||
m_nvram->set_base(&memregion("maincpu")->base()[0xff80], 0x80); /* NVRAM */
|
||||
m_nvram->set_base(m_mainram, m_mainram.bytes());
|
||||
configure_banks(block_decode);
|
||||
}
|
||||
DRIVER_INIT_MEMBER(mitchell_state,blockbl)
|
||||
{
|
||||
m_input_type = 2;
|
||||
m_nvram->set_base(&memregion("maincpu")->base()[0xff80], 0x80); /* NVRAM */
|
||||
m_nvram->set_base(m_mainram, m_mainram.bytes());
|
||||
bootleg_decode();
|
||||
}
|
||||
|
||||
|
@ -30,6 +30,7 @@ public:
|
||||
m_soundlatch(*this, "soundlatch"),
|
||||
m_colorram(*this, "colorram"),
|
||||
m_videoram(*this, "videoram"),
|
||||
m_mainram(*this, "ram"),
|
||||
m_bank1(*this, "bank1"),
|
||||
m_bank0d(*this, "bank0d"),
|
||||
m_bank1d(*this, "bank1d"),
|
||||
@ -50,6 +51,7 @@ public:
|
||||
/* memory pointers */
|
||||
required_shared_ptr<uint8_t> m_colorram;
|
||||
required_shared_ptr<uint8_t> m_videoram;
|
||||
optional_shared_ptr<uint8_t> m_mainram;
|
||||
required_memory_bank m_bank1;
|
||||
optional_memory_bank m_bank0d;
|
||||
optional_memory_bank m_bank1d;
|
||||
|
Loading…
Reference in New Issue
Block a user