03986: All sets in enigma2.c: Most Dip Switches no longer function [Phil Bennett]

This commit is contained in:
Phil Bennett 2010-08-18 12:28:22 +00:00
parent 508d845437
commit 3bd34bad40

View File

@ -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