/*--------------- / 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 WRITE_HANDLER(data_w) { int i; HC4094_data_w(0, GET_BIT0); for (i=0; i < 9; i++) { HC4094_strobe_w(i, 1); HC4094_clock_w(i, 1); HC4094_clock_w(i, 0); HC4094_strobe_w(i, 0); } }