maygay1b.cpp: fixed MT06137 (nw)

This commit is contained in:
Ivan Vangelista 2016-02-09 14:47:55 +01:00
parent a8c8ec182f
commit d2759d9bcd
2 changed files with 4 additions and 4 deletions

View file

@ -709,9 +709,7 @@ DRIVER_INIT_MEMBER(maygay1b_state,m1)
//AM_RANGE(0x2420, 0x2421) AM_WRITE(latch_ch2_w ) // oki
// if there is no OKI region disable writes here, the rom might be missing, so alert user
UINT8 *okirom = memregion( "msm6376" )->base();
if (!okirom) {
if (m_oki_region == nullptr) {
m_maincpu->space(AS_PROGRAM).install_write_handler(0x2420, 0x2421, write8_delegate(FUNC(maygay1b_state::m1ab_no_oki_w), this));
}
}

View file

@ -53,7 +53,8 @@ public:
m_reel3(*this, "reel3"),
m_reel4(*this, "reel4"),
m_reel5(*this, "reel5"),
m_meters(*this, "meters")
m_meters(*this, "meters"),
m_oki_region(*this, "msm6376")
{}
required_device<cpu_device> m_maincpu;
@ -79,6 +80,7 @@ public:
required_device<stepper_device> m_reel4;
required_device<stepper_device> m_reel5;
required_device<meters_device> m_meters;
optional_region_ptr<UINT8> m_oki_region;
UINT8 m_lamppos;
int m_lamp_strobe;