Previous 199869 Revisions Next

r32240 Sunday 21st September, 2014 at 01:35:27 UTC by hap
zerotm2k inputs
[src/mame/audio]seibu.h
[src/mame/drivers]r2dx_v33.c

trunk/src/mame/drivers/r2dx_v33.c
r32239r32240
456456
457457static ADDRESS_MAP_START( zerotm2k_map, AS_PROGRAM, 16, r2dx_v33_state )
458458   AM_IMPORT_FROM( nzeroteam_base_map )
459   AM_RANGE(0x00740, 0x00741) AM_READ_PORT("DSW") // doesn't have dips but address is still read (maybe service switch, check)
459   AM_RANGE(0x00740, 0x00741) AM_READ_PORT("P3_P4")
460460   AM_RANGE(0x00744, 0x00745) AM_READ_PORT("INPUT")
461461   AM_RANGE(0x0074c, 0x0074d) AM_READ_PORT("SYSTEM")
462462   AM_RANGE(0x00748, 0x00749) AM_WRITE(zerotm2k_eeprom_w)
r32239r32240
561561   PORT_DIPNAME( 0x0040, 0x0040, "Test Mode" )
562562   PORT_DIPSETTING(      0x0040, DEF_STR( Off ) )
563563   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
564   PORT_BIT( 0xff80, IP_ACTIVE_LOW, IPT_UNUSED )
564   PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNUSED )
565   PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED )
565566
566567   PORT_START("INPUT")
567568   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
r32239r32240
637638INPUT_PORTS_END
638639
639640static INPUT_PORTS_START( zerotm2k )
640   PORT_INCLUDE( nzerotea )
641   
642   PORT_MODIFY("INPUT")
641   SEIBU_COIN_INPUTS_INVERT    /* coin inputs read through sound cpu */
642
643   PORT_MODIFY("COIN")
644   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN3 ) PORT_IMPULSE(4)
645   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN4 ) PORT_IMPULSE(4)
646
647   PORT_START("SYSTEM")
648   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 )
649   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_START2 )
650   PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_START3 )
651   PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_START4 )
652   PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_SERVICE1 )
653   PORT_SERVICE_NO_TOGGLE( 0x0020, IP_ACTIVE_LOW )
654   PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN )
655   PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN )
656   PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED )
657
658   PORT_START("INPUT")
659   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
660   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
661   PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
662   PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
663   PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
664   PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
665   PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1)
666   PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN )
667   PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2)
668   PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2)
669   PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2)
670   PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2)
671   PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
672   PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2)
673   PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2)
643674   PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_READ_LINE_DEVICE_MEMBER("eeprom", eeprom_serial_93cxx_device, do_read)
675
676   PORT_START("P3_P4")
677   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(3)
678   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(3)
679   PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(3)
680   PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(3)
681   PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3)
682   PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3)
683   PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(3)
684   PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN )
685   PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(4)
686   PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(4)
687   PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(4)
688   PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(4)
689   PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(4)
690   PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(4)
691   PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(4)
692   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
644693INPUT_PORTS_END
645694
646695
r32239r32240
694743   /* sound hardware */
695744   MCFG_SPEAKER_STANDARD_MONO("mono")
696745
697   MCFG_OKIM6295_ADD("oki", 1000000, OKIM6295_PIN7_HIGH) // clock frequency & pin 7 not verified
746   MCFG_OKIM6295_ADD("oki", XTAL_28_63636MHz/28, OKIM6295_PIN7_HIGH) // clock frequency & pin 7 not verified
698747   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5)
699748   MCFG_DEVICE_ADDRESS_MAP(AS_0, r2dx_oki_map)
700749MACHINE_CONFIG_END
trunk/src/mame/audio/seibu.h
r32239r32240
138138   PORT_START("COIN")                                              \
139139   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_IMPULSE(4)     \
140140   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_IMPULSE(4)     \
141   PORT_BIT( 0xfc, IP_ACTIVE_HIGH, IPT_UNUSED )
141   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED )                    \
142   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED )                    \
143   PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED )                    \
144   PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED )                    \
145   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED )                    \
146   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED )
142147
143148#define SEIBU_COIN_INPUTS_INVERT                                    \
144149   PORT_START("COIN")                                              \
145150   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(4)      \
146151   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_IMPULSE(4)      \
147   PORT_BIT( 0xfc, IP_ACTIVE_LOW, IPT_UNUSED )
152   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED )                    \
153   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED )                    \
154   PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED )                    \
155   PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED )                    \
156   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED )                    \
157   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED )
148158
149159
150160#define SEIBU_SOUND_SYSTEM_CPU(freq)                                \

Previous 199869 Revisions Next


© 1997-2024 The MAME Team