ringking: NMI gate was misconfigured; works again now

input_merger.cpp: Add a little logging (nw)
This commit is contained in:
AJR 2017-10-26 18:01:31 -04:00
parent 95ad1a3d81
commit 4fafc9d5cb
2 changed files with 5 additions and 1 deletions

View File

@ -15,6 +15,9 @@
#include <algorithm>
#include <iterator>
//#define VERBOSE 1
#include "logmacro.h"
//**************************************************************************
// DEVICE DEFINITIONS
@ -79,6 +82,7 @@ TIMER_CALLBACK_MEMBER(input_merger_device::update_state)
{
if (BIT(m_state, param >> 1) != BIT(param, 0))
{
LOG("state[%d] = %d\n", param >> 1, BIT(param, 0));
m_state ^= u32(1) << (param >> 1);
m_output_handler((m_state ^ m_xorval) ? m_active : !m_active);
}

View File

@ -524,7 +524,7 @@ static MACHINE_CONFIG_START( ringking )
MCFG_CPU_ADD("sprite", Z80, 4000000) /* 4.0 MHz */
MCFG_CPU_PROGRAM_MAP(ringking_sprite_map)
MCFG_INPUT_MERGER_ANY_HIGH("nmigate")
MCFG_INPUT_MERGER_ALL_HIGH("nmigate")
MCFG_INPUT_MERGER_OUTPUT_HANDLER(INPUTLINE("maincpu", INPUT_LINE_NMI))
MCFG_DEVCB_CHAIN_OUTPUT(INPUTLINE("video", INPUT_LINE_NMI))
MCFG_DEVCB_CHAIN_OUTPUT(INPUTLINE("sprite", INPUT_LINE_NMI))