and one more (nw)

This commit is contained in:
Miodrag Milanovic 2013-04-14 09:18:43 +00:00
parent ee30ffbc29
commit ddbc60deb2
2 changed files with 7 additions and 8 deletions

View File

@ -775,23 +775,20 @@ WRITE8_MEMBER(maygay1b_state::m1_latch_w)
WRITE8_MEMBER(maygay1b_state::latch_ch2_w)
{
device_t *msm6376 = machine().device("msm6376");
okim6376_w(msm6376, space, 0, data&0x7f);
okim6376_ch2_w(msm6376,data&0x80);
okim6376_w(m_msm6376, space, 0, data&0x7f);
okim6376_ch2_w(m_msm6376,data&0x80);
}
//A strange setup this, the address lines are used to move st to the right level
READ8_MEMBER(maygay1b_state::latch_st_hi)
{
device_t *msm6376 = machine().device("msm6376");
okim6376_st_w(msm6376,1);
okim6376_st_w(m_msm6376,1);
return 0;
}
READ8_MEMBER(maygay1b_state::latch_st_lo)
{
device_t *msm6376 = machine().device("msm6376");
okim6376_st_w(msm6376,0);
okim6376_st_w(m_msm6376,0);
return 0;
}

View File

@ -42,7 +42,8 @@ public:
maygay1b_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
m_vfd(*this, "vfd"),
m_maincpu(*this, "maincpu") {
m_maincpu(*this, "maincpu"),
m_msm6376(*this, "msm6376") {
m_NMIENABLE = 0;
}
@ -84,4 +85,5 @@ public:
void update_outputs(i8279_state *chip, UINT16 which);
void m1_stepper_reset();
required_device<cpu_device> m_maincpu;
optional_device<okim6376_device> m_msm6376;
};