/*--------------- / Game handling /----------------*/ static void init_afm(void) { core_gameData = &afmGameData; install_mem_write_handler(0, 0x3fb0, 0x3fff, afm_wpc_w); HC4094_init(&hc4094afm); HC4094_oe_w(0, 1); HC4094_oe_w(1, 1); HC4094_strobe_w(0, 1); HC4094_strobe_w(1, 1); }
/*--------------- / Game handling /----------------*/ static void init_ww(void) { // LH-5 version needs a longer GI smoothing delay, so we just check for years 2000 and up! core_gameData = Machine->gamedrv->year[0] == '2' ? &lh5GameData : &wwGameData; install_mem_write_handler(0, 0x3fb0, 0x3fff, ww_wpc_w); HC4094_init(&hc4094ww); HC4094_oe_w(0, 1); HC4094_oe_w(1, 1); HC4094_strobe_w(0, 1); HC4094_strobe_w(1, 1); }
static MACHINE_INIT(nsm) { memset(&locals, 0, sizeof(locals)); HC4094_init(&hc4094nsm); }