From 3bd34bad4060c0b017c5919345b0ac8a3dbb0fe2 Mon Sep 17 00:00:00 2001 From: Phil Bennett Date: Wed, 18 Aug 2010 12:28:22 +0000 Subject: [PATCH] 03986: All sets in enigma2.c: Most Dip Switches no longer function [Phil Bennett] --- src/mame/drivers/enigma2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mame/drivers/enigma2.c b/src/mame/drivers/enigma2.c index 78077caf076..b7db17588a1 100644 --- a/src/mame/drivers/enigma2.c +++ b/src/mame/drivers/enigma2.c @@ -173,7 +173,6 @@ static MACHINE_RESET( enigma2 ) cputag_set_input_line(machine, "audiocpu", INPUT_LINE_NMI, CLEAR_LINE); state->last_sound_data = 0; - state->protection_data = 0; state->flip_screen = 0; state->sound_latch = 0; state->blink_count = 0; @@ -359,6 +358,8 @@ static READ8_HANDLER( dip_switch_r ) switch (offset) { case 0x01: + /* For the DIP switches to be read, protection_data must be + 0xff on reset. The AY8910 reset ensures this. */ if (state->protection_data != 0xff) ret = state->protection_data ^ 0x88; else