Previous 199869 Revisions Next

r17902 Saturday 15th September, 2012 at 13:51:20 UTC by Ville Linde
gticlub.c: Workaround for lock/unlock errors in Hang Pilot.
[src/mame/drivers]gticlub.c

trunk/src/mame/drivers/gticlub.c
r17901r17902
675675   PORT_DIPSETTING( 0x00, DEF_STR( On ) )
676676
677677   PORT_START("AN0")         // Rudder
678   PORT_BIT( 0x3ff, 0x000, IPT_AD_STICK_X ) PORT_MINMAX(0x000,0x3ff) PORT_SENSITIVITY(35) PORT_KEYDELTA(5)
678   PORT_BIT( 0x3ff, 0x000, IPT_AD_STICK_X ) PORT_MINMAX(0x000,0x3ff) PORT_SENSITIVITY(35) PORT_KEYDELTA(5) PORT_REVERSE
679679
680680   PORT_START("AN1")         // Control Bar
681   PORT_BIT( 0x3ff, 0x000, IPT_AD_STICK_Y ) PORT_MINMAX(0x000,0x3ff) PORT_SENSITIVITY(35) PORT_KEYDELTA(5)
681   PORT_BIT( 0x3ff, 0x000, IPT_AD_STICK_Y ) PORT_MINMAX(0x000,0x3ff) PORT_SENSITIVITY(35) PORT_KEYDELTA(5) PORT_REVERSE
682682
683683   PORT_START("AN2")
684684   PORT_BIT( 0x3ff, 0x000, IPT_UNKNOWN )
r17901r17902
12221222
12231223   m_sharc_dataram_0 = auto_alloc_array(machine(), UINT32, 0x100000/4);
12241224   m_sharc_dataram_1 = auto_alloc_array(machine(), UINT32, 0x100000/4);
1225
1226   // workaround for lock/unlock errors
1227   UINT32 *rom = (UINT32*)machine().root_device().memregion("user1")->base();
1228   rom[(0x153ac^4) / 4] = 0x4e800020;
1229   rom[(0x15428^4) / 4] = 0x4e800020;
12251230}
12261231
12271232/*************************************************************************/

Previous 199869 Revisions Next


© 1997-2024 The MAME Team