ticket: remove motor/status_active setters

This commit is contained in:
hap 2024-09-09 17:18:28 +02:00
parent 9cbe922efe
commit b0240641c0
74 changed files with 146 additions and 206 deletions

View File

@ -11,18 +11,10 @@
#include "emu.h"
#include "ticket.h"
//**************************************************************************
// DEBUGGING
//**************************************************************************
#define DEBUG_TICKET 0
#define VERBOSE (DEBUG_TICKET)
#define VERBOSE (0)
#include "logmacro.h"
//**************************************************************************
// GLOBAL VARIABLES
//**************************************************************************
@ -43,15 +35,10 @@ DEFINE_DEVICE_TYPE(HOPPER, hopper_device, "coin_hopper", "Coin Hopper")
ticket_dispenser_device::ticket_dispenser_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock)
: device_t(mconfig, type, tag, owner, clock)
, m_motor_sense(MOTOR_ACTIVE_LOW)
, m_status_sense(STATUS_ACTIVE_LOW)
, m_period(attotime::from_msec(100))
, m_hopper_type(false)
, m_motoron(0)
, m_ticketdispensed(0)
, m_ticketnotdispensed(0)
, m_status(0)
, m_power(0)
, m_status(false)
, m_power(false)
, m_timer(nullptr)
, m_output(*this, tag) // TODO: change to "tag:status"
, m_dispense_handler(*this)
@ -61,11 +48,13 @@ ticket_dispenser_device::ticket_dispenser_device(const machine_config &mconfig,
ticket_dispenser_device::ticket_dispenser_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: ticket_dispenser_device(mconfig, TICKET_DISPENSER, tag, owner, clock)
{
m_hopper_type = false;
}
hopper_device::hopper_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: ticket_dispenser_device(mconfig, HOPPER, tag, owner, clock)
{
m_hopper_type = true;
}
//-------------------------------------------------
@ -98,21 +87,21 @@ int ticket_dispenser_device::line_r()
void ticket_dispenser_device::motor_w(int state)
{
// On an activate signal, start dispensing!
if (bool(state) == m_motoron)
if (state)
{
if (!m_power)
{
LOG("%s: Ticket Power On\n", machine().describe_context());
m_timer->adjust(m_period);
m_power = true;
m_status = m_ticketnotdispensed;
m_status = false;
}
}
else
{
if (m_power)
{
if (m_hopper_type == false || m_status == m_ticketnotdispensed)
if (!m_hopper_type || !m_status)
{
LOG("%s: Ticket Power Off\n", machine().describe_context());
m_timer->adjust(attotime::never);
@ -134,10 +123,6 @@ void ticket_dispenser_device::motor_w(int state)
void ticket_dispenser_device::device_start()
{
m_motoron = (m_motor_sense == MOTOR_ACTIVE_HIGH);
m_ticketdispensed = (m_status_sense == STATUS_ACTIVE_HIGH);
m_ticketnotdispensed = !m_ticketdispensed;
m_timer = timer_alloc(FUNC(ticket_dispenser_device::update_output_state), this);
m_output.resolve();
@ -153,7 +138,7 @@ void ticket_dispenser_device::device_start()
void ticket_dispenser_device::device_reset()
{
m_status = m_ticketnotdispensed;
m_status = false;
m_power = false;
}
@ -180,14 +165,15 @@ TIMER_CALLBACK_MEMBER(ticket_dispenser_device::update_output_state)
}
// update output status
m_output = m_status == m_ticketdispensed;
m_output = m_status;
if (m_hopper_type)
{
m_dispense_handler(m_status);
}
// if we just dispensed, increment global count
if (m_status == m_ticketdispensed)
if (m_status)
{
machine().bookkeeping().increment_dispensed_tickets(1);
LOG("Ticket Dispensed\n");

View File

@ -30,31 +30,17 @@ DECLARE_DEVICE_TYPE(HOPPER, hopper_device)
class ticket_dispenser_device : public device_t
{
public:
static inline constexpr uint8_t MOTOR_ACTIVE_LOW = 0; // activated by state = 0
static inline constexpr uint8_t MOTOR_ACTIVE_HIGH = 1; // activated by state = 1
static inline constexpr uint8_t STATUS_ACTIVE_LOW = 0; // output 0 when dispensing is done
static inline constexpr uint8_t STATUS_ACTIVE_HIGH = 1; // output 1 when dispensing is done
// construction/destruction
ticket_dispenser_device(const machine_config &mconfig, const char *tag, device_t *owner, const attotime &period, uint8_t motor_sense, uint8_t status_sense)
ticket_dispenser_device(const machine_config &mconfig, const char *tag, device_t *owner, const attotime &period)
: ticket_dispenser_device(mconfig, tag, owner)
{
set_period(period);
set_senses(motor_sense, status_sense, false);
}
ticket_dispenser_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
virtual ~ticket_dispenser_device();
// inline configuration helpers
void set_period(const attotime &period) { m_period = period; }
void set_senses(uint8_t motor_sense, uint8_t status_sense, bool hopper_type)
{
m_motor_sense = motor_sense;
m_status_sense = status_sense;
m_hopper_type = hopper_type;
}
auto dispense_handler() { return m_dispense_handler.bind(); }
// read/write handlers
@ -71,16 +57,9 @@ protected:
TIMER_CALLBACK_MEMBER(update_output_state);
// configuration state
uint8_t m_motor_sense;
uint8_t m_status_sense;
attotime m_period;
bool m_hopper_type;
// active state
bool m_motoron;
bool m_ticketdispensed;
bool m_ticketnotdispensed;
bool m_status;
bool m_power;
emu_timer *m_timer;
@ -92,16 +71,12 @@ class hopper_device : public ticket_dispenser_device
{
public:
// construction/destruction
hopper_device(const machine_config &mconfig, const char *tag, device_t *owner, const attotime &period, uint8_t motor_sense, uint8_t status_sense)
hopper_device(const machine_config &mconfig, const char *tag, device_t *owner, const attotime &period)
: hopper_device(mconfig, tag, owner)
{
set_period(period);
set_senses(motor_sense, status_sense, true);
}
hopper_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
private:
};
#endif // MAME_MACHINE_TICKET_H

View File

@ -2422,7 +2422,7 @@ void aristmk5_state::aristmk5(machine_config &config)
DS1302(config, m_rtc, 32.768_kHz_XTAL);
HOPPER(config, m_hopper, attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_hopper, attotime::from_msec(100));
// some games (jungjuic, penpir2) use the IOC KART interface for debug
rs232_port_device &rs232(RS232_PORT(config, "kart", default_rs232_devices, nullptr));

View File

@ -1263,8 +1263,8 @@ void astrocorp_state::showhand(machine_config &config)
NVRAM(config, "nvram");
EEPROM_93C46_16BIT(config, "eeprom");
HOPPER(config, m_ticket, attotime::from_msec(200), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_hopper, attotime::from_msec(200), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_ticket, attotime::from_msec(200));
HOPPER(config, m_hopper, attotime::from_msec(200));
// video hardware
SCREEN(config, m_screen, SCREEN_TYPE_RASTER);
@ -1308,8 +1308,8 @@ void astrocorp_state::skilldrp(machine_config &config)
NVRAM(config, "nvram");
EEPROM_93C46_16BIT(config, "eeprom");
HOPPER(config, m_ticket, attotime::from_msec(200), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_hopper, attotime::from_msec(200), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_ticket, attotime::from_msec(200));
HOPPER(config, m_hopper, attotime::from_msec(200));
// video hardware
SCREEN(config, m_screen, SCREEN_TYPE_RASTER);

View File

@ -2321,7 +2321,7 @@ void mpu4_state::mpu4_common(machine_config &config)
BACTA_DATALOGGER(config, m_dataport, 0);
m_dataport->rxd_handler().set(FUNC(mpu4_state::dataport_rxd));
HOPPER(config, m_hopper1, attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_hopper1, attotime::from_msec(100));
SPEAKER(config, "mono").front_center();

View File

@ -1165,9 +1165,7 @@ void bmcpokr_state::bmcpokr(machine_config &config)
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
TICKET_DISPENSER(config, m_hopper, 0);
m_hopper->set_period(attotime::from_msec(10));
m_hopper->set_senses(ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH, false); // hopper stuck low if too slow
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(10)); // hopper stuck low if too slow
SPEAKER(config, "mono").front_center();

View File

@ -298,7 +298,7 @@ void pzletime_state::pzletime(machine_config &config)
PALETTE(config, m_palette[1], palette_device::RGB_555);
EEPROM_93C46_16BIT(config, "eeprom");
TICKET_DISPENSER(config, m_ticket, attotime::from_msec(2000), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_ticket, attotime::from_msec(2000));
SPEAKER(config, "mono").front_center();
OKIM6295(config, m_oki, 937500, okim6295_device::PIN7_HIGH); //freq & pin7 taken from stlforce

View File

@ -335,7 +335,7 @@ void d9final_state::d9final(machine_config &config)
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0); // Sharp LH5116D-10 + battery
HOPPER(config, m_hopper, attotime::from_msec(20), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_hopper, attotime::from_msec(20));
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));
screen.set_refresh_hz(60);

View File

@ -588,7 +588,7 @@ void dblcrown_state::dblcrown(machine_config &config)
// 1000 ms. (minimal of MAX693A watchdog long timeout period with internal oscillator)
WATCHDOG_TIMER(config, m_watchdog).set_time(attotime::from_msec(1000));
HOPPER(config, m_hopper, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_hopper, attotime::from_msec(50));
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);

View File

@ -1080,7 +1080,7 @@ void base_state::base(machine_config &config)
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(50), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); // time between hopper pulses in milliseconds (not right for attendant pay)
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(50)); // time between hopper pulses in milliseconds (not right for attendant pay)
// 82C255 (actual chip on PCB) is equivalent to two 8255s
I8255(config, m_ppi[0]);

View File

@ -470,7 +470,7 @@ void royalpk2_state::royalpk2(machine_config &config)
NVRAM(config, m_nvram, nvram_device::DEFAULT_ALL_0);
HOPPER(config, m_hopper, attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_hopper, attotime::from_msec(100));
/* video hardware */
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));

View File

@ -755,7 +755,7 @@ void lethalj_state::gameroom(machine_config &config)
m_maincpu->set_pixels_per_clock(1);
m_maincpu->set_scanline_ind16_callback(FUNC(lethalj_state::scanline_update));
TICKET_DISPENSER(config, m_ticket, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_ticket, attotime::from_msec(200));
/* video hardware */
SCREEN(config, m_screen, SCREEN_TYPE_RASTER);

View File

@ -670,7 +670,7 @@ void fun_tech_corp_state::base(machine_config &config)
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_1);
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(50), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(50));
// sound hardware
SPEAKER(config, "mono").front_center();

View File

@ -11225,7 +11225,7 @@ void unkch_state::unkch(machine_config &config)
aysnd.add_route(ALL_OUTPUTS, "mono", 0.50);
/* payout hardware */
TICKET_DISPENSER(config, m_ticket_dispenser, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_ticket_dispenser, attotime::from_msec(200));
}
void unkch_state::rolling(machine_config &config)

View File

@ -4436,7 +4436,7 @@ void igs017_state::tarzan(machine_config &config)
m_igs017_igs031->in_pa_callback().set_ioport("COINS");
m_igs017_igs031->in_pb_callback().set(FUNC(igs017_state::tarzan_keys_joy_r));
HOPPER(config, m_hopper, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_hopper, attotime::from_msec(50));
// protection
IGS_STRING(config, m_igs_string, 0);
@ -4470,7 +4470,7 @@ void igs017_state::starzan(machine_config &config)
m_igs017_igs031->in_pb_callback().set_ioport("PLAYER1");
m_igs017_igs031->in_pc_callback().set(FUNC(igs017_state::dsw_r));
HOPPER(config, m_hopper, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_hopper, attotime::from_msec(50));
// protection
IGS_STRING(config, m_igs_string, 0);
@ -4504,7 +4504,7 @@ void igs017_state::happyskl(machine_config &config)
m_igs017_igs031->in_pb_callback().set_ioport("PLAYER1");
m_igs017_igs031->in_pc_callback().set(FUNC(igs017_state::dsw_r));
HOPPER(config, m_hopper, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_hopper, attotime::from_msec(50));
// video
m_igs017_igs031->set_palette_scramble_cb(FUNC(igs017_state::tarzan_palette_bitswap));
@ -4529,7 +4529,7 @@ void igs017_state::cpoker2(machine_config &config)
m_igs017_igs031->in_pb_callback().set_ioport("PLAYER1");
m_igs017_igs031->in_pc_callback().set(FUNC(igs017_state::dsw_r));
HOPPER(config, m_hopper, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_hopper, attotime::from_msec(50));
// protection
IGS_INCDEC(config, m_igs_incdec, 0);
@ -4559,7 +4559,7 @@ void igs017_state::tjsb(machine_config &config)
m_igs017_igs031->in_pb_callback().set_ioport("DSW2");
m_igs017_igs031->in_pc_callback().set_ioport("DSW3");
HOPPER(config, m_hopper, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_hopper, attotime::from_msec(50));
// protection
IGS_STRING(config, m_igs_string, 0);
@ -4590,7 +4590,7 @@ void igs017_state::spkrform(machine_config &config)
m_igs017_igs031->in_pb_callback().set_ioport("DSW2");
m_igs017_igs031->in_pc_callback().set_ioport("DSW3");
HOPPER(config, m_hopper, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_hopper, attotime::from_msec(50));
// protection
IGS_STRING(config, m_igs_string, 0);
@ -4630,7 +4630,7 @@ void igs017_state::mgcs(machine_config &config)
m_igs017_igs031->in_pb_callback().set(FUNC(igs017_state::mgcs_keys_joy_r));
m_igs017_igs031->in_pc_callback().set_ioport("JOY");
HOPPER(config, m_hopper, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_hopper, attotime::from_msec(50));
// protection
IGS_STRING(config, m_igs_string, 0);
@ -4664,7 +4664,7 @@ void igs017_state::lhzb2(machine_config &config)
m_igs017_igs031->in_pb_callback().set_ioport("DSW1");
m_igs017_igs031->in_pc_callback().set_ioport("DSW2");
HOPPER(config, m_hopper, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_hopper, attotime::from_msec(50));
// protection
IGS_STRING(config, m_igs_string, 0);
@ -4699,7 +4699,7 @@ void igs017_state::lhzb2a(machine_config &config)
// ppi8255 not used for i/o (just video enable)?
HOPPER(config, m_hopper, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_hopper, attotime::from_msec(50));
// protection
IGS_STRING(config, m_igs_string, 0);
@ -4736,7 +4736,7 @@ void igs017_state::slqz2(machine_config &config)
m_igs017_igs031->in_pb_callback().set_ioport("DSW1");
m_igs017_igs031->in_pc_callback().set_ioport("DSW2");
HOPPER(config, m_hopper, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_hopper, attotime::from_msec(50));
// protection
IGS_STRING(config, m_igs_string, 0);
@ -4765,7 +4765,7 @@ void igs017_state::sdmg2(machine_config &config)
m_igs017_igs031->in_pb_callback().set_ioport("DSW2");
// DSW3 is read but unused (it's not populated on the PCB)
HOPPER(config, m_hopper, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_hopper, attotime::from_msec(50));
// protection
IGS_INCDEC(config, m_igs_incdec, 0);
@ -4798,7 +4798,7 @@ void igs017_state::mgdha(machine_config &config)
m_igs017_igs031->in_pa_callback().set_ioport("DSW1");
HOPPER(config, m_hopper, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_hopper, attotime::from_msec(50));
}
void igs017_state::mgdh(machine_config &config)
@ -4826,7 +4826,7 @@ void igs017_state::sdmg2p(machine_config &config)
m_igs017_igs031->in_pb_callback().set_ioport("DSW2");
m_igs017_igs031->in_pc_callback().set_ioport("DSW3"); // there are 3 DIP banks on PCB but only two are shown in test mode
HOPPER(config, m_hopper, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_hopper, attotime::from_msec(50));
IGS_STRING(config, m_igs_string, 0);
}

View File

@ -783,7 +783,7 @@ void igs_fear_state::igs_fear(machine_config &config)
V3021(config, "rtc");
TICKET_DISPENSER(config, m_ticket, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_ticket, attotime::from_msec(200));
/* sound hardware */
SPEAKER(config, "mono").front_center();

View File

@ -1100,7 +1100,7 @@ void igs_m027_state::lhdmg_xor(machine_config &config)
m_igs017_igs031->in_pb_callback().set_ioport("DSW2");
m_igs017_igs031->in_pc_callback().set(NAME((&igs_m027_state::kbd_r<0, 3, 0>)));
HOPPER(config, m_hopper, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_hopper, attotime::from_msec(50));
}
void igs_m027_state::lhzb4_xor(machine_config &config)
@ -1133,7 +1133,7 @@ void igs_m027_state::zhongguo_xor(machine_config &config)
{
lthy_xor(config);
HOPPER(config, m_hopper, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_hopper, attotime::from_msec(50));
}
void igs_m027_state::mgzz_xor(machine_config &config)
@ -1148,7 +1148,7 @@ void igs_m027_state::mgzz_xor(machine_config &config)
m_igs017_igs031->in_pb_callback().set_ioport("DSW2");
m_igs017_igs031->in_pc_callback().set_ioport("JOY");
HOPPER(config, m_hopper, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_hopper, attotime::from_msec(50));
}
void igs_m027_state::oceanpar_xor(machine_config &config)
@ -1161,8 +1161,8 @@ void igs_m027_state::oceanpar_xor(machine_config &config)
m_ppi->out_pb_callback().set(FUNC(igs_m027_state::oceanpar_output_w));
m_ppi->out_pc_callback().set(FUNC(igs_m027_state::lamps_w));
HOPPER(config, m_hopper, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_ticket, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_hopper, attotime::from_msec(50));
TICKET_DISPENSER(config, m_ticket, attotime::from_msec(200));
}
void igs_m027_state::extradraw(machine_config &config)

View File

@ -584,7 +584,7 @@ void capbowl_base_state::base(machine_config &config)
NVRAM(config, "nvram", nvram_device::DEFAULT_RANDOM);
TICKET_DISPENSER(config, "ticket", attotime::from_msec(100), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, "ticket", attotime::from_msec(100));
// video hardware
SCREEN(config, m_screen, SCREEN_TYPE_RASTER);

View File

@ -1775,7 +1775,7 @@ void itech32_state::base_devices(machine_config &config)
GENERIC_LATCH_8(config, m_soundlatch).data_pending_callback().set_inputline(m_soundcpu, INPUT_LINE_IRQ0);
TICKET_DISPENSER(config, m_ticket, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_ticket, attotime::from_msec(200));
WATCHDOG_TIMER(config, "watchdog");

View File

@ -1721,7 +1721,7 @@ void itech8_state::itech8_core_devices(machine_config &config)
{
NVRAM(config, m_nvram, nvram_device::DEFAULT_RANDOM);
TICKET_DISPENSER(config, m_ticket, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_ticket, attotime::from_msec(200));
TLC34076(config, m_tlc34076, tlc34076_device::TLC34076_6_BIT);

View File

@ -2369,7 +2369,7 @@ void captflag_state::captflag(machine_config &config)
m_maincpu->set_addrmap(AS_PROGRAM, &captflag_state::captflag_map);
TIMER(config, "scantimer").configure_scanline(FUNC(captflag_state::captflag_scanline), "screen", 0, 1);
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(2000), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(2000));
WATCHDOG_TIMER(config, m_watchdog);
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);

View File

@ -1081,7 +1081,7 @@ void gsan_state::gs_medal(machine_config &config)
m_screen->set_raw(XTAL(36'000'000) / 5, 457, 0, 320, 262, 0, 240);
HOPPER(config, "hopper", attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, "hopper", attotime::from_msec(100));
}
void gsan_state::init_gsan()

View File

@ -832,7 +832,7 @@ void konmedal_state::tsukande(machine_config &config)
NVRAM(config, m_nvram, nvram_device::DEFAULT_ALL_0);
m_nvram->set_custom_handler(FUNC(konmedal_state::medal_nvram_init));
HOPPER(config, "hopper", attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, "hopper", attotime::from_msec(100));
K053252(config, m_k053252, XTAL(14'318'181) / 2); // not verified
m_k053252->int1_ack().set(FUNC(konmedal_state::vbl_ack_w));
@ -875,7 +875,7 @@ void konmedal_state::ddboy(machine_config &config)
NVRAM(config, m_nvram, nvram_device::DEFAULT_ALL_0);
m_nvram->set_custom_handler(FUNC(konmedal_state::medal_nvram_init));
HOPPER(config, "hopper", attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, "hopper", attotime::from_msec(100));
K053252(config, m_k053252, XTAL(14'318'181) / 2); // not verified
m_k053252->int1_ack().set(FUNC(konmedal_state::vbl_ack_w));
@ -1019,7 +1019,7 @@ void konmedal_state::shuriboy(machine_config &config)
NVRAM(config, m_nvram, nvram_device::DEFAULT_ALL_0);
m_nvram->set_custom_handler(FUNC(konmedal_state::shuriboy_nvram_init));
HOPPER(config, "hopper", attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, "hopper", attotime::from_msec(100));
/* video hardware */
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); // everything not verified, just a placeholder

View File

@ -642,7 +642,7 @@ void konmedal68k_state::kzaurus(machine_config &config)
m_maincpu->set_addrmap(AS_PROGRAM, &konmedal68k_state::kzaurus_main);
TIMER(config, "scantimer").configure_scanline(FUNC(konmedal68k_state::scanline), "screen", 0, 1);
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
HOPPER(config, "hopper", attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, "hopper", attotime::from_msec(100));
/* video hardware */
SCREEN(config, m_screen, SCREEN_TYPE_RASTER);

View File

@ -610,8 +610,8 @@ void piratesh_state::piratesh(machine_config &config)
K053252(config, m_k053252, XTAL(32'000'000)/4);
m_k053252->set_offsets(40, 16); // TODO
TICKET_DISPENSER(config, "ticket", attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
HOPPER(config, "hopper", attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, "ticket", attotime::from_msec(200));
HOPPER(config, "hopper", attotime::from_msec(200));
/* video hardware */
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));

View File

@ -589,7 +589,7 @@ void quickpick5_state::quickpick5(machine_config &config)
Z80(config, m_maincpu, XTAL(32'000'000)/4); // z84c0008pec 8mhz part, 32Mhz xtal verified on PCB, divisor unknown
m_maincpu->set_addrmap(AS_PROGRAM, &quickpick5_state::quickpick5_main);
TIMER(config, "scantimer").configure_scanline(FUNC(quickpick5_state::scanline), "screen", 0, 1);
HOPPER(config, "hopper", attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, "hopper", attotime::from_msec(100));
K053252(config, m_k053252, XTAL(32'000'000)/4); /* K053252, xtal verified, divider not verified */
m_k053252->int1_ack().set(FUNC(quickpick5_state::vbl_ack_w));

View File

@ -1780,7 +1780,7 @@ void williams_state::lottofun(machine_config &config)
m_pia[0]->writepb_handler().set("ticket", FUNC(ticket_dispenser_device::motor_w)).bit(7).invert();
m_pia[0]->ca2_handler().set([this](int state) { machine().bookkeeping().coin_lockout_global_w(state); });
TICKET_DISPENSER(config, "ticket", attotime::from_msec(70), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, "ticket", attotime::from_msec(70));
}

View File

@ -574,7 +574,7 @@ void amusco_state::amusco(machine_config &config)
i8155b.in_pc_callback().set(m_rtc, FUNC(msm5832_device::data_r));
i8155b.out_pc_callback().set(m_rtc, FUNC(msm5832_device::data_w));
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(30), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(30));
/* video hardware */
SCREEN(config, m_screen, SCREEN_TYPE_RASTER);

View File

@ -183,9 +183,9 @@ void bsuprem_state::bsuprem(machine_config &config)
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
HOPPER(config, m_hopper_5, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_hopper_25, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_hopper_100, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_hopper_5, attotime::from_msec(50));
HOPPER(config, m_hopper_25, attotime::from_msec(50));
HOPPER(config, m_hopper_100, attotime::from_msec(50));
// Sound hardware
SPEAKER(config, "mono").front_center();

View File

@ -4648,7 +4648,7 @@ void calomega_state::sys903(machine_config &config)
TIMER(config, "timer_0").configure_periodic(FUNC(calomega_state::timer_0), attotime::from_hz(550*2)); // (time*2) - Each timer pulse -> half period
HOPPER(config, m_hopper, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH );
HOPPER(config, m_hopper, attotime::from_msec(50));
}
@ -4726,7 +4726,7 @@ void calomega_state::sys903kb(machine_config &config)
TIMER(config, "timer_0").configure_periodic(FUNC(calomega_state::timer_0), attotime::from_hz(550*2)); // (time*2) - Each timer pulse -> half period
HOPPER(config, m_hopper, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH );
HOPPER(config, m_hopper, attotime::from_msec(50));
}

View File

@ -268,7 +268,7 @@ void clpoker_state::clpoker(machine_config &config)
ppi_inputs.in_pb_callback().set_ioport("INB");
ppi_inputs.in_pc_callback().set_ioport("INC");
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(60), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(60));
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));
screen.set_refresh_hz(60); // wrong

View File

@ -388,7 +388,7 @@ void dcheese_state::dcheese(machine_config &config)
EEPROM_93C46_16BIT(config, "eeprom");
TICKET_DISPENSER(config, "ticket", attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, "ticket", attotime::from_msec(200));
WATCHDOG_TIMER(config, "watchdog");

View File

@ -1059,7 +1059,7 @@ void gei_state::getrivia(machine_config &config)
m_ppi[1]->out_pb_callback().set(FUNC(gei_state::lamps_w));
m_ppi[1]->out_pc_callback().set(FUNC(gei_state::lamps2_w));
TICKET_DISPENSER(config, m_ticket, attotime::from_msec(100), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_ticket, attotime::from_msec(100));
// sound hardware
SPEAKER(config, "speaker").front_center();

View File

@ -635,7 +635,7 @@ void gi6809_state::gi6809_base(machine_config &config)
NETLIST_LOGIC_INPUT(config, "sound_nl:bit3", "PA3.IN", 0);
NETLIST_STREAM_OUTPUT(config, "sound_nl:cout0", 0, "OUTPUT").set_mult_offset(1.0, 0.0);
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(50), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(50));
}

View File

@ -1237,7 +1237,7 @@ void interflip8035_state::interflip(machine_config &config)
add_em_reels(config, 20, attotime::from_double(2));
// hopper device
HOPPER(config, m_hopper, attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_hopper, attotime::from_msec(100));
// sound stuff
SPEAKER(config, "mono").front_center();

View File

@ -707,7 +707,7 @@ void jackhouse_state::jackhouse(machine_config &config)
GFXDECODE(config, m_gfxdecode, m_palette, gfx_jackhouse);
config.set_default_layout(layout_jackhouse);
HOPPER(config, m_hopper, attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_hopper, attotime::from_msec(100));
SPEAKER(config, "speaker").front_center();

View File

@ -240,7 +240,7 @@ void kingpin_state::kingpin(machine_config &config)
AY8912(config, "aysnd", XTAL(3'579'545)).add_route(ALL_OUTPUTS, "mono", 0.50);
HOPPER(config, "hopper", attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, "hopper", attotime::from_msec(100));
config.set_default_layout(layout_kingpin);
}

View File

@ -450,9 +450,6 @@ private:
#define YM2149_CLOCK MAIN_CLOCK/6/2 // '/SEL' pin tied to GND, so internal divisor x2 is active
#define M5205_CLOCK XTAL(384'000)
#define HOPPER_PULSE 50 // time between hopper pulses in milliseconds
#define VDP_MEM 0x30000
/*************************************************
* Interrupts *
@ -861,11 +858,11 @@ void kurukuru_state::kurukuru(machine_config &config)
// video hardware
v9938_device &v9938(V9938(config, "v9938", MAIN_CLOCK));
v9938.set_screen_ntsc("screen");
v9938.set_vram_size(VDP_MEM);
v9938.set_vram_size(0x30000);
v9938.int_cb().set_inputline("maincpu", 0);
SCREEN(config, "screen", SCREEN_TYPE_RASTER);
TICKET_DISPENSER(config, "hopper", attotime::from_msec(HOPPER_PULSE), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, "hopper", attotime::from_msec(50));
// sound hardware
SPEAKER(config, "mono").front_center();

View File

@ -984,8 +984,8 @@ void magic10_state::magic10(machine_config &config)
// basic machine hardware
m_maincpu->set_addrmap(AS_PROGRAM, &magic10_state::magic10_map);
TICKET_DISPENSER(config, m_ticket, attotime::from_msec(6), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_hopper, attotime::from_msec(20), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_ticket, attotime::from_msec(6));
HOPPER(config, m_hopper, attotime::from_msec(20));
}
@ -1044,7 +1044,7 @@ void spetrix_state::spetrix(machine_config &config)
{
base(config);
TICKET_DISPENSER(config, m_ticket, attotime::from_msec(6), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_ticket, attotime::from_msec(6));
m_maincpu->set_addrmap(AS_PROGRAM, &spetrix_state::spetrix_map);
m_maincpu->set_vblank_int("screen", FUNC(spetrix_state::irq2_line_hold)); // L1 interrupts

View File

@ -510,7 +510,7 @@ void mgavegas_state::mgavegas(machine_config &config)
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_1);
TICKET_DISPENSER(config, "hopper", attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, "hopper", attotime::from_msec(200));
// sound hardware
SPEAKER(config, "mono").front_center();

View File

@ -475,7 +475,7 @@ void mjsenpu_state::mjsenpu(machine_config &config)
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_1);
// more likely coins out?
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(50), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(50));
/* video hardware */
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));

View File

@ -962,7 +962,7 @@ void mpu12wbk_state::mpu12wbk(machine_config &config)
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
NVRAM(config, "nvram2", nvram_device::DEFAULT_ALL_0);
HOPPER(config, m_hopper, attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_hopper, attotime::from_msec(100));
// video hardware
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));

View File

@ -1080,7 +1080,7 @@ void igrosoft_gamble_state::igrosoft_gamble(machine_config &config)
AY8910(config, "aysnd", 6000000/4).add_route(ALL_OUTPUTS, "mono", 0.30);
M48T35(config, m_m48t35, 0);
HOPPER(config, m_hopper, attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_hopper, attotime::from_msec(100));
}
void igrosoft_gamble_state::rollfr(machine_config &config)

View File

@ -235,7 +235,7 @@ void piggypas_state::piggypas(machine_config &config)
ppi.out_pb_callback().set(FUNC(piggypas_state::ctrl_w));
ppi.in_pc_callback().set_ioport("IN0");
TICKET_DISPENSER(config, "ticket", attotime::from_msec(100), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, "ticket", attotime::from_msec(100));
}
void piggypas_state::fidlstix(machine_config &config)

View File

@ -134,9 +134,6 @@
namespace {
#define HOPPER_PULSE 50 // guessed
class skylncr_state : public driver_device
{
public:
@ -1689,7 +1686,7 @@ void skylncr_state::skylncr(machine_config &config)
ppi1.in_pb_callback().set_ioport("IN3");
ppi1.in_pc_callback().set_ioport("IN4");
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(HOPPER_PULSE), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(50)); // duration guessed
// video hardware
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));

View File

@ -539,7 +539,7 @@ void tapatune_state::tapatune_base(machine_config &config)
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
TICKET_DISPENSER(config, "ticket", attotime::from_msec(100), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, "ticket", attotime::from_msec(100));
/* sound hardware */
SPEAKER(config, "lspeaker").front_left();

View File

@ -806,8 +806,8 @@ void tickee_gun_state::tickee(machine_config &config)
set_beamadd(50, 0);
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_1);
TICKET_DISPENSER(config, m_ticket[0], attotime::from_msec(100), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_ticket[1], attotime::from_msec(100), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_ticket[0], attotime::from_msec(100));
TICKET_DISPENSER(config, m_ticket[1], attotime::from_msec(100));
// video hardware
TLC34076(config, m_tlc34076, tlc34076_device::TLC34076_6_BIT);
@ -850,8 +850,8 @@ void tickee_state::mouseatk(machine_config &config)
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_1);
TICKET_DISPENSER(config, m_ticket[0], attotime::from_msec(100), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_ticket[1], attotime::from_msec(100), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_ticket[0], attotime::from_msec(100));
TICKET_DISPENSER(config, m_ticket[1], attotime::from_msec(100));
// video hardware
TLC34076(config, m_tlc34076, tlc34076_device::TLC34076_6_BIT);
@ -908,7 +908,7 @@ void tickee_gun_state::maletmad(machine_config &config)
{
rapidfir(config);
TICKET_DISPENSER(config, m_ticket[0], attotime::from_msec(100), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_ticket[0], attotime::from_msec(100));
}

View File

@ -103,9 +103,6 @@ private:
#define CPU_CLOCK MAIN_CLOCK / 6
#define PSG_CLOCK MAIN_CLOCK / 12
#define VDP_MEM 0x20000 // 4x MB81464-15
#define HOPPER_PULSE 50 // time between hopper pulses in milliseconds
void tvg01_state::machine_start()
{
@ -305,10 +302,10 @@ void tvg01_state::theboat(machine_config &config)
v9938_device &vdp(V9938(config, "vdp", VDP_CLOCK)); // unknown type (surface-scratched 64-pin SDIP)
vdp.set_screen_ntsc("screen");
vdp.set_vram_size(VDP_MEM); // 4x MB81464-15
vdp.set_vram_size(0x20000); // 4x MB81464-15
vdp.int_cb().set_inputline("maincpu", INPUT_LINE_IRQ0);
TICKET_DISPENSER(config, "hopper", attotime::from_msec(HOPPER_PULSE), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, "hopper", attotime::from_msec(50));
SPEAKER(config, "mono").front_center();

View File

@ -235,7 +235,7 @@ void big10_state::big10(machine_config &config)
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(40), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(40));
// video hardware
v9938_device &v9938(V9938(config, "v9938", MASTER_CLOCK));

View File

@ -809,7 +809,7 @@ void cgang_state::cgang(machine_config &config)
WATCHDOG_TIMER(config, m_watchdog); // HA1835P
m_watchdog->set_time(attotime::from_msec(100)); // approximation
TICKET_DISPENSER(config, m_ticket, attotime::from_msec(3000), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_ticket, attotime::from_msec(3000));
// video hardware
PWM_DISPLAY(config, m_digits).set_size(10, 7);

View File

@ -1383,9 +1383,9 @@ void namcos10_state::namcos10_mgexio(machine_config &config)
namcos10_mgexio_device &mgexio(NAMCOS10_MGEXIO(config, m_exio, 0));
HOPPER(config, m_mgexio_hopper[0], attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_mgexio_hopper[1], attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_mgexio_hopper[2], attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_mgexio_hopper[0], attotime::from_msec(100));
HOPPER(config, m_mgexio_hopper[1], attotime::from_msec(100));
HOPPER(config, m_mgexio_hopper[2], attotime::from_msec(100));
mgexio.port4_read_callback().set([this] (offs_t offset) {
uint8_t r = 0;

View File

@ -337,7 +337,7 @@ void wackygtr_state::wackygtr(machine_config &config)
m_pit8253[1]->set_clk<2>(XTAL(3'579'545)/16); // this is a guess
m_pit8253[1]->out_handler<2>().set(FUNC(wackygtr_state::alligator_ck<4>));
TICKET_DISPENSER(config, "ticket", attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, "ticket", attotime::from_msec(200));
}

View File

@ -671,17 +671,9 @@ void midas_state::hammer(machine_config &config)
EEPROM_93C46_16BIT(config, m_eeprom);
TICKET_DISPENSER(config, m_prize[0], 0);
m_prize[0]->set_period(attotime::from_msec(1000*5));
m_prize[0]->set_senses(ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH, false);
TICKET_DISPENSER(config, m_prize[1], 0);
m_prize[1]->set_period(attotime::from_msec(1000*5));
m_prize[1]->set_senses(ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH, false);
TICKET_DISPENSER(config, m_ticket, 0);
m_ticket->set_period(attotime::from_msec(200));
m_ticket->set_senses(ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH, false);
TICKET_DISPENSER(config, m_prize[0], attotime::from_msec(1000*5));
TICKET_DISPENSER(config, m_prize[1], attotime::from_msec(1000*5));
TICKET_DISPENSER(config, m_ticket, attotime::from_msec(200));
/* video hardware */
SCREEN(config, m_screen, SCREEN_TYPE_RASTER);

View File

@ -1315,8 +1315,8 @@ void playmark_state::hotmind(machine_config &config)
MCFG_VIDEO_START_OVERRIDE(playmark_state,hotmind)
TICKET_DISPENSER(config, m_ticket, attotime::from_msec(350), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_token, attotime::from_msec(350), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_ticket, attotime::from_msec(350));
TICKET_DISPENSER(config, m_token, attotime::from_msec(350));
// sound hardware
SPEAKER(config, "mono").front_center();
@ -1356,8 +1356,8 @@ void playmark_state::luckboomh(machine_config &config)
MCFG_VIDEO_START_OVERRIDE(playmark_state,luckboomh)
TICKET_DISPENSER(config, m_ticket, attotime::from_msec(350), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_token, attotime::from_msec(350), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_ticket, attotime::from_msec(350));
TICKET_DISPENSER(config, m_token, attotime::from_msec(350));
// sound hardware
SPEAKER(config, "mono").front_center();

View File

@ -699,8 +699,8 @@ void magicstk_state::magicstk(machine_config &config)
GFXDECODE(config, m_gfxdecode, m_palette, gfx_powerbal);
PALETTE(config, m_palette).set_format(palette_device::RRRRGGGGBBBBRGBx, 512);
TICKET_DISPENSER(config, m_ticket, attotime::from_msec(350), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_token, attotime::from_msec(350), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_ticket, attotime::from_msec(350));
TICKET_DISPENSER(config, m_token, attotime::from_msec(350));
// sound hardware
SPEAKER(config, "mono").front_center();

View File

@ -320,7 +320,7 @@ void xtheball_state::xtheball(machine_config &config)
latch3.q_out_cb<3>().set(FUNC(xtheball_state::foreground_mode_w));
// Q3 = video foreground control?
TICKET_DISPENSER(config, m_ticket, attotime::from_msec(100), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_ticket, attotime::from_msec(100));
WATCHDOG_TIMER(config, m_watchdog);

View File

@ -845,8 +845,8 @@ void rfslots8085_state::rf53_3297(machine_config &config)
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
HOPPER(config, m_hopper[0], attotime::from_msec(150), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); // hopper motor 25 Pts.
HOPPER(config, m_hopper[1], attotime::from_msec(150), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); // hopper motor 100 Pts.
HOPPER(config, m_hopper[0], attotime::from_msec(150)); // hopper motor 25 Pts.
HOPPER(config, m_hopper[1], attotime::from_msec(150)); // hopper motor 100 Pts.
add_em_reels(config, 100, attotime::from_double(2));

View File

@ -728,7 +728,7 @@ void rfslotsmcs48_state::rf_3115_base(machine_config &config)
NVRAM(config, "data_ram", nvram_device::DEFAULT_ALL_0);
// Hopper device
HOPPER(config, m_hopper, attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_hopper, attotime::from_msec(100));
SPEAKER(config, "mono").front_center();
}

View File

@ -1284,7 +1284,7 @@ void stv_state::stv_slot(machine_config &config)
void stv_state::hopper(machine_config &config)
{
stv(config);
HOPPER(config, m_hopper, attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_hopper, attotime::from_msec(100));
m_maincpu->set_addrmap(AS_PROGRAM, &stv_state::hopper_mem);
m_slave->set_addrmap(AS_PROGRAM, &stv_state::hopper_mem);

View File

@ -413,7 +413,7 @@ void banprestoms_state::banprestoms(machine_config &config)
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
TICKET_DISPENSER(config, m_ticket, attotime::from_msec(100), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); // TODO: period is guessed
TICKET_DISPENSER(config, m_ticket, attotime::from_msec(100)); // TODO: period is guessed
// video hardware
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); // TODO: copied from other drivers using the same CRTC

View File

@ -323,7 +323,7 @@ void feversoc_state::feversoc(machine_config &config)
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(60), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(60));
}
/***************************************************************************

View File

@ -227,7 +227,7 @@ void albazc_state::hanaroku(machine_config &config)
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(50), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(50));
// video hardware
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));

View File

@ -601,7 +601,7 @@ void doraemon_state::doraemon(machine_config &config)
m_spritegen->set_bg_yoffsets(0x00, 0x01);
m_spritegen->set_fg_yoffsets(0x00, 0x10);
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(2000), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(2000));
// video hardware
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));

View File

@ -1168,8 +1168,8 @@ void jclub2o_state::jclub2o(machine_config &config)
EEPROM_S29290_16BIT(config, "eeprom");
WATCHDOG_TIMER(config, "watchdog");
TICKET_DISPENSER(config, m_hopper1, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_hopper2, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_hopper1, attotime::from_msec(200));
TICKET_DISPENSER(config, m_hopper2, attotime::from_msec(200));
// video hardware
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));
@ -1209,8 +1209,8 @@ void jclub2_state::jclub2(machine_config &config)
EEPROM_93C46_8BIT(config, "eeprom");
WATCHDOG_TIMER(config, "watchdog");
TICKET_DISPENSER(config, m_hopper1, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_hopper2, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_hopper1, attotime::from_msec(200));
TICKET_DISPENSER(config, m_hopper2, attotime::from_msec(200));
// video hardware
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));
@ -1253,8 +1253,8 @@ void darkhors_state::darkhors(machine_config &config)
EEPROM_93C46_8BIT(config, "eeprom");
WATCHDOG_TIMER(config, "watchdog");
TICKET_DISPENSER(config, m_hopper1, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_hopper2, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_hopper1, attotime::from_msec(200));
TICKET_DISPENSER(config, m_hopper2, attotime::from_msec(200));
// video hardware
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));

View File

@ -7799,7 +7799,7 @@ void setaroul_state::setaroul(machine_config &config)
// devices
UPD4992(config, m_rtc, 32'768); // ! Actually D4911C !
ACIA6850(config, "acia0", 0);
TICKET_DISPENSER(config, "hopper", attotime::from_msec(150), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, "hopper", attotime::from_msec(150));
// video hardware
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));
@ -9091,8 +9091,8 @@ void jockeyc_state::jockeyc(machine_config &config)
// devices
UPD4992(config, m_rtc, 32'768); // ! Actually D4911C !
ACIA6850(config, "acia0", 0);
TICKET_DISPENSER(config, "hopper1", attotime::from_msec(150), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, "hopper2", attotime::from_msec(150), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, "hopper1", attotime::from_msec(150));
TICKET_DISPENSER(config, "hopper2", attotime::from_msec(150));
// video hardware
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));

View File

@ -2371,7 +2371,7 @@ void seta2_state::reelquak(machine_config &config)
downcast<tmp68301_device &>(*m_maincpu).parallel_w_cb().set(FUNC(seta2_state::reelquak_leds_w));
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
TICKET_DISPENSER(config, m_dispenser, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_dispenser, attotime::from_msec(200));
m_screen->set_visarea(0x00, 0x140-1, 0x000, 0x0f0-1);
}
@ -2417,7 +2417,7 @@ void seta2_state::telpacfl(machine_config &config)
EEPROM_93C46_16BIT(config, "eeprom"); // not hooked up, seems unused
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
HOPPER(config, m_dispenser, attotime::from_msec(200), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_dispenser, attotime::from_msec(200));
// video hardware
m_screen->set_visarea(0x0, 0x180-1, 0x00, 0xf0-1); // still off by 1 because of different CRTC regs?

View File

@ -1446,7 +1446,7 @@ void sigmab98_state::sigmab98(machine_config &config)
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
EEPROM_93C46_16BIT(config, "eeprom");
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH );
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(200));
// video hardware
SCREEN(config, m_screen, SCREEN_TYPE_RASTER);
@ -1518,7 +1518,7 @@ void lufykzku_state::lufykzku(machine_config &config)
// No EEPROM
MB3773(config, m_watchdog, 0);
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH );
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(200));
// 2 x 8-bit parallel/serial converters
TTL165(config, m_dsw_shifter[0]);
@ -1595,7 +1595,7 @@ void sammymdl_state::sammymdl(machine_config &config)
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0); // battery backed RAM
EEPROM_93C46_8BIT(config, "eeprom");
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH );
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(200));
WATCHDOG_TIMER(config, "watchdog");
@ -1642,8 +1642,8 @@ void sammymdl_state::gocowboy(machine_config &config)
TIMER(config, "scantimer").configure_scanline(FUNC(sammymdl_state::gocowboy_int), "screen", 0, 1);
config.device_remove("hopper");
TICKET_DISPENSER(config, m_hopper_small, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH );
TICKET_DISPENSER(config, m_hopper_large, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH );
TICKET_DISPENSER(config, m_hopper_small, attotime::from_msec(200));
TICKET_DISPENSER(config, m_hopper_large, attotime::from_msec(200));
m_screen->screen_vblank().set_nop();
}

View File

@ -2808,7 +2808,7 @@ void subsino_state::victor21(machine_config &config)
ppi.tri_pb_callback().set_constant(0);
ppi.in_pc_callback().set_ioport("INC");
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(200));
// video hardware
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));
@ -2850,7 +2850,7 @@ void subsino_state::crsbingo(machine_config &config)
m_maincpu->set_addrmap(AS_PROGRAM, &subsino_state::crsbingo_map);
m_maincpu->set_addrmap(AS_IO, &subsino_state::subsino_iomap);
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(200));
// video hardware
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));
@ -2891,7 +2891,7 @@ void subsino_state::srider(machine_config &config)
ppi2.in_pb_callback().set_ioport("INA");
ppi2.in_pc_callback().set_ioport("INB");
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(200));
// video hardware
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));
@ -2954,7 +2954,7 @@ void subsino_state::tisub(machine_config &config)
ppi2.in_pb_callback().set_ioport("INA");
ppi2.in_pc_callback().set_ioport("INB");
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(200));
// video hardware
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));
@ -3009,7 +3009,7 @@ void subsino_state::stbsub(machine_config &config)
ppi2.in_pc_callback().set_ioport("INA");
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(200));
// video hardware
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));

View File

@ -2787,7 +2787,7 @@ void subsino2_state::bishjan(machine_config &config)
io.in_port_callback<9>().set_ioport("RESET");
io.out_port_callback<9>().set(FUNC(subsino2_state::bishjan_outputs_w));
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(200));
DS2430A(config, m_eeprom).set_timing_scale(0.24);
@ -3028,14 +3028,14 @@ void subsino2_state::xtrain(machine_config &config)
io.out_port_callback<8>().set(FUNC(subsino2_state::xtrain_out_b_w)); // B
io.out_port_callback<9>().set(FUNC(subsino2_state::xtrain_out_a_w)); // A
HOPPER(config, m_hopper, attotime::from_msec(200), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_hopper, attotime::from_msec(200));
}
void subsino2_state::ptrain(machine_config &config)
{
xtrain(config);
TICKET_DISPENSER(config, m_ticket, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_ticket, attotime::from_msec(200));
}
void subsino2_state::expcard(machine_config &config)

View File

@ -226,7 +226,7 @@ void tonton_state::tonton(machine_config &config)
m_v9938->int_cb().set_inputline(m_maincpu, 0);
SCREEN(config, "screen", SCREEN_TYPE_RASTER);
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(HOPPER_PULSE), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(HOPPER_PULSE));
// sound hardware
SPEAKER(config, "mono").front_center();

View File

@ -285,7 +285,7 @@ void cchance_state::cchance(machine_config &config)
TIMER(config, "scantimer").configure_scanline(FUNC(cchance_state::scanline_cb), "screen", 0, 1);
TAITOIO_OPTO(config, "opto", 0);
HOPPER(config, m_hopper, attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_hopper, attotime::from_msec(100));
X1_001(config, m_spritegen, 12_MHz_XTAL, m_palette, gfx_cchance);
m_spritegen->set_fg_yoffsets(-0x12, 0x0e);

View File

@ -455,7 +455,7 @@ void taitoo_state::taitoo(machine_config &config)
m_tc0080vco->set_bgflip_yoffs(-2);
m_tc0080vco->set_palette(m_palette);
HOPPER(config, m_hopper, attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_hopper, attotime::from_msec(100));
m_hopper->dispense_handler().set(FUNC(taitoo_state::hopper_int_cb));
SPEAKER(config, "mono").front_center();

View File

@ -404,8 +404,6 @@ To reset the NVRAM in Othello Derby, hold P1 Button 1 down while booting.
#include "speaker.h"
#define PWRKICK_HOPPER_PULSE 50 // time between hopper pulses in milliseconds (probably wrong)
//#define TRUXTON2_STEREO /* Uncomment to hear truxton2 music in stereo */
constexpr unsigned toaplan2_state::T2PALETTE_LENGTH;
@ -4188,7 +4186,7 @@ void pwrkick_state::pwrkick(machine_config &config) // Sunwise SW931201-1 PCB (2
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(PWRKICK_HOPPER_PULSE), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH);
TICKET_DISPENSER(config, m_hopper, attotime::from_msec(50)); // duration is probably wrong
/* video hardware */
SCREEN(config, m_screen, SCREEN_TYPE_RASTER);

View File

@ -274,7 +274,7 @@ void dinaris_state::dice(machine_config &config)
m_ppi2->out_pc_callback().set(FUNC(dinaris_state::ppi2c_w));
NVRAM(config, m_nvram, nvram_device::DEFAULT_ALL_0);
HOPPER(config, m_hopper, attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH);
HOPPER(config, m_hopper, attotime::from_msec(100));
}
ROM_START(dindice)