diff options
Diffstat (limited to 'src/mame/drivers/aristmk4.cpp')
-rw-r--r-- | src/mame/drivers/aristmk4.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/mame/drivers/aristmk4.cpp b/src/mame/drivers/aristmk4.cpp index 3c2b35a11e9..e1bf7fe0639 100644 --- a/src/mame/drivers/aristmk4.cpp +++ b/src/mame/drivers/aristmk4.cpp @@ -97,7 +97,7 @@ The VIA uses Port A to write to the D0-D7 on the AY8910s. Port B hooks first 4 bits up to BC1/BC2/BDIR and A9 on AY1 and A8 on AY2 The remaining 4 bits are connected to other hardware, read via the VIA. - The AY8910 named ay1 has writes on PORT B to the ZN434 DA convertor. + The AY8910 named ay1 has writes on PORT B to the ZN434 DA converter. The AY8910 named ay2 has writes to lamps and the light tower on Port A and B. these are implemented via the layout @@ -680,7 +680,7 @@ READ8_MEMBER(aristmk4_state::mkiv_pia_ina) { /* uncomment this code once RTC is fixed */ - //return m_rtc->read(space,1); + //return m_rtc->read(1); return 0; // OK for now, the aussie version has no RTC on the MB so this is valid. } @@ -689,12 +689,12 @@ WRITE8_MEMBER(aristmk4_state::mkiv_pia_outa) { if(m_rtc_data_strobe) { - m_rtc->write(space,1,data); + m_rtc->write(1,data); //logerror("rtc protocol write data: %02X\n",data); } else { - m_rtc->write(space,0,data); + m_rtc->write(0,data); //logerror("rtc protocol write address: %02X\n",data); } } @@ -798,13 +798,13 @@ READ8_MEMBER(aristmk4_state::via_a_r) if (m_ay8910_1&0x03) // SW1 read. { - psg_ret = m_ay1->data_r(space, 0); + psg_ret = m_ay1->data_r(); //logerror("PSG porta ay1 returned %02X\n",psg_ret); } else if (m_ay8910_2&0x03) //i don't think we read anything from Port A on ay2, Can be removed once game works ok. { - psg_ret = m_ay2->data_r(space, 0); + psg_ret = m_ay2->data_r(); //logerror("PSG porta ay2 returned %02X\n",psg_ret); } return psg_ret; @@ -898,13 +898,13 @@ WRITE8_MEMBER(aristmk4_state::via_b_w) break; case 0x06: //WRITE { - m_ay1->data_w(space, 0 , m_psg_data); + m_ay1->data_w(m_psg_data); //logerror("VIA Port A write data ay1: %02X\n",m_psg_data); break; } case 0x07: //LATCH Address (set register) { - m_ay1->address_w(space, 0 , m_psg_data); + m_ay1->address_w(m_psg_data); //logerror("VIA Port B write register ay1: %02X\n",m_psg_data); break; } @@ -925,13 +925,13 @@ WRITE8_MEMBER(aristmk4_state::via_b_w) break; case 0x06: //WRITE { - m_ay2->data_w(space, 0, m_psg_data); + m_ay2->data_w(m_psg_data); //logerror("VIA Port A write data ay2: %02X\n",m_psg_data); break; } case 0x07: //LATCH Address (set register) { - m_ay2->address_w(space, 0, m_psg_data); + m_ay2->address_w(m_psg_data); //logerror("VIA Port B write register ay2: %02X\n",m_psg_data); break; } @@ -1511,10 +1511,10 @@ static INPUT_PORTS_START(cgold2) PORT_MODIFY("500e") PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_NAME("Play 1 Line") PORT_CODE(KEYCODE_W) - PORT_MODIFY("via_port_b") - PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_GAMBLE_D_UP ) PORT_NAME("Test1") PORT_CODE(KEYCODE_2) // coin optic 1? - PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_GAMBLE_TAKE ) PORT_NAME("Test2") PORT_CODE(KEYCODE_3) // coin optic 2? - PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_GAMBLE_HIGH ) PORT_NAME("Test3") PORT_CODE(KEYCODE_4) // coin to cashbox? + PORT_MODIFY("5201") + PORT_DIPNAME( 0x10, 0x10, "5201-5") // Must be "on" otherwise the game will not respond + PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) PORT_DIPLOCATION("5201:5") + PORT_DIPSETTING( 0x10, DEF_STR( On ) ) INPUT_PORTS_END static INPUT_PORTS_START(fhunter) @@ -1770,10 +1770,10 @@ void aristmk4_state::power_fail() To enter the robot test 1. Open the main door - 2. Trigger powerfail / NMI by presing L for at least 1 second, the game will freeze. + 2. Trigger powerfail / NMI by pressing ',' for at least 1 second, the game will freeze. 3. Press F3 ( reset ) whilst holding down robot/hopper test button ( Z ) - Note: The use of 1 Hz in the timer is to avoid unintentional triggering the NMI ( ie.. hold down L for at least 1 second ) + Note: The use of 1 Hz in the timer is to avoid unintentional triggering the NMI ( ie.. hold down ',' for at least 1 second ) */ if(ioport("powerfail")->read()) // send NMI signal if L pressed |