mirror of
https://github.com/holub/mame
synced 2025-05-25 07:15:25 +03:00
- Used manuals for Road Fighter and Hyper Sports to verify and add DIP LOCATIONS
for the driver. I adjusted the default settings also based on manual information. There was duplicate DSW1 data between games which I created a separate assignment for and PORT_INCLUDE to allow each game to use it. This .DIFF is based on 0.130u1 sources. Tafoid tafoid@yahoo.com
This commit is contained in:
parent
ea4404ab4e
commit
71c445ce02
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
Based on drivers from Juno First emulator by Chris Hardy (chrish@kcbbs.gen.nz)
|
Based on drivers from Juno First emulator by Chris Hardy (chrish@kcbbs.gen.nz)
|
||||||
|
|
||||||
|
- DIPs verified and defaults (when avaialble) are set from manuals
|
||||||
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
#include "driver.h"
|
#include "driver.h"
|
||||||
@ -131,6 +133,46 @@ static ADDRESS_MAP_START( sound_writemem, ADDRESS_SPACE_PROGRAM, 8 )
|
|||||||
AM_RANGE(0xe002, 0xe002) AM_DEVWRITE("sn", konami_SN76496_w) /* This address triggers the SN chip to read the data port. */
|
AM_RANGE(0xe002, 0xe002) AM_DEVWRITE("sn", konami_SN76496_w) /* This address triggers the SN chip to read the data port. */
|
||||||
ADDRESS_MAP_END
|
ADDRESS_MAP_END
|
||||||
|
|
||||||
|
static INPUT_PORTS_START( shared_dsw1 )
|
||||||
|
/* This DSW1 is shared between games */
|
||||||
|
PORT_START("DSW1")
|
||||||
|
PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:1,2,3,4")
|
||||||
|
PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) )
|
||||||
|
PORT_DIPSETTING( 0x05, DEF_STR( 3C_1C ) )
|
||||||
|
PORT_DIPSETTING( 0x08, DEF_STR( 2C_1C ) )
|
||||||
|
PORT_DIPSETTING( 0x04, DEF_STR( 3C_2C ) )
|
||||||
|
PORT_DIPSETTING( 0x01, DEF_STR( 4C_3C ) )
|
||||||
|
PORT_DIPSETTING( 0x0f, DEF_STR( 1C_1C ) )
|
||||||
|
PORT_DIPSETTING( 0x03, DEF_STR( 3C_4C ) )
|
||||||
|
PORT_DIPSETTING( 0x07, DEF_STR( 2C_3C ) )
|
||||||
|
PORT_DIPSETTING( 0x0e, DEF_STR( 1C_2C ) )
|
||||||
|
PORT_DIPSETTING( 0x06, DEF_STR( 2C_5C ) )
|
||||||
|
PORT_DIPSETTING( 0x0d, DEF_STR( 1C_3C ) )
|
||||||
|
PORT_DIPSETTING( 0x0c, DEF_STR( 1C_4C ) )
|
||||||
|
PORT_DIPSETTING( 0x0b, DEF_STR( 1C_5C ) )
|
||||||
|
PORT_DIPSETTING( 0x0a, DEF_STR( 1C_6C ) )
|
||||||
|
PORT_DIPSETTING( 0x09, DEF_STR( 1C_7C ) )
|
||||||
|
PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) )
|
||||||
|
PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:5,6,7,8")
|
||||||
|
PORT_DIPSETTING( 0x20, DEF_STR( 4C_1C ) )
|
||||||
|
PORT_DIPSETTING( 0x50, DEF_STR( 3C_1C ) )
|
||||||
|
PORT_DIPSETTING( 0x80, DEF_STR( 2C_1C ) )
|
||||||
|
PORT_DIPSETTING( 0x40, DEF_STR( 3C_2C ) )
|
||||||
|
PORT_DIPSETTING( 0x10, DEF_STR( 4C_3C ) )
|
||||||
|
PORT_DIPSETTING( 0xf0, DEF_STR( 1C_1C ) )
|
||||||
|
PORT_DIPSETTING( 0x30, DEF_STR( 3C_4C ) )
|
||||||
|
PORT_DIPSETTING( 0x70, DEF_STR( 2C_3C ) )
|
||||||
|
PORT_DIPSETTING( 0xe0, DEF_STR( 1C_2C ) )
|
||||||
|
PORT_DIPSETTING( 0x60, DEF_STR( 2C_5C ) )
|
||||||
|
PORT_DIPSETTING( 0xd0, DEF_STR( 1C_3C ) )
|
||||||
|
PORT_DIPSETTING( 0xc0, DEF_STR( 1C_4C ) )
|
||||||
|
PORT_DIPSETTING( 0xb0, DEF_STR( 1C_5C ) )
|
||||||
|
PORT_DIPSETTING( 0xa0, DEF_STR( 1C_6C ) )
|
||||||
|
PORT_DIPSETTING( 0x90, DEF_STR( 1C_7C ) )
|
||||||
|
PORT_DIPSETTING( 0x00, "Disabled" )
|
||||||
|
/* 0x00 disables Coin 2. It still accepts coins and makes the sound, but
|
||||||
|
it doesn't give you any credit */
|
||||||
|
INPUT_PORTS_END
|
||||||
|
|
||||||
|
|
||||||
static INPUT_PORTS_START( hyperspt )
|
static INPUT_PORTS_START( hyperspt )
|
||||||
@ -166,58 +208,22 @@ static INPUT_PORTS_START( hyperspt )
|
|||||||
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(4) //PORT_COCKTAIL
|
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(4) //PORT_COCKTAIL
|
||||||
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||||
|
|
||||||
PORT_START("DSW1")
|
PORT_INCLUDE(shared_dsw1)
|
||||||
PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) )
|
|
||||||
PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) )
|
|
||||||
PORT_DIPSETTING( 0x05, DEF_STR( 3C_1C ) )
|
|
||||||
PORT_DIPSETTING( 0x08, DEF_STR( 2C_1C ) )
|
|
||||||
PORT_DIPSETTING( 0x04, DEF_STR( 3C_2C ) )
|
|
||||||
PORT_DIPSETTING( 0x01, DEF_STR( 4C_3C ) )
|
|
||||||
PORT_DIPSETTING( 0x0f, DEF_STR( 1C_1C ) )
|
|
||||||
PORT_DIPSETTING( 0x03, DEF_STR( 3C_4C ) )
|
|
||||||
PORT_DIPSETTING( 0x07, DEF_STR( 2C_3C ) )
|
|
||||||
PORT_DIPSETTING( 0x0e, DEF_STR( 1C_2C ) )
|
|
||||||
PORT_DIPSETTING( 0x06, DEF_STR( 2C_5C ) )
|
|
||||||
PORT_DIPSETTING( 0x0d, DEF_STR( 1C_3C ) )
|
|
||||||
PORT_DIPSETTING( 0x0c, DEF_STR( 1C_4C ) )
|
|
||||||
PORT_DIPSETTING( 0x0b, DEF_STR( 1C_5C ) )
|
|
||||||
PORT_DIPSETTING( 0x0a, DEF_STR( 1C_6C ) )
|
|
||||||
PORT_DIPSETTING( 0x09, DEF_STR( 1C_7C ) )
|
|
||||||
PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) )
|
|
||||||
PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) )
|
|
||||||
PORT_DIPSETTING( 0x20, DEF_STR( 4C_1C ) )
|
|
||||||
PORT_DIPSETTING( 0x50, DEF_STR( 3C_1C ) )
|
|
||||||
PORT_DIPSETTING( 0x80, DEF_STR( 2C_1C ) )
|
|
||||||
PORT_DIPSETTING( 0x40, DEF_STR( 3C_2C ) )
|
|
||||||
PORT_DIPSETTING( 0x10, DEF_STR( 4C_3C ) )
|
|
||||||
PORT_DIPSETTING( 0xf0, DEF_STR( 1C_1C ) )
|
|
||||||
PORT_DIPSETTING( 0x30, DEF_STR( 3C_4C ) )
|
|
||||||
PORT_DIPSETTING( 0x70, DEF_STR( 2C_3C ) )
|
|
||||||
PORT_DIPSETTING( 0xe0, DEF_STR( 1C_2C ) )
|
|
||||||
PORT_DIPSETTING( 0x60, DEF_STR( 2C_5C ) )
|
|
||||||
PORT_DIPSETTING( 0xd0, DEF_STR( 1C_3C ) )
|
|
||||||
PORT_DIPSETTING( 0xc0, DEF_STR( 1C_4C ) )
|
|
||||||
PORT_DIPSETTING( 0xb0, DEF_STR( 1C_5C ) )
|
|
||||||
PORT_DIPSETTING( 0xa0, DEF_STR( 1C_6C ) )
|
|
||||||
PORT_DIPSETTING( 0x90, DEF_STR( 1C_7C ) )
|
|
||||||
PORT_DIPSETTING( 0x00, "Disabled" )
|
|
||||||
/* 0x00 disables Coin 2. It still accepts coins and makes the sound, but
|
|
||||||
it doesn't give you any credit */
|
|
||||||
|
|
||||||
PORT_START("DSW2")
|
PORT_START("DSW2")
|
||||||
PORT_DIPNAME( 0x01, 0x00, "After Last Event" )
|
PORT_DIPNAME( 0x01, 0x01, "After Last Event" ) PORT_DIPLOCATION("SW2:1")
|
||||||
PORT_DIPSETTING( 0x01, "Game Over" )
|
PORT_DIPSETTING( 0x01, "Game Over" )
|
||||||
PORT_DIPSETTING( 0x00, "Game Continues" )
|
PORT_DIPSETTING( 0x00, "Game Continues" )
|
||||||
PORT_DIPNAME( 0x02, 0x00, DEF_STR( Cabinet ) )
|
PORT_DIPNAME( 0x02, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW2:2")
|
||||||
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
|
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
|
||||||
PORT_DIPSETTING( 0x02, DEF_STR( Cocktail ) )
|
PORT_DIPSETTING( 0x02, DEF_STR( Cocktail ) )
|
||||||
PORT_DIPNAME( 0x04, 0x00, DEF_STR( Demo_Sounds ) )
|
PORT_DIPNAME( 0x04, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:3")
|
||||||
PORT_DIPSETTING( 0x04, DEF_STR( Off ) )
|
PORT_DIPSETTING( 0x04, DEF_STR( Off ) )
|
||||||
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
|
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
|
||||||
PORT_DIPNAME( 0x08, 0x08, "World Records" )
|
PORT_DIPNAME( 0x08, 0x08, "World Records" ) PORT_DIPLOCATION("SW2:4")
|
||||||
PORT_DIPSETTING( 0x08, "Don't Erase" )
|
PORT_DIPSETTING( 0x08, "Don't Erase" )
|
||||||
PORT_DIPSETTING( 0x00, "Erase on Reset" )
|
PORT_DIPSETTING( 0x00, "Erase on Reset" )
|
||||||
PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Difficulty ) )
|
PORT_DIPNAME( 0xf0, 0x40, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:5,6,7,8")
|
||||||
PORT_DIPSETTING( 0xf0, "Easy 1" )
|
PORT_DIPSETTING( 0xf0, "Easy 1" )
|
||||||
PORT_DIPSETTING( 0xe0, "Easy 2" )
|
PORT_DIPSETTING( 0xe0, "Easy 2" )
|
||||||
PORT_DIPSETTING( 0xd0, "Easy 3" )
|
PORT_DIPSETTING( 0xd0, "Easy 3" )
|
||||||
@ -236,6 +242,7 @@ static INPUT_PORTS_START( hyperspt )
|
|||||||
PORT_DIPSETTING( 0x00, "Difficult 4" )
|
PORT_DIPSETTING( 0x00, "Difficult 4" )
|
||||||
INPUT_PORTS_END
|
INPUT_PORTS_END
|
||||||
|
|
||||||
|
|
||||||
static INPUT_PORTS_START( roadf )
|
static INPUT_PORTS_START( roadf )
|
||||||
PORT_START("SYSTEM")
|
PORT_START("SYSTEM")
|
||||||
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
|
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
|
||||||
@ -267,71 +274,34 @@ static INPUT_PORTS_START( roadf )
|
|||||||
PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* the game doesn't boot if this is 1 */
|
PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* the game doesn't boot if this is 1 */
|
||||||
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||||
|
|
||||||
PORT_START("DSW1")
|
PORT_INCLUDE(shared_dsw1)
|
||||||
PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) )
|
|
||||||
PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) )
|
|
||||||
PORT_DIPSETTING( 0x05, DEF_STR( 3C_1C ) )
|
|
||||||
PORT_DIPSETTING( 0x08, DEF_STR( 2C_1C ) )
|
|
||||||
PORT_DIPSETTING( 0x04, DEF_STR( 3C_2C ) )
|
|
||||||
PORT_DIPSETTING( 0x01, DEF_STR( 4C_3C ) )
|
|
||||||
PORT_DIPSETTING( 0x0f, DEF_STR( 1C_1C ) )
|
|
||||||
PORT_DIPSETTING( 0x03, DEF_STR( 3C_4C ) )
|
|
||||||
PORT_DIPSETTING( 0x07, DEF_STR( 2C_3C ) )
|
|
||||||
PORT_DIPSETTING( 0x0e, DEF_STR( 1C_2C ) )
|
|
||||||
PORT_DIPSETTING( 0x06, DEF_STR( 2C_5C ) )
|
|
||||||
PORT_DIPSETTING( 0x0d, DEF_STR( 1C_3C ) )
|
|
||||||
PORT_DIPSETTING( 0x0c, DEF_STR( 1C_4C ) )
|
|
||||||
PORT_DIPSETTING( 0x0b, DEF_STR( 1C_5C ) )
|
|
||||||
PORT_DIPSETTING( 0x0a, DEF_STR( 1C_6C ) )
|
|
||||||
PORT_DIPSETTING( 0x09, DEF_STR( 1C_7C ) )
|
|
||||||
PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) )
|
|
||||||
PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) )
|
|
||||||
PORT_DIPSETTING( 0x20, DEF_STR( 4C_1C ) )
|
|
||||||
PORT_DIPSETTING( 0x50, DEF_STR( 3C_1C ) )
|
|
||||||
PORT_DIPSETTING( 0x80, DEF_STR( 2C_1C ) )
|
|
||||||
PORT_DIPSETTING( 0x40, DEF_STR( 3C_2C ) )
|
|
||||||
PORT_DIPSETTING( 0x10, DEF_STR( 4C_3C ) )
|
|
||||||
PORT_DIPSETTING( 0xf0, DEF_STR( 1C_1C ) )
|
|
||||||
PORT_DIPSETTING( 0x30, DEF_STR( 3C_4C ) )
|
|
||||||
PORT_DIPSETTING( 0x70, DEF_STR( 2C_3C ) )
|
|
||||||
PORT_DIPSETTING( 0xe0, DEF_STR( 1C_2C ) )
|
|
||||||
PORT_DIPSETTING( 0x60, DEF_STR( 2C_5C ) )
|
|
||||||
PORT_DIPSETTING( 0xd0, DEF_STR( 1C_3C ) )
|
|
||||||
PORT_DIPSETTING( 0xc0, DEF_STR( 1C_4C ) )
|
|
||||||
PORT_DIPSETTING( 0xb0, DEF_STR( 1C_5C ) )
|
|
||||||
PORT_DIPSETTING( 0xa0, DEF_STR( 1C_6C ) )
|
|
||||||
PORT_DIPSETTING( 0x90, DEF_STR( 1C_7C ) )
|
|
||||||
PORT_DIPSETTING( 0x00, "Disabled" )
|
|
||||||
/* 0x00 disables Coin 2. It still accepts coins and makes the sound, but
|
|
||||||
it doesn't give you any credit */
|
|
||||||
|
|
||||||
PORT_START("DSW2")
|
PORT_START("DSW2")
|
||||||
PORT_DIPNAME( 0x01, 0x00, DEF_STR( Allow_Continue ) )
|
PORT_DIPNAME( 0x01, 0x01, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW2:1")
|
||||||
PORT_DIPSETTING( 0x01, DEF_STR( No ) )
|
PORT_DIPSETTING( 0x01, DEF_STR( No ) )
|
||||||
PORT_DIPSETTING( 0x00, DEF_STR( Yes ) )
|
PORT_DIPSETTING( 0x00, DEF_STR( Yes ) )
|
||||||
PORT_DIPNAME( 0x06, 0x06, "Number of Opponents" )
|
PORT_DIPNAME( 0x06, 0x04, "Number of Opponents" ) PORT_DIPLOCATION("SW2:2,3")
|
||||||
PORT_DIPSETTING( 0x06, DEF_STR( Easy ) )
|
PORT_DIPSETTING( 0x06, "Few" )
|
||||||
PORT_DIPSETTING( 0x04, DEF_STR( Medium ) )
|
PORT_DIPSETTING( 0x04, DEF_STR( Normal ) )
|
||||||
PORT_DIPSETTING( 0x02, DEF_STR( Hard ) )
|
PORT_DIPSETTING( 0x02, "Many" )
|
||||||
PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) )
|
PORT_DIPSETTING( 0x00, "Great Many" )
|
||||||
PORT_DIPNAME( 0x08, 0x08, "Speed of Opponents" )
|
PORT_DIPNAME( 0x08, 0x08, "Speed of Opponents" ) PORT_DIPLOCATION("SW2:4")
|
||||||
PORT_DIPSETTING( 0x08, DEF_STR( Easy ) )
|
PORT_DIPSETTING( 0x08, "Fast" )
|
||||||
PORT_DIPSETTING( 0x00, "Difficult" )
|
PORT_DIPSETTING( 0x00, "Slow" )
|
||||||
PORT_DIPNAME( 0x30, 0x30, "Fuel Consumption" )
|
PORT_DIPNAME( 0x30, 0x20, "Fuel Consumption" ) PORT_DIPLOCATION("SW2:5,6")
|
||||||
PORT_DIPSETTING( 0x30, DEF_STR( Easy ) )
|
PORT_DIPSETTING( 0x30, "Slow" )
|
||||||
PORT_DIPSETTING( 0x20, DEF_STR( Medium ) )
|
PORT_DIPSETTING( 0x20, DEF_STR( Normal ) )
|
||||||
PORT_DIPSETTING( 0x10, DEF_STR( Hard ) )
|
PORT_DIPSETTING( 0x10, "Fast" )
|
||||||
PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) )
|
PORT_DIPSETTING( 0x00, "Very Fast" )
|
||||||
PORT_DIPNAME( 0x40, 0x00, DEF_STR( Cabinet ) )
|
PORT_DIPNAME( 0x40, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW2:7")
|
||||||
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
|
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
|
||||||
PORT_DIPSETTING( 0x40, DEF_STR( Cocktail ) )
|
PORT_DIPSETTING( 0x40, DEF_STR( Cocktail ) )
|
||||||
PORT_DIPNAME( 0x80, 0x00, DEF_STR( Demo_Sounds ) )
|
PORT_DIPNAME( 0x80, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:8")
|
||||||
PORT_DIPSETTING( 0x80, DEF_STR( Off ) )
|
PORT_DIPSETTING( 0x80, DEF_STR( Off ) )
|
||||||
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
|
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
|
||||||
INPUT_PORTS_END
|
INPUT_PORTS_END
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
static const gfx_layout hyperspt_charlayout =
|
static const gfx_layout hyperspt_charlayout =
|
||||||
{
|
{
|
||||||
8,8, /* 8*8 sprites */
|
8,8, /* 8*8 sprites */
|
||||||
|
Loading…
Reference in New Issue
Block a user