static MACHINE_INIT( trvquest ) { via_config(0, &via_0_interface); via_config(1, &via_1_interface); via_config(2, &via_2_interface); via_reset(); }
static MACHINE_INIT( gameplan ) { via_config(0, &via_0_interface); via_config(1, &via_1_interface); via_config(2, &via_2_interface); via_reset(); r6532_init(0, &r6532_interface); }
void uservia_reset() { via_reset(&uservia); uservia.read_portA = uservia_read_portA; uservia.read_portB = uservia_read_portB; uservia.write_portA = uservia_write_portA; uservia.write_portB = uservia_write_portB; uservia.set_cb2 = music4000_shift; uservia.intnum = 2; }
void via_init( struct Via65c22 *via, const char *name, void (*outa)(Uint8 mask, Uint8 data), void (*outb)(Uint8 mask, Uint8 data), void (*outsr)(Uint8 data), Uint8 (*ina)(Uint8 mask), Uint8 (*inb)(Uint8 mask), Uint8 (*insr)(void), void (*setint)(int level) ) { via->name = name; via->outa = outa ? outa : def_outa; via->outb = outb ? outb : def_outb; via->outsr = outsr ? outsr : def_outsr; via->ina = ina ? ina : def_ina; via->inb = inb ? inb : def_inb; via->insr = insr ? insr : def_insr; via->setint = setint ? setint : def_setint; via_reset(via); }
static MACHINE_RESET( trvquest ) { via_reset(); }
static MACHINE_RESET( bmcbowl ) { via_reset(); }
static MACHINE_RESET( ssystem3 ) { via_reset(); }