From a3beee28489853f4898c67e7cfd1404476110860 Mon Sep 17 00:00:00 2001 From: AJR Date: Fri, 14 Jul 2017 23:32:19 -0400 Subject: gladiatr: Invert coin counters; minor HW note (nw) --- src/mame/drivers/gladiatr.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/mame/drivers/gladiatr.cpp b/src/mame/drivers/gladiatr.cpp index 3ee592e6101..cf0f79247f2 100644 --- a/src/mame/drivers/gladiatr.cpp +++ b/src/mame/drivers/gladiatr.cpp @@ -295,9 +295,10 @@ READ8_MEMBER(gladiatr_state::ucpu_p2_r) WRITE8_MEMBER(gladiatr_state::ccpu_p2_w) { - // FIXME: active high or active low? (bootleg MCU never uses these outputs) - machine().bookkeeping().coin_counter_w(0, BIT(data, 6)); - machine().bookkeeping().coin_counter_w(1, BIT(data, 7)); + // almost certainly active low (bootleg MCU never uses these outputs, which makes them always high) + // coin counters and lockout pass through 4049 inverting buffer at 12L + machine().bookkeeping().coin_counter_w(0, !BIT(data, 6)); + machine().bookkeeping().coin_counter_w(1, !BIT(data, 7)); } READ_LINE_MEMBER(gladiatr_state::tclk_r) @@ -748,7 +749,7 @@ static MACHINE_CONFIG_START( gladiatr ) MCFG_CPU_PROGRAM_MAP(gladiatr_cpu3_map) MCFG_MACHINE_RESET_OVERRIDE(gladiatr_state,gladiator) - MCFG_NVRAM_ADD_0FILL("nvram") + MCFG_NVRAM_ADD_0FILL("nvram") // NEC uPD449 CMOS SRAM MCFG_DEVICE_ADD("cctl", I8741, XTAL_12MHz/2) /* verified on pcb */ MCFG_MCS48_PORT_T0_IN_CB(IOPORT("COINS")) MCFG_DEVCB_RSHIFT(3) -- cgit v1.2.3