mirror of
https://github.com/holub/mame
synced 2025-10-06 17:08:28 +03:00
Removed fake options that were added in prev commit, this is unwanted.
Friendly note to the external submitter: if you don't want it to play those samples, simply move them out of the "samples" folder.
This commit is contained in:
parent
d932860d37
commit
ac279106ca
@ -87,12 +87,6 @@
|
|||||||
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 convertor.
|
||||||
The AY8910 named ay2 has writes to lamps and the light tower on Port A and B. these are implemented via the layout
|
The AY8910 named ay2 has writes to lamps and the light tower on Port A and B. these are implemented via the layout
|
||||||
|
|
||||||
11/12/13 - Lord-Data
|
|
||||||
Added 3 DIP switch settings to configure behaviour:
|
|
||||||
Option to raise outputs for physical meters to be used
|
|
||||||
Option to disable making sound effects for emulated meters
|
|
||||||
Option to disable virtual emulation of hopper/coin release system
|
|
||||||
|
|
||||||
27/04/10 - FrasheR
|
27/04/10 - FrasheR
|
||||||
2 x Sound Chips connected to the 6522 VIA.
|
2 x Sound Chips connected to the 6522 VIA.
|
||||||
|
|
||||||
@ -176,6 +170,9 @@
|
|||||||
Promoted Fortune Hunter and clone to working status, as they were in fact working for quite a while.
|
Promoted Fortune Hunter and clone to working status, as they were in fact working for quite a while.
|
||||||
Fixed ROM names for kgbird/kgbirda; 5c and 10c variants were mixed up.
|
Fixed ROM names for kgbird/kgbirda; 5c and 10c variants were mixed up.
|
||||||
|
|
||||||
|
11/12/13 - Lord-Data
|
||||||
|
Added hopper and meter outputs.
|
||||||
|
|
||||||
****************************************************************************
|
****************************************************************************
|
||||||
|
|
||||||
When the games first power on (or when reset), they will display a TILT message on the screen. This doesn't affect gameplay, and if there are no pending errors the game should coin up and/or play immediately.
|
When the games first power on (or when reset), they will display a TILT message on the screen. This doesn't affect gameplay, and if there are no pending errors the game should coin up and/or play immediately.
|
||||||
@ -620,11 +617,10 @@ WRITE8_MEMBER(aristmk4_state::mkiv_pia_outb)
|
|||||||
{
|
{
|
||||||
if(emet[i])
|
if(emet[i])
|
||||||
{
|
{
|
||||||
//logerror("Mechanical meter %d pulse: %02d\n",i+1, emet[i]);
|
//logerror("Mechanical meter %d pulse: %02d\n",i+1, emet[i]);
|
||||||
if ((ioport("OPMDIP")->read() & 0x01) == 1)
|
// Output Physical Meters
|
||||||
|
switch(i+1)
|
||||||
{
|
{
|
||||||
switch(i+1)
|
|
||||||
{
|
|
||||||
case 4:
|
case 4:
|
||||||
output_set_value("creditspendmeter", emet[i]);
|
output_set_value("creditspendmeter", emet[i]);
|
||||||
break;
|
break;
|
||||||
@ -634,19 +630,15 @@ WRITE8_MEMBER(aristmk4_state::mkiv_pia_outb)
|
|||||||
default:
|
default:
|
||||||
printf("Unhandled Mechanical meter %d pulse: %02d\n",i+1, emet[i]);
|
printf("Unhandled Mechanical meter %d pulse: %02d\n",i+1, emet[i]);
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
if ((ioport("MeterSNDDIP")->read() & 0x01) == 1)
|
|
||||||
|
m_samples->start(i,0); // pulse sound for mechanical meters
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// if there is not a value set, this meter is not active, reset output to 0
|
||||||
|
switch(i+1)
|
||||||
{
|
{
|
||||||
m_samples->start(i,0); // pulse sound for mechanical meters
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if ((ioport("OPMDIP")->read() & 0x01) == 1)
|
|
||||||
{
|
|
||||||
//if there is not a value set, this meter is not active, reset output to 0
|
|
||||||
switch(i+1)
|
|
||||||
{
|
|
||||||
case 4:
|
case 4:
|
||||||
output_set_value("creditspendmeter", 0);
|
output_set_value("creditspendmeter", 0);
|
||||||
break;
|
break;
|
||||||
@ -655,7 +647,6 @@ WRITE8_MEMBER(aristmk4_state::mkiv_pia_outb)
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -689,10 +680,8 @@ TIMER_CALLBACK_MEMBER(aristmk4_state::coin_input_reset)
|
|||||||
|
|
||||||
TIMER_CALLBACK_MEMBER(aristmk4_state::hopper_reset)
|
TIMER_CALLBACK_MEMBER(aristmk4_state::hopper_reset)
|
||||||
{
|
{
|
||||||
m_hopper_motor=0x01;
|
m_hopper_motor = 0x01;
|
||||||
if ((ioport("HopperDIP")->read() & 0x01) != 1) {
|
output_set_value("hopper_motor", m_hopper_motor);
|
||||||
output_set_value("hopper_motor", m_hopper_motor);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Port A read (SW1)
|
// Port A read (SW1)
|
||||||
@ -749,22 +738,15 @@ READ8_MEMBER(aristmk4_state::via_b_r)
|
|||||||
switch(m_hopper_motor)
|
switch(m_hopper_motor)
|
||||||
{
|
{
|
||||||
case 0x00:
|
case 0x00:
|
||||||
|
ret=ret^0x40;
|
||||||
|
machine().scheduler().timer_set(attotime::from_msec(175), timer_expired_delegate(FUNC(aristmk4_state::hopper_reset),this));
|
||||||
m_hopper_motor=0x02;
|
m_hopper_motor=0x02;
|
||||||
if ((ioport("HopperDIP")->read() & 0x01) == 1)
|
output_set_value("hopper_motor", m_hopper_motor);
|
||||||
{
|
|
||||||
ret=ret^0x40;
|
|
||||||
machine().scheduler().timer_set(attotime::from_msec(175), timer_expired_delegate(FUNC(aristmk4_state::hopper_reset),this));
|
|
||||||
} else {
|
|
||||||
output_set_value("hopper_motor", m_hopper_motor);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case 0x01:
|
case 0x01:
|
||||||
break; //default
|
break; //default
|
||||||
case 0x02:
|
case 0x02:
|
||||||
if ((ioport("HopperDIP")->read() & 0x01) == 1)
|
ret=ret^0x40;
|
||||||
{
|
|
||||||
ret=ret^0x40;
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
@ -884,9 +866,7 @@ WRITE8_MEMBER(aristmk4_state::via_cb2_w)
|
|||||||
else if (m_hopper_motor<0x02)
|
else if (m_hopper_motor<0x02)
|
||||||
m_hopper_motor=data;
|
m_hopper_motor=data;
|
||||||
|
|
||||||
if ((ioport("HopperDIP")->read() & 0x01) != 1) {
|
output_set_value("hopper_motor", m_hopper_motor); // stop motor
|
||||||
output_set_value("hopper_motor", m_hopper_motor); //stop motor
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Lamp output
|
// Lamp output
|
||||||
@ -1232,21 +1212,6 @@ static INPUT_PORTS_START(aristmk4)
|
|||||||
PORT_START("powerfail")
|
PORT_START("powerfail")
|
||||||
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("Power Fail / Shutdown") PORT_CODE(KEYCODE_COMMA)
|
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("Power Fail / Shutdown") PORT_CODE(KEYCODE_COMMA)
|
||||||
|
|
||||||
PORT_START("OPMDIP")
|
|
||||||
PORT_DIPNAME( 0x01, 0x00, "Output Physical Meters")
|
|
||||||
PORT_DIPSETTING( 0X00, DEF_STR( Off ) )
|
|
||||||
PORT_DIPSETTING( 0x01, DEF_STR( On ) )
|
|
||||||
|
|
||||||
PORT_START("MeterSNDDIP")
|
|
||||||
PORT_DIPNAME( 0x01, 0x01, "Play Meter Sounds")
|
|
||||||
PORT_DIPSETTING( 0X00, DEF_STR( Off ) )
|
|
||||||
PORT_DIPSETTING( 0x01, DEF_STR( On ) )
|
|
||||||
|
|
||||||
PORT_START("HopperDIP")
|
|
||||||
PORT_DIPNAME( 0x01, 0x01, "Emulate Hopper")
|
|
||||||
PORT_DIPSETTING( 0X00, DEF_STR( Off ) )
|
|
||||||
PORT_DIPSETTING( 0x01, DEF_STR( On ) )
|
|
||||||
|
|
||||||
/************************************** LINKS ***************************************************************/
|
/************************************** LINKS ***************************************************************/
|
||||||
|
|
||||||
PORT_START("LK13")
|
PORT_START("LK13")
|
||||||
|
Loading…
Reference in New Issue
Block a user