From 9c683e4eb4279e3ed7c69b840818f6d113e020a0 Mon Sep 17 00:00:00 2001 From: Dirk Best Date: Mon, 1 May 2017 01:51:02 +0200 Subject: [PATCH] chinsan: Identify coinage and demo sound dip switches --- src/mame/drivers/chinsan.cpp | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/mame/drivers/chinsan.cpp b/src/mame/drivers/chinsan.cpp index de6bdccda13..bb2d2951e29 100644 --- a/src/mame/drivers/chinsan.cpp +++ b/src/mame/drivers/chinsan.cpp @@ -7,7 +7,7 @@ © 1987 Sanritsu TODO: - - Figure out dip switches + - Figure out the rest of the dip switches - Verify clock speeds - Raw screen params @@ -118,12 +118,20 @@ ADDRESS_MAP_END static INPUT_PORTS_START( chinsan ) PORT_START("DSW1") - PORT_DIPUNKNOWN_DIPLOC(0x01, 0x01, "SW-1:1") - PORT_DIPUNKNOWN_DIPLOC(0x02, 0x02, "SW-1:2") - PORT_DIPUNKNOWN_DIPLOC(0x04, 0x04, "SW-1:3") + PORT_DIPNAME(0x07, 0x07, DEF_STR( Coinage )) PORT_DIPLOCATION("SW-1:1,2,3") + PORT_DIPSETTING( 0x00, DEF_STR( 1C_5C )) + PORT_DIPSETTING( 0x01, DEF_STR( 1C_4C )) + PORT_DIPSETTING( 0x02, DEF_STR( 1C_3C )) + PORT_DIPSETTING( 0x03, DEF_STR( 1C_2C )) + PORT_DIPSETTING( 0x04, DEF_STR( 4C_1C )) + PORT_DIPSETTING( 0x05, DEF_STR( 3C_1C )) + PORT_DIPSETTING( 0x06, DEF_STR( 2C_1C )) + PORT_DIPSETTING( 0x07, DEF_STR( 1C_1C )) PORT_DIPUNKNOWN_DIPLOC(0x08, 0x08, "SW-1:4") PORT_DIPUNKNOWN_DIPLOC(0x10, 0x10, "SW-1:5") - PORT_DIPUNKNOWN_DIPLOC(0x20, 0x20, "SW-1:6") + PORT_DIPNAME(0x20, 0x00, DEF_STR( Demo_Sounds )) PORT_DIPLOCATION("SW-1:6") + PORT_DIPSETTING( 0x00, DEF_STR( On )) + PORT_DIPSETTING( 0x20, DEF_STR( Off )) PORT_DIPUNKNOWN_DIPLOC(0x40, 0x40, "SW-1:7") PORT_DIPUNKNOWN_DIPLOC(0x80, 0x80, "SW-1:8")