Fix for [MT03470]: backfirea: Game mode setting error on startup

as per comment in the source, only low IN2 should be used with vblank from IN3
This commit is contained in:
Fabio Priuli 2009-10-09 19:07:02 +00:00
parent a52fce206d
commit 0f3381a831

View File

@ -229,7 +229,7 @@ static READ32_HANDLER(backfire_eeprom_r)
/* some kind of screen indicator? checked by backfira set before it will boot */ /* some kind of screen indicator? checked by backfira set before it will boot */
int backfire_screen = mame_rand(space->machine) & 1; int backfire_screen = mame_rand(space->machine) & 1;
return ((eeprom_read_bit() << 24) | input_port_read(space->machine, "IN0") return ((eeprom_read_bit() << 24) | input_port_read(space->machine, "IN0")
| ((input_port_read(space->machine, "IN2") & ~0x40) <<16) | ((input_port_read(space->machine, "IN2") & 0xbf) << 16)
| ((input_port_read(space->machine, "IN3") & 0x40) << 16)) ^ (backfire_screen << 26) ; | ((input_port_read(space->machine, "IN3") & 0x40) << 16)) ^ (backfire_screen << 26) ;
} }