Previous 199869 Revisions Next

r19730 Saturday 22nd December, 2012 at 18:07:11 UTC by hap
(noticed nonstandard indentation)
[src/mame/drivers]sothello.c

trunk/src/mame/drivers/sothello.c
r19729r19730
244244ADDRESS_MAP_END
245245
246246static INPUT_PORTS_START( sothello )
247 PORT_START("INPUT1")
248  PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
249  PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
250  PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
251  PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
247   PORT_START("INPUT1")
248   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
249   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
250   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
251   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
252   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
253   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
254   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1)
255   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1)
252256
253  PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
254  PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
255  PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1)
256  PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1)
257   PORT_START("INPUT2")
258   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2)
259   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2)
260   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2)
261   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2)
262   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
263   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2)
264   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2)
265   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2)
257266
258 PORT_START("INPUT2")
267   PORT_START("SYSTEM")
268   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
269   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START1 )
270   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START2 )
271   PORT_BIT( 0xf2, IP_ACTIVE_LOW, IPT_UNUSED )
259272
260  PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2)
261  PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2)
262  PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2)
263  PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2)
273   PORT_START("DSWA")
274   PORT_DIPNAME( 0xe0, 0xe0, DEF_STR( Coinage ) )
275   PORT_DIPSETTING(    0x00, DEF_STR( 5C_1C ) )
276   PORT_DIPSETTING(    0x20, DEF_STR( 4C_1C ) )
277   PORT_DIPSETTING(    0x40, DEF_STR( 3C_1C ) )
278   PORT_DIPSETTING(    0x60, DEF_STR( 2C_1C ) )
279   PORT_DIPSETTING(    0xe0, DEF_STR( 1C_1C ) )
280   PORT_DIPSETTING(    0xc0, DEF_STR( 1C_2C ) )
281   PORT_DIPSETTING(    0xa0, DEF_STR( 1C_3C ) )
282   PORT_DIPSETTING(    0x80, DEF_STR( 1C_4C ) )
283   PORT_DIPNAME( 0x1c, 0x10, "Timer" )
284   PORT_DIPSETTING(    0x1c, "15" )
285   PORT_DIPSETTING(    0x18, "20" )
286   PORT_DIPSETTING(    0x14, "25" )
287   PORT_DIPSETTING(    0x10, "30" )
288   PORT_DIPSETTING(    0x0c, "35" )
289   PORT_DIPSETTING(    0x08, "40" )
290   PORT_DIPSETTING(    0x04, "45" )
291   PORT_DIPSETTING(    0x00, "50" )
292   PORT_BIT( 0x03, IP_ACTIVE_LOW, IPT_UNUSED )
264293
265  PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
266  PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2)
267  PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2)
268  PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2)
269
270 PORT_START("SYSTEM")
271  PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
272  PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START1 )
273  PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START2 )
274
275  PORT_BIT( 0xf2, IP_ACTIVE_LOW, IPT_UNUSED )
276
277 PORT_START("DSWA")
278  PORT_DIPNAME( 0xe0, 0xe0, DEF_STR( Coinage ) )
279  PORT_DIPSETTING(    0x00, DEF_STR( 5C_1C ) )
280  PORT_DIPSETTING(    0x20, DEF_STR( 4C_1C ) )
281  PORT_DIPSETTING(    0x40, DEF_STR( 3C_1C ) )
282  PORT_DIPSETTING(    0x60, DEF_STR( 2C_1C ) )
283  PORT_DIPSETTING(    0xe0, DEF_STR( 1C_1C ) )
284  PORT_DIPSETTING(    0xc0, DEF_STR( 1C_2C ) )
285  PORT_DIPSETTING(    0xa0, DEF_STR( 1C_3C ) )
286  PORT_DIPSETTING(    0x80, DEF_STR( 1C_4C ) )
287
288  PORT_DIPNAME( 0x1c, 0x10, "Timer" )
289  PORT_DIPSETTING(    0x1c, "15" )
290  PORT_DIPSETTING(    0x18, "20" )
291  PORT_DIPSETTING(    0x14, "25" )
292  PORT_DIPSETTING(    0x10, "30" )
293  PORT_DIPSETTING(    0x0c, "35" )
294  PORT_DIPSETTING(    0x08, "40" )
295  PORT_DIPSETTING(    0x04, "45" )
296  PORT_DIPSETTING(    0x00, "50" )
297
298  PORT_BIT( 0x03, IP_ACTIVE_LOW, IPT_UNUSED )
299
300 PORT_START("DSWB")
301  PORT_DIPNAME( 0xc0, 0x80, DEF_STR( Difficulty ) )
302  PORT_DIPSETTING(    0xc0, DEF_STR( Easy ) )
303  PORT_DIPSETTING(    0x80, DEF_STR( Normal ) )
304  PORT_DIPSETTING(    0x40, DEF_STR( Hard ) )
305  PORT_DIPSETTING(    0x00, DEF_STR( Very_Hard ) )
306
307  PORT_DIPNAME( 0x30, 0x10, "Matta" ) /* undo moves */
308  PORT_DIPSETTING(    0x30, "0" )
309  PORT_DIPSETTING(    0x20, "1" )
310  PORT_DIPSETTING(    0x10, "2" )
311  PORT_DIPSETTING(    0x00, "3" )
312
313  PORT_DIPNAME( 0x08, 0x08, "Games for 2 players" )
314  PORT_DIPSETTING(    0x08, "1" )
315  PORT_DIPSETTING(    0x00, "2" )
316
317  PORT_BIT( 0x07, IP_ACTIVE_LOW, IPT_UNUSED )
318
294   PORT_START("DSWB")
295   PORT_DIPNAME( 0xc0, 0x80, DEF_STR( Difficulty ) )
296   PORT_DIPSETTING(    0xc0, DEF_STR( Easy ) )
297   PORT_DIPSETTING(    0x80, DEF_STR( Normal ) )
298   PORT_DIPSETTING(    0x40, DEF_STR( Hard ) )
299   PORT_DIPSETTING(    0x00, DEF_STR( Very_Hard ) )
300   PORT_DIPNAME( 0x30, 0x10, "Matta" ) /* undo moves */
301   PORT_DIPSETTING(    0x30, "0" )
302   PORT_DIPSETTING(    0x20, "1" )
303   PORT_DIPSETTING(    0x10, "2" )
304   PORT_DIPSETTING(    0x00, "3" )
305   PORT_DIPNAME( 0x08, 0x08, "Games for 2 players" )
306   PORT_DIPSETTING(    0x08, "1" )
307   PORT_DIPSETTING(    0x00, "2" )
308   PORT_BIT( 0x07, IP_ACTIVE_LOW, IPT_UNUSED )
319309INPUT_PORTS_END
320310
321311static void irqhandler(device_t *device, int irq)

Previous 199869 Revisions Next


© 1997-2024 The MAME Team