mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
maygay1b.cpp: fixed MT06137 (nw)
This commit is contained in:
parent
a8c8ec182f
commit
d2759d9bcd
2 changed files with 4 additions and 4 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue