mirror of
https://github.com/holub/mame
synced 2025-05-24 14:56:21 +03:00
03986: All sets in enigma2.c: Most Dip Switches no longer function [Phil Bennett]
This commit is contained in:
parent
508d845437
commit
3bd34bad40
@ -173,7 +173,6 @@ static MACHINE_RESET( enigma2 )
|
|||||||
cputag_set_input_line(machine, "audiocpu", INPUT_LINE_NMI, CLEAR_LINE);
|
cputag_set_input_line(machine, "audiocpu", INPUT_LINE_NMI, CLEAR_LINE);
|
||||||
|
|
||||||
state->last_sound_data = 0;
|
state->last_sound_data = 0;
|
||||||
state->protection_data = 0;
|
|
||||||
state->flip_screen = 0;
|
state->flip_screen = 0;
|
||||||
state->sound_latch = 0;
|
state->sound_latch = 0;
|
||||||
state->blink_count = 0;
|
state->blink_count = 0;
|
||||||
@ -359,6 +358,8 @@ static READ8_HANDLER( dip_switch_r )
|
|||||||
switch (offset)
|
switch (offset)
|
||||||
{
|
{
|
||||||
case 0x01:
|
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)
|
if (state->protection_data != 0xff)
|
||||||
ret = state->protection_data ^ 0x88;
|
ret = state->protection_data ^ 0x88;
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user