QuarterArcade Coin-Op Tech Net

Quick Nav: # A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Coin-Op : Arcade : Centipede : VM Driver Source

Source Listing


     1: /***************************************************************************
     2: 
     3: 	Atari Centipede hardware
     4: 
     5: 	Games supported:
     6: 		* Centipede (5 sets)
     7: 		* Warlords
     8: 		* Millipede
     9: 		* Qwak (prototype)
    10: 
    11: 	Known bugs:
    12: 		* are coins supposed to take over a second to register?
    13: 
    14: ****************************************************************************
    15: 
    16: 	Main clock: XTAL = 12.096 MHz
    17: 	6502 Clock: XTAL/8 = 1.512 MHz (0.756 when accessing playfield RAM)
    18: 	Horizontal video frequency: HSYNC = XTAL/256/3 = 15.75 kHz
    19: 	Video frequency: VSYNC = HSYNC/263 ?? = 59.88593 Hz (not sure, could be /262)
    20: 	VBlank duration: 1/VSYNC * (23/263) = 1460 us
    21: 
    22: 
    23: 	              Centipede Memory map and Dip Switches
    24: 	              -------------------------------------
    25: 
    26: 	Memory map for Centipede directly from the Atari schematics (1981).
    27: 
    28: 	 Address  R/W  D7 D6 D5 D4 D3 D2 D1 D0   Function
    29: 	--------------------------------------------------------------------------------------
    30: 	0000-03FF       D  D  D  D  D  D  D  D   RAM
    31: 	--------------------------------------------------------------------------------------
    32: 	0400-07BF       D  D  D  D  D  D  D  D   Playfield RAM
    33: 	07C0-07CF       D  D  D  D  D  D  D  D   Motion Object Picture
    34: 	07D0-07DF       D  D  D  D  D  D  D  D   Motion Object Vert.
    35: 	07E0-07EF       D  D  D  D  D  D  D  D   Motion Object Horiz.
    36: 	07F0-07FF             D  D  D  D  D  D   Motion Object Color
    37: 	--------------------------------------------------------------------------------------
    38: 	0800       R    D  D  D  D  D  D  D  D   Option Switch 1 (0 = On)
    39: 	0801       R    D  D  D  D  D  D  D  D   Option Switch 2 (0 = On)
    40: 	--------------------------------------------------------------------------------------
    41: 	0C00       R    D           D  D  D  D   Horizontal Mini-Track Ball tm Inputs
    42: 	           R       D                     VBLANK  (1 = VBlank)
    43: 	           R          D                  Self-Test  (0 = On)
    44: 	           R             D               Cocktail Cabinet  (1 = Cocktail)
    45: 	0C01       R    D  D  D                  R,C,L Coin Switches (0 = On)
    46: 	           R             D               SLAM  (0 = On)
    47: 	           R                D            Player 2 Fire Switch (0 = On)
    48: 	           R                   D         Player 1 Fire Switch (0 = On)
    49: 	           R                      D      Player 2 Start Switch (0 = On)
    50: 	           R                         D   Player 1 Start Switch (0 = On)
    51: 
    52: 	0C02       R    D           D  D  D  D   Vertical Mini-Track Ball tm Inputs
    53: 	0C03       R    D  D  D  D               Player 1 Joystick (R,L,Down,Up)
    54: 	           R                D  D  D  D   Player 2 Joystick   (0 = On)
    55: 	--------------------------------------------------------------------------------------
    56: 	1000-100F R/W   D  D  D  D  D  D  D  D   Custom Audio Chip
    57: 	1404       W                D  D  D  D   Playfield Color RAM
    58: 	140C       W                D  D  D  D   Motion Object Color RAM
    59: 	--------------------------------------------------------------------------------------
    60: 	1600       W    D  D  D  D  D  D  D  D   EA ROM Address & Data Latch
    61: 	1680       W                D  D  D  D   EA ROM Control Latch
    62: 	1700       R    D  D  D  D  D  D  D  D   EA ROM Read Data
    63: 	--------------------------------------------------------------------------------------
    64: 	1800       W                             IRQ Acknowledge
    65: 	--------------------------------------------------------------------------------------
    66: 	1C00       W    D                        Left Coin Counter (1 = On)
    67: 	1C01       W    D                        Center Coin Counter (1 = On)
    68: 	1C02       W    D                        Right Coin Counter (1 = On)
    69: 	1C03       W    D                        Player 1 Start LED (0 = On)
    70: 	1C04       W    D                        Player 2 Start LED (0 = On)
    71: 	1C07       W    D                        Track Ball Flip Control (0 = Player 1)
    72: 	--------------------------------------------------------------------------------------
    73: 	2000       W                             WATCHDOG
    74: 	2400       W                             Clear Mini-Track Ball Counters
    75: 	--------------------------------------------------------------------------------------
    76: 	2000-3FFF  R                             Program ROM
    77: 	--------------------------------------------------------------------------------------
    78: 
    79: 	-EA ROM is an Erasable Reprogrammable rom to save the top 3 high scores
    80: 	  and other stuff.
    81: 
    82: 
    83: 	 Dip switches at N9 on the PCB
    84: 
    85: 	 8    7    6    5    4    3    2    1    Option
    86: 	-------------------------------------------------------------------------------------
    87: 	                              On   On    English $
    88: 	                              On   Off   German
    89: 	                              Off  On    French
    90: 	                              Off  Off   Spanish
    91: 	-------------------------------------------------------------------------------------
    92: 	                    On   On              2 lives per game
    93: 	                    On   Off             3 lives per game $
    94: 	                    Off  On              4 lives per game
    95: 	                    Off  Off             5 lives per game
    96: 	-------------------------------------------------------------------------------------
    97: 	                                         Bonus life granted at every:
    98: 	          On   On                        10,000 points
    99: 	          On   Off                       12.000 points $
   100: 	          Off  On                        15,000 points
   101: 	          Off  Off                       20,000 points
   102: 	-------------------------------------------------------------------------------------
   103: 	     On                                  Hard game difficulty
   104: 	     Off                                 Easy game difficulty $
   105: 	-------------------------------------------------------------------------------------
   106: 	On                                       1-credit minimum $
   107: 	Off                                      2-credit minimum
   108: 	-------------------------------------------------------------------------------------
   109: 
   110: 	$ = Manufacturer's suggested settings
   111: 
   112: 
   113: 	 Dip switches at N8 on the PCB
   114: 
   115: 	 8    7    6    5    4    3    2    1    Option
   116: 	-------------------------------------------------------------------------------------
   117: 	                              On   On    Free play
   118: 	                              On   Off   1 coin for 2 credits
   119: 	                              Off  On    1 coin for 1 credit $
   120: 	                              Off  Off   2 coins for 1 credit
   121: 	-------------------------------------------------------------------------------------
   122: 	                    On   On              Right coin mech X 1 $
   123: 	                    On   Off             Right coin mech X 4
   124: 	                    Off  On              Right coin mech X 5
   125: 	                    Off  Off             Right coin mech X 6
   126: 	-------------------------------------------------------------------------------------
   127: 	               On                        Left coin mech X 1 $
   128: 	               Off                       Left coin mech X 2
   129: 	-------------------------------------------------------------------------------------
   130: 	On   On   On                             No bonus coins $
   131: 	On   On   Off                            For every 2 coins inserted, game logic
   132: 	                                          adds 1 more coin
   133: 	On   Off  On                             For every 4 coins inserted, game logic
   134: 	                                          adds 1 more coin
   135: 	On   Off  Off                            For every 4 coins inserted, game logic
   136: 	                                          adds 2 more coin
   137: 	Off  On   On                             For every 5 coins inserted, game logic
   138: 	                                          adds 1 more coin
   139: 	Off  On   Off                            For every 3 coins inserted, game logic
   140: 	                                          adds 1 more coin
   141: 	-------------------------------------------------------------------------------------
   142: 	$ = Manufacturer's suggested settings
   143: 
   144: 	Changes:
   145: 		30 Apr 98 LBO
   146: 		* Fixed test mode
   147: 		* Changed high score to use earom routines
   148: 		* Added support for alternate rom set
   149: 
   150: ****************************************************************************
   151: 
   152: 	Millipede memory map (preliminary)
   153: 
   154: 	driver by Ivan Mackintosh
   155: 
   156: 	0400-040F		POKEY 1
   157: 	0800-080F		POKEY 2
   158: 	1000-13BF		SCREEN RAM (8x8 TILES, 32x30 SCREEN)
   159: 	13C0-13CF		SPRITE IMAGE OFFSETS
   160: 	13D0-13DF		SPRITE HORIZONTAL OFFSETS
   161: 	13E0-13EF		SPRITE VERTICAL OFFSETS
   162: 	13F0-13FF		SPRITE COLOR OFFSETS
   163: 
   164: 	2000			BIT 1-4 trackball
   165: 					BIT 5 IS P1 FIRE
   166: 					BIT 6 IS P1 START
   167: 					BIT 7 IS VBLANK
   168: 
   169: 	2001			BIT 1-4 trackball
   170: 					BIT 5 IS P2 FIRE
   171: 					BIT 6 IS P2 START
   172: 					BIT 7,8 (?)
   173: 
   174: 	2010			BIT 1 IS P1 RIGHT
   175: 					BIT 2 IS P1 LEFT
   176: 					BIT 3 IS P1 DOWN
   177: 					BIT 4 IS P1 UP
   178: 					BIT 5 IS SLAM, LEFT COIN, AND UTIL COIN
   179: 					BIT 6,7 (?)
   180: 					BIT 8 IS RIGHT COIN
   181: 	2030			earom read
   182: 	2480-249F		COLOR RAM
   183: 	2500-2502		Coin counters
   184: 	2503-2504		LEDs
   185: 	2505-2507		Coin door lights ??
   186: 	2600			INTERRUPT ACKNOWLEDGE
   187: 	2680			CLEAR WATCHDOG
   188: 	2700			earom control
   189: 	2780			earom write
   190: 	4000-7FFF		GAME CODE
   191: 
   192: ****************************************************************************
   193: 
   194: 				  Warlords Memory map and Dip Switches
   195: 				  ------------------------------------
   196: 
   197: 	 Address  R/W  D7 D6 D5 D4 D3 D2 D1 D0	 Function
   198: 	--------------------------------------------------------------------------------------
   199: 	0000-03FF		D  D  D  D	D  D  D  D	 RAM
   200: 	--------------------------------------------------------------------------------------
   201: 	0400-07BF		D  D  D  D	D  D  D  D	 Screen RAM (8x8 TILES, 32x32 SCREEN)
   202: 	07C0-07CF		D  D  D  D	D  D  D  D	 Motion Object Picture
   203: 	07D0-07DF		D  D  D  D	D  D  D  D	 Motion Object Vert.
   204: 	07E0-07EF		D  D  D  D	D  D  D  D	 Motion Object Horiz.
   205: 	--------------------------------------------------------------------------------------
   206: 	0800	   R	D  D  D  D	D  D  D  D	 Option Switch 1 (0 = On) (DSW 1)
   207: 	0801	   R	D  D  D  D	D  D  D  D	 Option Switch 2 (0 = On) (DSW 2)
   208: 	--------------------------------------------------------------------------------------
   209: 	0C00	   R	D						 Cocktail Cabinet  (0 = Cocktail)
   210: 			   R	   D					 VBLANK  (1 = VBlank)
   211: 			   R		  D 				 SELF TEST
   212: 			   R			 D				 DIAG STEP (Unused)
   213: 	0C01	   R	D  D  D 				 R,C,L Coin Switches (0 = On)
   214: 			   R			 D				 Slam (0 = On)
   215: 			   R				D			 Player 4 Start Switch (0 = On)
   216: 			   R				   D		 Player 3 Start Switch (0 = On)
   217: 			   R					  D 	 Player 2 Start Switch (0 = On)
   218: 			   R						 D	 Player 1 Start Switch (0 = On)
   219: 	--------------------------------------------------------------------------------------
   220: 	1000-100F  W   D  D  D	D  D  D  D	D	 Pokey
   221: 	--------------------------------------------------------------------------------------
   222: 	1800	   W							 IRQ Acknowledge
   223: 	--------------------------------------------------------------------------------------
   224: 	1C00-1C02  W	D  D  D  D	D  D  D  D	 Coin Counters
   225: 	--------------------------------------------------------------------------------------
   226: 	1C03-1C06  W	D  D  D  D	D  D  D  D	 LEDs
   227: 	--------------------------------------------------------------------------------------
   228: 	4000	   W							 Watchdog
   229: 	--------------------------------------------------------------------------------------
   230: 	5000-7FFF  R							 Program ROM
   231: 	--------------------------------------------------------------------------------------
   232: 
   233: 	Game Option Settings - J2 (DSW1)
   234: 	=========================
   235: 
   236: 	8	7	6	5	4	3	2	1		Option
   237: 	------------------------------------------
   238: 							On	On		English
   239: 							On	Off 	French
   240: 							Off On		Spanish
   241: 							Off Off 	German
   242: 						On				Music at end of each game
   243: 						Off 			Music at end of game for new highscore
   244: 			On	On						1 or 2 player game costs 1 credit
   245: 			On	Off 					1 player game=1 credit, 2 player=2 credits
   246: 			Off Off 					1 or 2 player game costs 2 credits
   247: 			Off On						Not used
   248: 	-------------------------------------------
   249: 
   250: 
   251: 	Game Price Settings - M2 (DSW2)
   252: 	========================
   253: 
   254: 	8	7	6	5	4	3	2	1		Option
   255: 	------------------------------------------
   256: 							On	On		Free play
   257: 							On	Off 	1 coin for 2 credits
   258: 							Off On		1 coin for 1 credit
   259: 							Off Off 	2 coins for 1 credit
   260: 					On	On				Right coin mech x 1
   261: 					On	Off 			Right coin mech x 4
   262: 					Off On				Right coin mech x 5
   263: 					Off Off 			Right coin mech x 6
   264: 				On						Left coin mech x 1
   265: 				Off 					Left coin mech x 2
   266: 	On	On	On							No bonus coins
   267: 	On	On	Off 						For every 2 coins, add 1 coin
   268: 	On	Off On							For every 4 coins, add 1 coin
   269: 	On	Off Off 						For every 4 coins, add 2 coins
   270: 	Off On	On							For every 5 coins, add 1 coin
   271: 	------------------------------------------
   272: 
   273: ****************************************************************************
   274: 
   275: 	Atari Qwak (prototype) hardware
   276: 	driver by Mike Balfour
   277: 
   278: 	Known issues:
   279: 		- fix colors
   280: 		- coins seem to count twice instead of once?
   281: 		- find DIP switches (should be at $4000, I would think)
   282: 		- figure out what $1000, $2000, and $2001 are used for
   283: 		- figure out exactly what the unknown bits in the $3000 area do
   284: 
   285: ****************************************************************************
   286: 
   287: 	This driver is based *extremely* loosely on the Centipede driver.
   288: 
   289: 	The following memory map is pure speculation:
   290: 
   291: 	0000-01FF     R/W		RAM
   292: 	0200-025F     R/W		RAM?  ER2055 NOVRAM maybe?
   293: 	0300-03FF     R/W		RAM
   294: 	0400-07BF		R/W		Video RAM
   295: 	07C0-07FF		R/W		Sprite RAM
   296: 	1000			W		???
   297: 	2000			W		???
   298: 	2001			W		???
   299: 	2003          W		Start LED 1
   300: 	2004          W		Start LED 2
   301: 	3000			R		$40 = !UP			$80 = unused?
   302: 	3001			R		$40 = !DOWN			$80 = ???
   303: 	3002			R		$40 = !LEFT			$80 = ???
   304: 	3003			R		$40 = !RIGHT		$80 = unused?
   305: 	3004			R		$40 = !START1		$80 = ???
   306: 	3005			R		$40 = !START2		$80 = !COIN
   307: 	3006			R		$40 = !BUTTON1		$80 = !COIN
   308: 	3007			R		$40 = unused?		$80 = !COIN
   309: 	4000          R		???
   310: 	6000-600F		R/W		Pokey 1
   311: 	7000-700F		R/W		Pokey 2
   312: 	8000-BFFF		R		ROM
   313: 
   314: 	If you have any questions about how this driver works, don't hesitate to
   315: 	ask.  - Mike Balfour (mab22@po.cwru.edu)
   316: 
   317: ***************************************************************************/
   318: 
   319: #include "driver.h" 
   320: #include "vidhrdw/generic.h" 
   321: #include "machine/atari_vg.h" 
   322: #include "centiped.h" 
   323: #include "machine/random.h" 
   324: 
   325: 
   326: static int oldpos[4];
   327: static UINT8 sign[4];
   328: static UINT8 dsw_select;
   329: 
   330: 
   331: /*************************************
   332:  *
   333:  *	Interrupts
   334:  *
   335:  *************************************/
   336: 
   337: static void generate_interrupt(int scanline)
   338: {
   339: 	/* IRQ is clocked on the rising edge of 16V, equal to the previous 32V */
   340: 	if (scanline & 16)
   341: 		cpu_set_irq_line(0, 0, ((scanline - 1) & 32) ? ASSERT_LINE : CLEAR_LINE);
   342: 
   343: 	/* call back again after 16 scanlines */
   344: 	scanline += 16;
   345: 	if (scanline >= 256)
   346: 		scanline = 0;
   347: 	timer_set(cpu_getscanlinetime(scanline), scanline, generate_interrupt);
   348: }
   349: 
   350: 
   351: static MACHINE_INIT( centiped )
   352: {
   353: 	timer_set(cpu_getscanlinetime(0), 0, generate_interrupt);
   354: 	cpu_set_irq_line(0, 0, CLEAR_LINE);
   355: 	dsw_select = 0;
   356: 
   357: 	/* kludge: clear RAM so that magworm can be reset cleanly */
   358: 	memset(memory_region(REGION_CPU1), 0, 0x400);
   359: }
   360: 
   361: 
   362: static WRITE_HANDLER( irq_ack_w )
   363: {
   364: 	cpu_set_irq_line(0, 0, CLEAR_LINE);
   365: }
   366: 
   367: 
   368: 
   369: /*************************************
   370:  *
   371:  *	Input ports
   372:  *
   373:  *************************************/
   374: 
   375: /*
   376:  * This wrapper routine is necessary because Centipede requires a direction bit
   377:  * to be set or cleared. The direction bit is held until the mouse is moved
   378:  * again.
   379:  *
   380:  * There is a 4-bit counter, and two inputs from the trackball: DIR and CLOCK.
   381:  * CLOCK makes the counter move in the direction of DIR. Since DIR is latched
   382:  * only when a CLOCK arrives, the DIR bit in the input port doesn't change
   383:  * until the trackball actually moves.
   384:  *
   385:  * There is also a CLR input to the counter which could be used by the game to
   386:  * clear the counter, but Centipede doesn't use it (though it would be a good
   387:  * idea to support it anyway).
   388:  *
   389:  * The counter is read 240 times per second. There is no provision whatsoever
   390:  * to prevent the counter from wrapping around between reads.
   391:  */
   392: 
   393: INLINE int read_trackball(int idx, int switch_port)
   394: {
   395: 	int newpos;
   396: 
   397: 	/* adjust idx if we're cocktail flipped */
   398: 	if (centiped_flipscreen)
   399: 		idx += 2;
   400: 
   401: 	/* if we're to read the dipswitches behind the trackball data, do it now */
   402: 	if (dsw_select)
   403: 		return (readinputport(switch_port) & 0x7f) | sign[idx];
   404: 
   405: 	/* get the new position and adjust the result */
   406: 	newpos = readinputport(6 + idx);
   407: 	if (newpos != oldpos[idx])
   408: 	{
   409: 		sign[idx] = (newpos - oldpos[idx]) & 0x80;
   410: 		oldpos[idx] = newpos;
   411: 	}
   412: 
   413: 	/* blend with the bits from the switch port */
   414: 	return (readinputport(switch_port) & 0x70) | (oldpos[idx] & 0x0f) | sign[idx];
   415: }
   416: 
   417: 
   418: static READ_HANDLER( centiped_IN0_r )
   419: {
   420: 	return read_trackball(0, 0);
   421: }
   422: 
   423: 
   424: static READ_HANDLER( centiped_IN2_r )
   425: {
   426: 	return read_trackball(1, 2);
   427: }
   428: 
   429: 
   430: static READ_HANDLER( milliped_IN1_r )
   431: {
   432: 	return read_trackball(1, 1);
   433: }
   434: 
   435: 
   436: static WRITE_HANDLER( input_select_w )
   437: {
   438: 	dsw_select = (~data >> 7) & 1;
   439: }
   440: 
   441: 
   442: 
   443: /*************************************
   444:  *
   445:  *	Output ports
   446:  *
   447:  *************************************/
   448: 
   449: static WRITE_HANDLER( led_w )
   450: {
   451: 	set_led_status(offset, ~data & 0x80);
   452: }
   453: 
   454: 
   455: static READ_HANDLER( centipdb_rand_r )
   456: {
   457: 	return mame_rand() % 0xff;
   458: }
   459: 
   460: 
   461: static WRITE_HANDLER( coin_count_w )
   462: {
   463: 	coin_counter_w(offset, data);
   464: }
   465: 
   466: 
   467: 
   468: /*************************************
   469:  *
   470:  *	Bootleg sound
   471:  *
   472:  *************************************/
   473: 
   474: static WRITE_HANDLER( centipdb_AY8910_w )
   475: {
   476: 	AY8910_control_port_0_w(0, offset);
   477: 	AY8910_write_port_0_w(0, data);
   478: }
   479: 
   480: 
   481: static READ_HANDLER( centipdb_AY8910_r )
   482: {
   483: 	AY8910_control_port_0_w(0, offset);
   484: 	return AY8910_read_port_0_r(0);
   485: }
   486: 
   487: 
   488: 
   489: /*************************************
   490:  *
   491:  *	Centipede CPU memory handlers
   492:  *
   493:  *************************************/
   494: 
   495: static MEMORY_READ_START( centiped_readmem )
   496: 	MEMORY_ADDRESS_BITS(14)
   497: 	{ 0x0000, 0x03ff, MRA_RAM },
   498: 	{ 0x0400, 0x07ff, MRA_RAM },
   499: 	{ 0x0800, 0x0800, input_port_4_r },	/* DSW1 */
   500: 	{ 0x0801, 0x0801, input_port_5_r },	/* DSW2 */
   501: 	{ 0x0c00, 0x0c00, centiped_IN0_r },	/* IN0 */
   502: 	{ 0x0c01, 0x0c01, input_port_1_r },	/* IN1 */
   503: 	{ 0x0c02, 0x0c02, centiped_IN2_r },	/* IN2 */
   504: 	{ 0x0c03, 0x0c03, input_port_3_r },	/* IN3 */
   505: 	{ 0x1000, 0x100f, pokey1_r },
   506: 	{ 0x1700, 0x173f, atari_vg_earom_r },
   507: 	{ 0x2000, 0x3fff, MRA_ROM },
   508: MEMORY_END
   509: 
   510: 
   511: static MEMORY_WRITE_START( centiped_writemem )
   512: 	MEMORY_ADDRESS_BITS(14)
   513: 	{ 0x0000, 0x03ff, MWA_RAM },
   514: 	{ 0x0400, 0x07bf, centiped_videoram_w, &videoram },
   515: 	{ 0x07c0, 0x07ff, MWA_RAM, &spriteram },
   516: 	{ 0x1000, 0x100f, pokey1_w },
   517: 	{ 0x1400, 0x140f, centiped_paletteram_w, &paletteram },
   518: 	{ 0x1600, 0x163f, atari_vg_earom_w },
   519: 	{ 0x1680, 0x1680, atari_vg_earom_ctrl_w },
   520: 	{ 0x1800, 0x1800, irq_ack_w },
   521: 	{ 0x1c00, 0x1c02, coin_count_w },
   522: 	{ 0x1c03, 0x1c04, led_w },
   523: 	{ 0x1c07, 0x1c07, centiped_flip_screen_w },
   524: 	{ 0x2000, 0x2000, watchdog_reset_w },
   525: 	{ 0x2000, 0x3fff, MWA_ROM },
   526: MEMORY_END
   527: 
   528: 
   529: static MEMORY_READ_START( centipb2_readmem )
   530: 	MEMORY_ADDRESS_BITS(15)
   531: 	{ 0x0000, 0x03ff, MRA_RAM },
   532: 	{ 0x0400, 0x07ff, MRA_RAM },
   533: 	{ 0x0800, 0x0800, input_port_4_r },	/* DSW1 */
   534: 	{ 0x0801, 0x0801, input_port_5_r },	/* DSW2 */
   535: 	{ 0x0c00, 0x0c00, centiped_IN0_r },	/* IN0 */
   536: 	{ 0x0c01, 0x0c01, input_port_1_r },	/* IN1 */
   537: 	{ 0x0c02, 0x0c02, centiped_IN2_r },	/* IN2 */
   538: 	{ 0x0c03, 0x0c03, input_port_3_r },	/* IN3 */
   539: 	{ 0x1001, 0x1001, AY8910_read_port_0_r },
   540: 	{ 0x1700, 0x173f, atari_vg_earom_r },
   541: 	{ 0x2000, 0x3fff, MRA_ROM },
   542: 	{ 0x6000, 0x67ff, MRA_ROM },
   543: MEMORY_END
   544: 
   545: 
   546: static MEMORY_WRITE_START( centipb2_writemem )
   547: 	MEMORY_ADDRESS_BITS(15)
   548: 	{ 0x0000, 0x03ff, MWA_RAM },
   549: 	{ 0x0400, 0x07bf, centiped_videoram_w, &videoram },
   550: 	{ 0x07c0, 0x07ff, MWA_RAM, &spriteram },
   551: 	{ 0x1000, 0x1000, AY8910_write_port_0_w },
   552: 	{ 0x1001, 0x1001, AY8910_control_port_0_w },
   553: 	{ 0x1400, 0x140f, centiped_paletteram_w, &paletteram },
   554: 	{ 0x1600, 0x163f, atari_vg_earom_w },
   555: 	{ 0x1680, 0x1680, atari_vg_earom_ctrl_w },
   556: 	{ 0x1800, 0x1800, irq_ack_w },
   557: 	{ 0x1c00, 0x1c02, coin_count_w },
   558: 	{ 0x1c03, 0x1c04, led_w },
   559: 	{ 0x1c07, 0x1c07, centiped_flip_screen_w },
   560: 	{ 0x2000, 0x2000, watchdog_reset_w },
   561: 	{ 0x2000, 0x3fff, MWA_ROM },
   562: 	{ 0x6000, 0x67ff, MWA_ROM },
   563: MEMORY_END
   564: 
   565: 
   566: 
   567: /*************************************
   568:  *
   569:  *	Millipede CPU memory handlers
   570:  *
   571:  *************************************/
   572: 
   573: static MEMORY_READ_START( milliped_readmem )
   574: 	MEMORY_ADDRESS_BITS(15)
   575: 	{ 0x0000, 0x03ff, MRA_RAM },
   576: 	{ 0x0400, 0x040f, pokey1_r },
   577: 	{ 0x0800, 0x080f, pokey2_r },
   578: 	{ 0x1000, 0x13ff, MRA_RAM },
   579: 	{ 0x2000, 0x2000, centiped_IN0_r },
   580: 	{ 0x2001, 0x2001, milliped_IN1_r },
   581: 	{ 0x2010, 0x2010, input_port_2_r },
   582: 	{ 0x2011, 0x2011, input_port_3_r },
   583: 	{ 0x2030, 0x2030, atari_vg_earom_r },
   584: 	{ 0x4000, 0x7fff, MRA_ROM },
   585: MEMORY_END
   586: 
   587: 
   588: static MEMORY_WRITE_START( milliped_writemem )
   589: 	MEMORY_ADDRESS_BITS(15)
   590: 	{ 0x0000, 0x03ff, MWA_RAM },
   591: 	{ 0x0400, 0x040f, pokey1_w },
   592: 	{ 0x0800, 0x080f, pokey2_w },
   593: 	{ 0x1000, 0x13ff, centiped_videoram_w, &videoram },
   594: 	{ 0x13c0, 0x13ff, MWA_RAM, &spriteram },
   595: 	{ 0x2480, 0x249f, milliped_paletteram_w, &paletteram },
   596: 	{ 0x2500, 0x2502, coin_count_w },
   597: 	{ 0x2503, 0x2504, led_w },
   598: 	{ 0x2505, 0x2505, input_select_w },
   599: //	{ 0x2506, 0x2507, MWA_NOP }, /* ? */
   600: 	{ 0x2600, 0x2600, irq_ack_w },
   601: 	{ 0x2680, 0x2680, watchdog_reset_w },
   602: 	{ 0x2700, 0x2700, atari_vg_earom_ctrl_w },
   603: 	{ 0x2780, 0x27bf, atari_vg_earom_w },
   604: 	{ 0x4000, 0x7fff, MWA_ROM },
   605: MEMORY_END
   606: 
   607: 
   608: 
   609: /*************************************
   610:  *
   611:  *	Warlords CPU memory handlers
   612:  *
   613:  *************************************/
   614: 
   615: static MEMORY_READ_START( warlords_readmem )
   616: 	MEMORY_ADDRESS_BITS(15)
   617: 	{ 0x0000, 0x07ff, MRA_RAM },
   618: 	{ 0x0800, 0x0800, input_port_2_r }, /* DSW1 */
   619: 	{ 0x0801, 0x0801, input_port_3_r }, /* DSW2 */
   620: 	{ 0x0c00, 0x0c00, input_port_0_r }, /* IN0 */
   621: 	{ 0x0c01, 0x0c01, input_port_1_r }, /* IN1 */
   622: 	{ 0x1000, 0x100f, pokey1_r },
   623: 	{ 0x5000, 0x7fff, MRA_ROM },
   624: MEMORY_END
   625: 
   626: 
   627: static MEMORY_WRITE_START( warlords_writemem )
   628: 	MEMORY_ADDRESS_BITS(15)
   629: 	{ 0x0000, 0x03ff, MWA_RAM },
   630: 	{ 0x0400, 0x07bf, centiped_videoram_w, &videoram },
   631: 	{ 0x07c0, 0x07ff, MWA_RAM, &spriteram },
   632: 	{ 0x1000, 0x100f, pokey1_w },
   633: 	{ 0x1800, 0x1800, irq_ack_w },
   634: 	{ 0x1c00, 0x1c02, coin_count_w },
   635: 	{ 0x1c03, 0x1c06, led_w },
   636: 	{ 0x4000, 0x4000, watchdog_reset_w },
   637: MEMORY_END
   638: 
   639: 
   640: 
   641: /*************************************
   642:  *
   643:  *	Qwak CPU memory handlers
   644:  *
   645:  *************************************/
   646: 
   647: static MEMORY_READ_START( qwakprot_readmem )
   648: 	{ 0x0000, 0x01ff, MRA_RAM },
   649: 	{ 0x0200, 0x025f, MRA_RAM },
   650: 	{ 0x0300, 0x03ff, MRA_RAM },
   651: 	{ 0x0400, 0x07ff, MRA_RAM },
   652: 	{ 0x3000, 0x3000, input_port_0_r },
   653: 	{ 0x3001, 0x3001, input_port_1_r },
   654: 	{ 0x3002, 0x3002, input_port_2_r },
   655: 	{ 0x3003, 0x3003, input_port_3_r },
   656: 	{ 0x3004, 0x3004, input_port_4_r },
   657: 	{ 0x3005, 0x3005, input_port_5_r },
   658: 	{ 0x3006, 0x3006, input_port_6_r },
   659: 	{ 0x3007, 0x3007, input_port_7_r },
   660: 	{ 0x4000, 0x4000, input_port_8_r },
   661: 	{ 0x6000, 0x600f, pokey1_r },
   662: 	{ 0x7000, 0x700f, pokey2_r },
   663: 	{ 0x8000, 0xbfff, MRA_ROM },
   664: 	{ 0xf000, 0xffff, MRA_ROM },	/* for the reset / interrupt vectors */
   665: MEMORY_END
   666: 
   667: 
   668: static MEMORY_WRITE_START( qwakprot_writemem )
   669: 	{ 0x0000, 0x01ff, MWA_RAM },
   670: 	{ 0x0200, 0x025f, MWA_RAM },
   671: 	{ 0x0300, 0x03ff, MWA_RAM },
   672: 	{ 0x0400, 0x07bf, centiped_videoram_w, &videoram },
   673: 	{ 0x07c0, 0x07ff, MWA_RAM, &spriteram },
   674: 	{ 0x1000, 0x1000, irq_ack_w },
   675: 	{ 0x1c00, 0x1c0f, qwakprot_paletteram_w, &paletteram },
   676: //	{ 0x2000, 0x2001, coin_counter_w },
   677: 	{ 0x2003, 0x2004, led_w },
   678: 	{ 0x6000, 0x600f, pokey1_w },
   679: 	{ 0x7000, 0x700f, pokey2_w },
   680: 	{ 0x8000, 0xbfff, MWA_ROM },
   681: MEMORY_END
   682: 
   683: 
   684: 
   685: /*************************************
   686:  *
   687:  *	Port definitions
   688:  *
   689:  *************************************/
   690: 
   691: /* The input ports are identical for the real one and the bootleg one, except
   692:    that one of the languages is Italian in the bootleg one instead of Spanish */
   693: 
   694: #define PORTS(GAMENAME, FOURTH_LANGUAGE)										\ 
   695: 																				\
   696: INPUT_PORTS_START( GAMENAME )													\
   697: 	PORT_START	/* IN0 */														\
   698: 	PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_SPECIAL )	/* trackball data */		\
   699: 	PORT_DIPNAME( 0x10, 0x00, DEF_STR( Cabinet ))								\
   700: 	PORT_DIPSETTING(    0x00, DEF_STR( Upright ))								\
   701: 	PORT_DIPSETTING(    0x10, DEF_STR( Cocktail ))								\
   702: 	PORT_SERVICE( 0x20, IP_ACTIVE_LOW )											\
   703: 	PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_VBLANK )								\
   704: 	PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL )	/* trackball sign bit */	\
   705: 																				\
   706: 	PORT_START	/* IN1 */														\
   707: 	PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )									\
   708: 	PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )									\
   709: 	PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 )								\
   710: 	PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 | IPF_COCKTAIL )					\
   711: 	PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_TILT )									\
   712: 	PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN1 )									\
   713: 	PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 )									\
   714: 	PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE1 )									\
   715: 																				\
   716: 	PORT_START	/* IN2 */														\
   717: 	PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_SPECIAL )	/* trackball data */		\
   718: 	PORT_BIT( 0x70, IP_ACTIVE_HIGH, IPT_UNKNOWN )								\
   719: 	PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL )	/* trackball sign bit */	\
   720: 																				\
   721: 	PORT_START	/* IN3 */														\
   722: 	PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN | IPF_8WAY | IPF_COCKTAIL )\
   723: 	PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP | IPF_8WAY | IPF_COCKTAIL )	\
   724: 	PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_8WAY | IPF_COCKTAIL )\
   725: 	PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT | IPF_8WAY | IPF_COCKTAIL )\
   726: 	PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_UP | IPF_8WAY )					\
   727: 	PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN | IPF_8WAY )				\
   728: 	PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT | IPF_8WAY )				\
   729: 	PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_8WAY )				\
   730: 																				\
   731: 	PORT_START	/* IN4 */														\
   732: 	PORT_DIPNAME( 0x03, 0x00, "Language" )										\
   733: 	PORT_DIPSETTING(    0x00, "English" )										\
   734: 	PORT_DIPSETTING(    0x01, "German" )										\
   735: 	PORT_DIPSETTING(    0x02, "French" )										\
   736: 	PORT_DIPSETTING(    0x03, FOURTH_LANGUAGE )									\
   737: 	PORT_DIPNAME( 0x0c, 0x04, DEF_STR( Lives ))									\
   738: 	PORT_DIPSETTING(    0x00, "2" )												\
   739: 	PORT_DIPSETTING(    0x04, "3" )												\
   740: 	PORT_DIPSETTING(    0x08, "4" )												\
   741: 	PORT_DIPSETTING(    0x0c, "5" )												\
   742: 	PORT_DIPNAME( 0x30, 0x10, DEF_STR( Bonus_Life ))							\
   743: 	PORT_DIPSETTING(    0x00, "10000" )											\
   744: 	PORT_DIPSETTING(    0x10, "12000" )											\
   745: 	PORT_DIPSETTING(    0x20, "15000" )											\
   746: 	PORT_DIPSETTING(    0x30, "20000" )											\
   747: 	PORT_DIPNAME( 0x40, 0x40, DEF_STR( Difficulty ))							\
   748: 	PORT_DIPSETTING(    0x40, "Easy" )											\
   749: 	PORT_DIPSETTING(    0x00, "Hard" )											\
   750: 	PORT_DIPNAME( 0x80, 0x00, "Credit Minimum" )								\
   751: 	PORT_DIPSETTING(    0x00, "1" )												\
   752: 	PORT_DIPSETTING(    0x80, "2" )												\
   753: 																				\
   754: 	PORT_START	/* IN5 */														\
   755: 	PORT_DIPNAME( 0x03, 0x02, DEF_STR( Coinage ))								\
   756: 	PORT_DIPSETTING(    0x03, DEF_STR( 2C_1C ))									\
   757: 	PORT_DIPSETTING(    0x02, DEF_STR( 1C_1C ))									\
   758: 	PORT_DIPSETTING(    0x01, DEF_STR( 1C_2C ))									\
   759: 	PORT_DIPSETTING(    0x00, DEF_STR( Free_Play ))								\
   760: 	PORT_DIPNAME( 0x0c, 0x00, "Right Coin" )									\
   761: 	PORT_DIPSETTING(    0x00, "*1" )											\
   762: 	PORT_DIPSETTING(    0x04, "*4" )											\
   763: 	PORT_DIPSETTING(    0x08, "*5" )											\
   764: 	PORT_DIPSETTING(    0x0c, "*6" )											\
   765: 	PORT_DIPNAME( 0x10, 0x00, "Left Coin" )										\
   766: 	PORT_DIPSETTING(    0x00, "*1" )											\
   767: 	PORT_DIPSETTING(    0x10, "*2" )											\
   768: 	PORT_DIPNAME( 0xe0, 0x00, "Bonus Coins" )									\
   769: 	PORT_DIPSETTING(    0x00, "None" )											\
   770: 	PORT_DIPSETTING(    0x20, "3 credits/2 coins" )								\
   771: 	PORT_DIPSETTING(    0x40, "5 credits/4 coins" )								\
   772: 	PORT_DIPSETTING(    0x60, "6 credits/4 coins" )								\
   773: 	PORT_DIPSETTING(    0x80, "6 credits/5 coins" )								\
   774: 	PORT_DIPSETTING(    0xa0, "4 credits/3 coins" )								\
   775: 																				\
   776: 	PORT_START	/* IN6, fake trackball input port. */							\
   777: 	PORT_ANALOGX( 0xff, 0x00, IPT_TRACKBALL_X | IPF_REVERSE, 50, 10, 0, 0, IP_KEY_NONE, IP_KEY_NONE, IP_JOY_NONE, IP_JOY_NONE )	\
   778: 																				\
   779: 	PORT_START	/* IN7, fake trackball input port. */							\
   780: 	PORT_ANALOGX( 0xff, 0x00, IPT_TRACKBALL_Y, 50, 10, 0, 0, IP_KEY_NONE, IP_KEY_NONE, IP_JOY_NONE, IP_JOY_NONE ) \
   781: 																				\
   782: 	PORT_START	/* IN8, fake trackball input port. */							\
   783: 	PORT_ANALOGX( 0xff, 0x00, IPT_TRACKBALL_X | IPF_COCKTAIL, 50, 10, 0, 0, IP_KEY_NONE, IP_KEY_NONE, IP_JOY_NONE, IP_JOY_NONE )	\
   784: 																				\
   785: 	PORT_START	/* IN9, fake trackball input port. */							\
   786: 	PORT_ANALOGX( 0xff, 0x00, IPT_TRACKBALL_Y | IPF_COCKTAIL | IPF_REVERSE, 50, 10, 0, 0, IP_KEY_NONE, IP_KEY_NONE, IP_JOY_NONE, IP_JOY_NONE )	\
   787: INPUT_PORTS_END
   788: 
   789: PORTS(centiped, "Spanish")
   790: PORTS(centipdb, "Italian")
   791: 
   792: 
   793: INPUT_PORTS_START( centtime )
   794: 	PORT_START	/* IN0 */
   795: 	PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_SPECIAL )	/* trackball data */
   796: 	PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNUSED )
   797: 	PORT_SERVICE( 0x20, IP_ACTIVE_LOW )
   798: 	PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_VBLANK )
   799: 	PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL )	/* trackball sign bit */
   800: 
   801: 	PORT_START	/* IN1 */
   802: 	PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
   803: 	PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED )
   804: 	PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 )
   805: 	PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED )
   806: 	PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_TILT )
   807: 	PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN1 )
   808: 	PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 )
   809: 	PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE1 )
   810: 
   811: 	PORT_START	/* IN2 */
   812: 	PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_SPECIAL )	/* trackball data */
   813: 	PORT_BIT( 0x70, IP_ACTIVE_HIGH, IPT_UNKNOWN )
   814: 	PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL )	/* trackball sign bit */
   815: 
   816: 	PORT_START	/* IN3 */
   817: 	PORT_BIT( 0x0f, IP_ACTIVE_LOW, IPT_UNUSED )
   818: 	PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_UP | IPF_8WAY )
   819: 	PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN | IPF_8WAY )
   820: 	PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT | IPF_8WAY )
   821: 	PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_8WAY )
   822: 
   823: 	PORT_START	/* IN4 */
   824: 	PORT_DIPNAME( 0x03, 0x00, "Language" )
   825: 	PORT_DIPSETTING(    0x00, "English" )
   826: 	PORT_DIPSETTING(    0x01, "German" )
   827: 	PORT_DIPSETTING(    0x02, "French" )
   828: 	PORT_DIPSETTING(    0x03, "Spanish" )
   829: 	PORT_DIPNAME( 0x0c, 0x04, DEF_STR( Lives ))
   830: 	PORT_DIPSETTING(    0x00, "2" )
   831: 	PORT_DIPSETTING(    0x04, "3" )
   832: 	PORT_DIPSETTING(    0x08, "4" )
   833: 	PORT_DIPSETTING(    0x0c, "5" )
   834: 	PORT_DIPNAME( 0x30, 0x10, DEF_STR( Bonus_Life ))
   835: 	PORT_DIPSETTING(    0x00, "10000" )
   836: 	PORT_DIPSETTING(    0x10, "12000" )
   837: 	PORT_DIPSETTING(    0x20, "15000" )
   838: 	PORT_DIPSETTING(    0x30, "20000" )
   839: 	PORT_DIPNAME( 0x40, 0x40, DEF_STR( Difficulty ))
   840: 	PORT_DIPSETTING(    0x40, "Easy" )
   841: 	PORT_DIPSETTING(    0x00, "Hard" )
   842: 	PORT_DIPNAME( 0x80, 0x00, "Credit Minimum" )
   843: 	PORT_DIPSETTING(    0x00, "1" )
   844: 	PORT_DIPSETTING(    0x80, "2" )
   845: 
   846: 	PORT_START	/* IN5 */
   847: 	PORT_DIPNAME( 0x03, 0x02, DEF_STR( Coinage ))
   848: 	PORT_DIPSETTING(    0x03, DEF_STR( 2C_1C ))
   849: 	PORT_DIPSETTING(    0x02, DEF_STR( 1C_1C ))
   850: 	PORT_DIPSETTING(    0x01, DEF_STR( 1C_2C ))
   851: 	PORT_DIPSETTING(    0x00, DEF_STR( Free_Play ))
   852: 	PORT_DIPNAME( 0x1c, 0x00, "Game Time" )
   853: 	PORT_DIPSETTING(    0x00, "Untimed" )
   854: 	PORT_DIPSETTING(    0x04, "1 Minute" )
   855: 	PORT_DIPSETTING(    0x08, "2 Minutes" )
   856: 	PORT_DIPSETTING(    0x0c, "3 Minutes" )
   857: 	PORT_DIPSETTING(    0x10, "4 Minutes" )
   858: 	PORT_DIPSETTING(    0x14, "5 Minutes" )
   859: 	PORT_DIPSETTING(    0x18, "6 Minutes" )
   860: 	PORT_DIPSETTING(    0x1c, "7 Minutes" )
   861: 	PORT_DIPNAME( 0xe0, 0x00, "Bonus Coins" )
   862: 	PORT_DIPSETTING(    0x00, "None" )
   863: 	PORT_DIPSETTING(    0x20, "3 credits/2 coins" )
   864: 	PORT_DIPSETTING(    0x40, "5 credits/4 coins" )
   865: 	PORT_DIPSETTING(    0x60, "6 credits/4 coins" )
   866: 	PORT_DIPSETTING(    0x80, "6 credits/5 coins" )
   867: 	PORT_DIPSETTING(    0xa0, "4 credits/3 coins" )
   868: 
   869: 	PORT_START	/* IN6, fake trackball input port. */
   870: 	PORT_ANALOGX( 0xff, 0x00, IPT_TRACKBALL_X | IPF_REVERSE, 50, 10, 0, 0, IP_KEY_NONE, IP_KEY_NONE, IP_JOY_NONE, IP_JOY_NONE )
   871: 
   872: 	PORT_START	/* IN7, fake trackball input port. */
   873: 	PORT_ANALOGX( 0xff, 0x00, IPT_TRACKBALL_Y, 50, 10, 0, 0, IP_KEY_NONE, IP_KEY_NONE, IP_JOY_NONE, IP_JOY_NONE )
   874: 
   875: 	PORT_START	/* IN8, place for cocktail trackball (not used) */
   876: 	PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
   877: 
   878: 	PORT_START	/* IN9, place for cocktail trackball (not used) */
   879: 	PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
   880: INPUT_PORTS_END
   881: 
   882: 
   883: INPUT_PORTS_START( magworm )
   884: 	PORT_START	/* IN0 */
   885: 	PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_SPECIAL )	/* trackball data */
   886: 	PORT_DIPNAME( 0x10, 0x00, DEF_STR( Cabinet ))
   887: 	PORT_DIPSETTING(    0x00, DEF_STR( Upright ))
   888: 	PORT_DIPSETTING(    0x10, DEF_STR( Cocktail ))
   889: 	PORT_SERVICE( 0x20, IP_ACTIVE_LOW )
   890: 	PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_VBLANK )
   891: 	PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL )	/* trackball sign bit */
   892: 
   893: 	PORT_START	/* IN1 */
   894: 	PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
   895: 	PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
   896: 	PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 )
   897: 	PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 | IPF_COCKTAIL )
   898: 	PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_TILT )
   899: 	PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN2 )
   900: 	PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 )
   901: 	PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE1 )
   902: 
   903: 	PORT_START	/* IN2 */
   904: 	PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_SPECIAL )	/* trackball data */
   905: 	PORT_BIT( 0x70, IP_ACTIVE_HIGH, IPT_UNKNOWN )
   906: 	PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL )	/* trackball sign bit */
   907: 
   908: 	PORT_START	/* IN3 */
   909: 	PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN )
   910: 
   911: 	PORT_START	/* IN4 */
   912: 	PORT_DIPNAME( 0x03, 0x02, DEF_STR( Coinage ))
   913: 	PORT_DIPSETTING(    0x03, DEF_STR( 2C_1C ))
   914: 	PORT_DIPSETTING(    0x02, DEF_STR( 1C_1C ))
   915: 	PORT_DIPSETTING(    0x01, DEF_STR( 1C_2C ))
   916: 	PORT_DIPSETTING(    0x00, DEF_STR( Free_Play ))
   917: 	PORT_DIPNAME( 0x0c, 0x00, "Right Coin" )
   918: 	PORT_DIPSETTING(    0x00, "*3" )
   919: 	PORT_DIPSETTING(    0x04, "*7" )
   920: 	PORT_DIPSETTING(    0x08, "*1/2" )
   921: 	PORT_DIPSETTING(    0x0c, "*6" )
   922: 	PORT_DIPNAME( 0x30, 0x00, "Language" )
   923: 	PORT_DIPSETTING(    0x00, "English" )
   924: 	PORT_DIPSETTING(    0x10, "German" )
   925: 	PORT_DIPSETTING(    0x20, "French" )
   926: 	PORT_DIPSETTING(    0x30, "Spanish" )
   927: 	PORT_DIPNAME( 0xc0, 0x40, DEF_STR( Lives ))
   928: 	PORT_DIPSETTING(    0x00, "2" )
   929: 	PORT_DIPSETTING(    0x40, "3" )
   930: 	PORT_DIPSETTING(    0x80, "4" )
   931: 	PORT_DIPSETTING(    0xc0, "5" )
   932: 
   933: 	PORT_START	/* IN5 */
   934: 	PORT_DIPNAME( 0x01, 0x00, "Left Coin" )
   935: 	PORT_DIPSETTING(    0x00, "*1" )
   936: 	PORT_DIPSETTING(    0x01, "*2" )
   937: 	PORT_DIPNAME( 0x0e, 0x00, "Bonus Coins" )
   938: 	PORT_DIPSETTING(    0x00, "None" )
   939: 	PORT_DIPSETTING(    0x02, "3 credits/2 coins" )
   940: 	PORT_DIPSETTING(    0x04, "5 credits/4 coins" )
   941: 	PORT_DIPSETTING(    0x06, "6 credits/4 coins" )
   942: 	PORT_DIPSETTING(    0x08, "6 credits/5 coins" )
   943: 	PORT_DIPSETTING(    0x0a, "4 credits/3 coins" )
   944: 	PORT_DIPNAME( 0x30, 0x10, DEF_STR( Bonus_Life ))
   945: 	PORT_DIPSETTING(    0x00, "10000" )
   946: 	PORT_DIPSETTING(    0x10, "12000" )
   947: 	PORT_DIPSETTING(    0x20, "15000" )
   948: 	PORT_DIPSETTING(    0x30, "20000" )
   949: 	PORT_DIPNAME( 0x40, 0x40, DEF_STR( Difficulty ))
   950: 	PORT_DIPSETTING(    0x40, "Easy" )
   951: 	PORT_DIPSETTING(    0x00, "Hard" )
   952: 	PORT_DIPNAME( 0x80, 0x00, "Credit Minimum" )
   953: 	PORT_DIPSETTING(    0x00, "1" )
   954: 	PORT_DIPSETTING(    0x80, "2" )
   955: 
   956: 	PORT_START	/* IN6, fake trackball input port. */
   957: 	PORT_ANALOG( 0xff, 0x00, IPT_TRACKBALL_X | IPF_REVERSE, 50, 10, 0, 0 )
   958: 
   959: 	PORT_START	/* IN7, fake trackball input port. */
   960: 	PORT_ANALOG( 0xff, 0x00, IPT_TRACKBALL_Y, 50, 10, 0, 0 )
   961: 
   962: 	PORT_START	/* IN8, fake trackball input port. */
   963: 	PORT_ANALOG( 0xff, 0x00, IPT_TRACKBALL_X | IPF_COCKTAIL, 50, 10, 0, 0 )
   964: 
   965: 	PORT_START	/* IN9, fake trackball input port. */
   966: 	PORT_ANALOG( 0xff, 0x00, IPT_TRACKBALL_Y | IPF_COCKTAIL | IPF_REVERSE, 50, 10, 0, 0 )
   967: INPUT_PORTS_END
   968: 
   969: 
   970: INPUT_PORTS_START( milliped )
   971: 	PORT_START	/* IN0 $2000 */ /* see port 6 for x trackball */
   972: 	PORT_DIPNAME(0x03, 0x00, "Language" )
   973: 	PORT_DIPSETTING(   0x00, "English" )
   974: 	PORT_DIPSETTING(   0x01, "German" )
   975: 	PORT_DIPSETTING(   0x02, "French" )
   976: 	PORT_DIPSETTING(   0x03, "Spanish" )
   977: 	PORT_DIPNAME(0x0c, 0x04, "Bonus" )
   978: 	PORT_DIPSETTING(   0x00, "0" )
   979: 	PORT_DIPSETTING(   0x04, "0 1x" )
   980: 	PORT_DIPSETTING(   0x08, "0 1x 2x" )
   981: 	PORT_DIPSETTING(   0x0c, "0 1x 2x 3x" )
   982: 	PORT_BIT ( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 )
   983: 	PORT_BIT ( 0x20, IP_ACTIVE_LOW, IPT_START1 )
   984: 	PORT_BIT ( 0x40, IP_ACTIVE_HIGH, IPT_VBLANK )
   985: 	PORT_BIT ( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL )	/* trackball sign bit */
   986: 
   987: 	PORT_START	/* IN1 $2001 */ /* see port 7 for y trackball */
   988: 	PORT_DIPNAME(0x01, 0x00, DEF_STR( Unknown ))
   989: 	PORT_DIPSETTING(   0x00, DEF_STR( Off ))
   990: 	PORT_DIPSETTING(   0x01, DEF_STR( On ))
   991: 	PORT_DIPNAME(0x02, 0x00, DEF_STR( Unknown ))
   992: 	PORT_DIPSETTING(   0x00, DEF_STR( Off ))
   993: 	PORT_DIPSETTING(   0x02, DEF_STR( On ))
   994: 	PORT_DIPNAME(0x04, 0x00, "Credit Minimum" )
   995: 	PORT_DIPSETTING(   0x00, "1" )
   996: 	PORT_DIPSETTING(   0x04, "2" )
   997: 	PORT_DIPNAME(0x08, 0x00, "Coin Counters" )
   998: 	PORT_DIPSETTING(   0x00, "1" )
   999: 	PORT_DIPSETTING(   0x08, "2" )
  1000: 	PORT_BIT ( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 | IPF_COCKTAIL )
  1001: 	PORT_BIT ( 0x20, IP_ACTIVE_LOW, IPT_START2 )
  1002: 	PORT_BIT ( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
  1003: 	PORT_BIT ( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL )	/* trackball sign bit */
  1004: 
  1005: 	PORT_START	/* IN2 $2010 */
  1006: 	PORT_BIT ( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_8WAY )
  1007: 	PORT_BIT ( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT | IPF_8WAY )
  1008: 	PORT_BIT ( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN | IPF_8WAY )
  1009: 	PORT_BIT ( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP | IPF_8WAY )
  1010: 	PORT_BIT ( 0x10, IP_ACTIVE_LOW, IPT_TILT )
  1011: 	PORT_BIT ( 0x20, IP_ACTIVE_LOW, IPT_COIN1 )
  1012: 	PORT_BIT ( 0x40, IP_ACTIVE_LOW, IPT_COIN2 )
  1013: 	PORT_BIT ( 0x80, IP_ACTIVE_LOW, IPT_SERVICE1 )
  1014: 
  1015: 	PORT_START	/* IN3 $2011 */
  1016: 	PORT_BIT ( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_8WAY | IPF_COCKTAIL )
  1017: 	PORT_BIT ( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT | IPF_8WAY | IPF_COCKTAIL )
  1018: 	PORT_BIT ( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN | IPF_8WAY | IPF_COCKTAIL )
  1019: 	PORT_BIT ( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP | IPF_8WAY | IPF_COCKTAIL )
  1020: 	PORT_BIT ( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
  1021: 	PORT_BIT ( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
  1022: 	PORT_BIT ( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
  1023: 	PORT_SERVICE( 0x80, IP_ACTIVE_LOW )
  1024: 
  1025: 	PORT_START	/* 4 */ /* DSW1 $0408 */
  1026: 	PORT_DIPNAME(0x01, 0x00, "Millipede Head" )
  1027: 	PORT_DIPSETTING(   0x00, "Easy" )
  1028: 	PORT_DIPSETTING(   0x01, "Hard" )
  1029: 	PORT_DIPNAME(0x02, 0x00, "Beetle" )
  1030: 	PORT_DIPSETTING(   0x00, "Easy" )
  1031: 	PORT_DIPSETTING(   0x02, "Hard" )
  1032: 	PORT_DIPNAME(0x0c, 0x04, DEF_STR( Lives ))
  1033: 	PORT_DIPSETTING(   0x00, "2" )
  1034: 	PORT_DIPSETTING(   0x04, "3" )
  1035: 	PORT_DIPSETTING(   0x08, "4" )
  1036: 	PORT_DIPSETTING(   0x0c, "5" )
  1037: 	PORT_DIPNAME(0x30, 0x10, DEF_STR( Bonus_Life ))
  1038: 	PORT_DIPSETTING(   0x00, "12000" )
  1039: 	PORT_DIPSETTING(   0x10, "15000" )
  1040: 	PORT_DIPSETTING(   0x20, "20000" )
  1041: 	PORT_DIPSETTING(   0x30, "None" )
  1042: 	PORT_DIPNAME(0x40, 0x00, "Spider" )
  1043: 	PORT_DIPSETTING(   0x00, "Easy" )
  1044: 	PORT_DIPSETTING(   0x40, "Hard" )
  1045: 	PORT_DIPNAME(0x80, 0x00, "Starting Score Select" )
  1046: 	PORT_DIPSETTING(   0x80, DEF_STR( Off ))
  1047: 	PORT_DIPSETTING(   0x00, DEF_STR( On ))
  1048: 
  1049: 	PORT_START	/* 5 */ /* DSW2 $0808 */
  1050: 	PORT_DIPNAME(0x03, 0x02, DEF_STR( Coinage ))
  1051: 	PORT_DIPSETTING(   0x03, DEF_STR( 2C_1C ))
  1052: 	PORT_DIPSETTING(   0x02, DEF_STR( 1C_1C ))
  1053: 	PORT_DIPSETTING(   0x01, DEF_STR( 1C_2C ))
  1054: 	PORT_DIPSETTING(   0x00, DEF_STR( Free_Play ))
  1055: 	PORT_DIPNAME(0x0c, 0x00, "Right Coin" )
  1056: 	PORT_DIPSETTING(   0x00, "*1" )
  1057: 	PORT_DIPSETTING(   0x04, "*4" )
  1058: 	PORT_DIPSETTING(   0x08, "*5" )
  1059: 	PORT_DIPSETTING(   0x0c, "*6" )
  1060: 	PORT_DIPNAME(0x10, 0x00, "Left Coin" )
  1061: 	PORT_DIPSETTING(   0x00, "*1" )
  1062: 	PORT_DIPSETTING(   0x10, "*2" )
  1063: 	PORT_DIPNAME(0xe0, 0x00, "Bonus Coins" )
  1064: 	PORT_DIPSETTING(   0x00, "None" )
  1065: 	PORT_DIPSETTING(   0x20, "3 credits/2 coins" )
  1066: 	PORT_DIPSETTING(   0x40, "5 credits/4 coins" )
  1067: 	PORT_DIPSETTING(   0x60, "6 credits/4 coins" )
  1068: 	PORT_DIPSETTING(   0x80, "6 credits/5 coins" )
  1069: 	PORT_DIPSETTING(   0xa0, "4 credits/3 coins" )
  1070: 	PORT_DIPSETTING(   0xc0, "Demo mode" )
  1071: 
  1072: 	PORT_START	/* IN6, fake trackball input port. */
  1073: 	PORT_ANALOGX( 0xff, 0x00, IPT_TRACKBALL_X | IPF_REVERSE, 50, 10, 0, 0, IP_KEY_NONE, IP_KEY_NONE, IP_JOY_NONE, IP_JOY_NONE )
  1074: 
  1075: 	PORT_START	/* IN7, fake trackball input port. */
  1076: 	PORT_ANALOGX( 0xff, 0x00, IPT_TRACKBALL_Y, 50, 10, 0, 0, IP_KEY_NONE, IP_KEY_NONE, IP_JOY_NONE, IP_JOY_NONE )
  1077: INPUT_PORTS_END
  1078: 
  1079: 
  1080: INPUT_PORTS_START( warlords )
  1081: 	PORT_START	/* IN0 */
  1082: 	PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_UNUSED )
  1083: 	PORT_DIPNAME( 0x10, 0x00, "Diag Step" )  /* Not referenced */
  1084: 	PORT_DIPSETTING(    0x00, DEF_STR( Off ))
  1085: 	PORT_DIPSETTING(    0x10, DEF_STR( On ))
  1086: 	PORT_SERVICE( 0x20, IP_ACTIVE_LOW )
  1087: 	PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_VBLANK )
  1088: 	PORT_DIPNAME( 0x80, 0x00, DEF_STR( Cabinet ))
  1089: 	PORT_DIPSETTING(    0x80, "Upright (no overlay)" )
  1090: 	PORT_DIPSETTING(    0x00, "Cocktail (overlay)" )
  1091: 
  1092: 	PORT_START	/* IN1 */
  1093: 	PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 | IPF_PLAYER1 )
  1094: 	PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 | IPF_PLAYER2 )
  1095: 	PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 | IPF_PLAYER3 )
  1096: 	PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 | IPF_PLAYER4 )
  1097: 	PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_TILT )
  1098: 	PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN1 )
  1099: 	PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 )
  1100: 	PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE1 )
  1101: 
  1102: 	PORT_START	/* IN2 */
  1103: 	PORT_DIPNAME( 0x03, 0x00, "Language" )
  1104: 	PORT_DIPSETTING(    0x00, "English" )
  1105: 	PORT_DIPSETTING(    0x01, "French" )
  1106: 	PORT_DIPSETTING(    0x02, "Spanish" )
  1107: 	PORT_DIPSETTING(    0x03, "German" )
  1108: 	PORT_DIPNAME( 0x04, 0x00, "Music" )
  1109: 	PORT_DIPSETTING(    0x00, "End of game" )
  1110: 	PORT_DIPSETTING(    0x04, "High score only" )
  1111: 	PORT_BIT( 0xc8, IP_ACTIVE_HIGH, IPT_UNUSED )
  1112: 	PORT_DIPNAME( 0x30, 0x00, "Credits" )
  1113: 	PORT_DIPSETTING(    0x00, "1p/2p = 1 credit" )
  1114: 	PORT_DIPSETTING(    0x10, "1p = 1, 2p = 2" )
  1115: 	PORT_DIPSETTING(    0x20, "1p/2p = 2 credits" )
  1116: 
  1117: 	PORT_START	/* IN3 */
  1118: 	PORT_DIPNAME( 0x03, 0x02, DEF_STR( Coinage ))
  1119: 	PORT_DIPSETTING(    0x03, DEF_STR( 2C_1C ))
  1120: 	PORT_DIPSETTING(    0x02, DEF_STR( 1C_1C ))
  1121: 	PORT_DIPSETTING(    0x01, DEF_STR( 1C_2C ))
  1122: 	PORT_DIPSETTING(    0x00, DEF_STR( Free_Play ))
  1123: 	PORT_DIPNAME( 0x0c, 0x00, "Right Coin" )
  1124: 	PORT_DIPSETTING(    0x00, "*1" )
  1125: 	PORT_DIPSETTING(    0x04, "*4" )
  1126: 	PORT_DIPSETTING(    0x08, "*5" )
  1127: 	PORT_DIPSETTING(    0x0c, "*6" )
  1128: 	PORT_DIPNAME( 0x10, 0x00, "Left Coin" )
  1129: 	PORT_DIPSETTING(    0x00, "*1" )
  1130: 	PORT_DIPSETTING(    0x10, "*2" )
  1131: 	PORT_DIPNAME( 0xe0, 0x00, "Bonus Coins" )
  1132: 	PORT_DIPSETTING(    0x00, "None" )
  1133: 	PORT_DIPSETTING(    0x20, "3 credits/2 coins" )
  1134: 	PORT_DIPSETTING(    0x40, "5 credits/4 coins" )
  1135: 	PORT_DIPSETTING(    0x60, "6 credits/4 coins" )
  1136: 	PORT_DIPSETTING(    0x80, "6 credits/5 coins" )
  1137: 
  1138: 	/* IN4-7 fake to control player paddles */
  1139: 	PORT_START
  1140: 	PORT_ANALOG( 0xff, 0x80, IPT_PADDLE | IPF_PLAYER1, 50, 10, 0x1d, 0xcb )
  1141: 
  1142: 	PORT_START
  1143: 	PORT_ANALOG( 0xff, 0x80, IPT_PADDLE | IPF_PLAYER2, 50, 10, 0x1d, 0xcb )
  1144: 
  1145: 	PORT_START
  1146: 	PORT_ANALOG( 0xff, 0x80, IPT_PADDLE | IPF_PLAYER3, 50, 10, 0x1d, 0xcb )
  1147: 
  1148: 	PORT_START
  1149: 	PORT_ANALOG( 0xff, 0x80, IPT_PADDLE | IPF_PLAYER4, 50, 10, 0x1d, 0xcb )
  1150: INPUT_PORTS_END
  1151: 
  1152: 
  1153: INPUT_PORTS_START( qwakprot )
  1154: 	PORT_START	/* IN0 */
  1155: 	PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_UP )
  1156: 	PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )			/* ??? */
  1157: 
  1158: 	PORT_START      /* IN1 */
  1159: 	PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN )
  1160: 	PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_VBLANK )			/* ??? */
  1161: 
  1162: 	PORT_START      /* IN2 */
  1163: 	PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT )
  1164: 	PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_VBLANK )			/* ??? */
  1165: 
  1166: 	PORT_START      /* IN3 */
  1167: 	PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT )
  1168: 	PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )			/* ??? */
  1169: 
  1170: 	PORT_START      /* IN4 */
  1171: 	PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 )
  1172: 	PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )			/* ??? */
  1173: 
  1174: 	PORT_START      /* IN5 */
  1175: 	PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 )
  1176: 	PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 )
  1177: 
  1178: 	PORT_START      /* IN6 */
  1179: 	PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 )
  1180: 	PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 )
  1181: 
  1182: 	PORT_START      /* IN7 */
  1183: 	PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )			/* ??? */
  1184: 	PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE1 )
  1185: 
  1186: 	PORT_START      /* IN8 */
  1187: 	PORT_DIPNAME( 0x01, 0x00, "DIP 1" )
  1188: 	PORT_DIPSETTING(    0x01, DEF_STR( Off ))
  1189: 	PORT_DIPSETTING(    0x00, DEF_STR( On ))
  1190: 	PORT_DIPNAME( 0x02, 0x00, "DIP 2" )
  1191: 	PORT_DIPSETTING(    0x02, DEF_STR( Off ))
  1192: 	PORT_DIPSETTING(    0x00, DEF_STR( On ))
  1193: 	PORT_DIPNAME( 0x04, 0x00, "DIP 3" )
  1194: 	PORT_DIPSETTING(    0x04, DEF_STR( Off ))
  1195: 	PORT_DIPSETTING(    0x00, DEF_STR( On ))
  1196: 	PORT_DIPNAME( 0x08, 0x00, "DIP 4" )
  1197: 	PORT_DIPSETTING(    0x08, DEF_STR( Off ))
  1198: 	PORT_DIPSETTING(    0x00, DEF_STR( On ))
  1199: 	PORT_DIPNAME( 0x10, 0x00, "DIP 5" )
  1200: 	PORT_DIPSETTING(    0x10, DEF_STR( Off ))
  1201: 	PORT_DIPSETTING(    0x00, DEF_STR( On ))
  1202: 	PORT_DIPNAME( 0x20, 0x00, "DIP 6" )
  1203: 	PORT_DIPSETTING(    0x20, DEF_STR( Off ))
  1204: 	PORT_DIPSETTING(    0x00, DEF_STR( On ))
  1205: 	PORT_DIPNAME( 0x40, 0x00, "DIP 7" )
  1206: 	PORT_DIPSETTING(    0x40, DEF_STR( Off ))
  1207: 	PORT_DIPSETTING(    0x00, DEF_STR( On ))
  1208: 	PORT_DIPNAME( 0x80, 0x00, "DIP 8" )
  1209: 	PORT_DIPSETTING(    0x80, DEF_STR( Off ))
  1210: 	PORT_DIPSETTING(    0x00, DEF_STR( On ))
  1211: INPUT_PORTS_END
  1212: 
  1213: 
  1214: 
  1215: /*************************************
  1216:  *
  1217:  *	Graphics layouts: Centipede/Millipede
  1218:  *
  1219:  *************************************/
  1220: 
  1221: static struct GfxLayout charlayout =
  1222: {
  1223: 	8,8,
  1224: 	RGN_FRAC(1,2),
  1225: 	2,
  1226: 	{ RGN_FRAC(1,2), 0 },
  1227: 	{ 0, 1, 2, 3, 4, 5, 6, 7 },
  1228: 	{ 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 },
  1229: 	8*8
  1230: };
  1231: 
  1232: static struct GfxLayout spritelayout =
  1233: {
  1234: 	8,16,
  1235: 	RGN_FRAC(1,2),
  1236: 	2,
  1237: 	{ RGN_FRAC(1,2), 0 },
  1238: 	{ 0, 1, 2, 3, 4, 5, 6, 7 },
  1239: 	{ 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8,
  1240: 			8*8, 9*8, 10*8, 11*8, 12*8, 13*8, 14*8, 15*8 },
  1241: 	16*8
  1242: };
  1243: 
  1244: static struct GfxDecodeInfo centiped_gfxdecodeinfo[] =
  1245: {
  1246: 	{ REGION_GFX1, 0, &charlayout,     0, 1 },
  1247: 	{ REGION_GFX1, 0, &spritelayout,   4, 4*4*4 },
  1248: 	{ -1 }
  1249: };
  1250: 
  1251: static struct GfxDecodeInfo milliped_gfxdecodeinfo[] =
  1252: {
  1253: 	{ REGION_GFX1, 0, &charlayout,     0, 4 },
  1254: 	{ REGION_GFX1, 0, &spritelayout, 4*4, 4*4*4*4 },
  1255: 	{ -1 }
  1256: };
  1257: 
  1258: 
  1259: 
  1260: /*************************************
  1261:  *
  1262:  *	Graphics layouts: Warlords
  1263:  *
  1264:  *************************************/
  1265: 
  1266: static struct GfxLayout warlords_charlayout =
  1267: {
  1268: 	8,8,
  1269: 	RGN_FRAC(1,4),
  1270: 	2,
  1271: 	{ RGN_FRAC(1,2), 0 },
  1272: 	{ 0, 1, 2, 3, 4, 5, 6, 7 },
  1273: 	{ 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 },
  1274: 	8*8
  1275: };
  1276: 
  1277: static struct GfxDecodeInfo warlords_gfxdecodeinfo[] =
  1278: {
  1279: 	{ REGION_GFX1, 0x000, &warlords_charlayout, 0,   8 },
  1280: 	{ REGION_GFX1, 0x200, &warlords_charlayout, 8*4, 8*4 },
  1281: 	{ -1 }
  1282: };
  1283: 
  1284: 
  1285: 
  1286: /*************************************
  1287:  *
  1288:  *	Graphics layouts: Qwak
  1289:  *
  1290:  *************************************/
  1291: 
  1292: static struct GfxLayout qwakprot_charlayout =
  1293: {
  1294: 	8,8,
  1295: 	RGN_FRAC(1,4),
  1296: 	4,
  1297: 	{ RGN_FRAC(3,4), RGN_FRAC(2,4), RGN_FRAC(1,4), 0 },
  1298: 	{ 0, 1, 2, 3, 4, 5, 6, 7 },
  1299: 	{ 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 },
  1300: 	8*8
  1301: };
  1302: 
  1303: static struct GfxLayout qwakprot_spritelayout =
  1304: {
  1305: 	8,16,
  1306: 	RGN_FRAC(1,4),
  1307: 	4,
  1308: 	{ RGN_FRAC(3,4), RGN_FRAC(2,4), RGN_FRAC(1,4), 0 },
  1309: 	{ 0, 1, 2, 3, 4, 5, 6, 7 },
  1310: 	{ 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8,
  1311: 			8*8, 9*8, 10*8, 11*8, 12*8, 13*8, 14*8, 15*8 },
  1312: 	16*8
  1313: };
  1314: 
  1315: static struct GfxDecodeInfo qwakprot_gfxdecodeinfo[] =
  1316: {
  1317: 	{ REGION_GFX1, 0, &qwakprot_charlayout,   0, 1 },
  1318: 	{ REGION_GFX1, 0, &qwakprot_spritelayout, 0, 1 },
  1319: 	{ -1 }
  1320: };
  1321: 
  1322: 
  1323: 
  1324: /*************************************
  1325:  *
  1326:  *	Sound interfaces
  1327:  *
  1328:  *************************************/
  1329: 
  1330: static struct POKEYinterface centiped_pokey_interface =
  1331: {
  1332: 	1,
  1333: 	12096000/8,
  1334: 	{ 100 },
  1335: 	/* The 8 pot handlers */
  1336: 	{ 0 },
  1337: 	{ 0 },
  1338: 	{ 0 },
  1339: 	{ 0 },
  1340: 	{ 0 },
  1341: 	{ 0 },
  1342: 	{ 0 },
  1343: 	{ 0 },
  1344: 	/* The allpot handler */
  1345: 	{ 0 },
  1346: };
  1347: 
  1348: 
  1349: static struct AY8910interface centipdb_ay8910_interface =
  1350: {
  1351: 	1,
  1352: 	12096000/8,
  1353: 	{ 50 },
  1354: 	{ 0 },
  1355: 	{ 0 },
  1356: 	{ 0 },
  1357: 	{ 0 }
  1358: };
  1359: 
  1360: 
  1361: static struct AY8910interface centipb2_ay8910_interface =
  1362: {
  1363: 	1,
  1364: 	12096000/8,
  1365: 	{ 100 },
  1366: 	{ centipdb_rand_r },
  1367: 	{ 0 },
  1368: 	{ 0 },
  1369: 	{ 0 }
  1370: };
  1371: 
  1372: 
  1373: static struct POKEYinterface milliped_pokey_interface =
  1374: {
  1375: 	2,
  1376: 	12096000/8,
  1377: 	{ 50, 50 },
  1378: 	/* The 8 pot handlers */
  1379: 	{ 0, 0 },
  1380: 	{ 0, 0 },
  1381: 	{ 0, 0 },
  1382: 	{ 0, 0 },
  1383: 	{ 0, 0 },
  1384: 	{ 0, 0 },
  1385: 	{ 0, 0 },
  1386: 	{ 0, 0 },
  1387: 	/* The allpot handler */
  1388: 	{ input_port_4_r, input_port_5_r },
  1389: };
  1390: 
  1391: 
  1392: static struct POKEYinterface warlords_pokey_interface =
  1393: {
  1394: 	1,
  1395: 	12096000/8,
  1396: 	{ 100 },
  1397: 	/* The 8 pot handlers */
  1398: 	{ input_port_4_r },
  1399: 	{ input_port_5_r },
  1400: 	{ input_port_6_r },
  1401: 	{ input_port_7_r },
  1402: 	{ 0 },
  1403: 	{ 0 },
  1404: 	{ 0 },
  1405: 	{ 0 },
  1406: 	/* The allpot handler */
  1407: 	{ 0 },
  1408: };
  1409: 
  1410: 
  1411: static struct POKEYinterface qwakprot_pokey_interface =
  1412: {
  1413: 	2,
  1414: 	12096000/8,
  1415: 	{ 50, 50 },
  1416: 	/* The 8 pot handlers */
  1417: 	{ 0, 0 },
  1418: 	{ 0, 0 },
  1419: 	{ 0, 0 },
  1420: 	{ 0, 0 },
  1421: 	{ 0, 0 },
  1422: 	{ 0, 0 },
  1423: 	{ 0, 0 },
  1424: 	{ 0, 0 },
  1425: 	/* The allpot handler */
  1426: 	{ 0, 0 },
  1427: };
  1428: 
  1429: 
  1430: 
  1431: /*************************************
  1432:  *
  1433:  *	Machine drivers
  1434:  *
  1435:  *************************************/
  1436: 
  1437: static MACHINE_DRIVER_START( centiped )
  1438: 
  1439: 	/* basic machine hardware */
  1440: 	MDRV_CPU_ADD_TAG("main", M6502, 12096000/8)	/* 1.512 MHz (slows down to 0.75MHz while accessing playfield RAM) */
  1441: 	MDRV_CPU_MEMORY(centiped_readmem,centiped_writemem)
  1442: 
  1443: 	MDRV_FRAMES_PER_SECOND(60)
  1444: 	MDRV_VBLANK_DURATION(1460)
  1445: 
  1446: 	MDRV_MACHINE_INIT(centiped)
  1447: 	MDRV_NVRAM_HANDLER(atari_vg)
  1448: 
  1449: 	/* video hardware */
  1450: 	MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER)
  1451: 	MDRV_SCREEN_SIZE(32*8, 32*8)
  1452: 	MDRV_VISIBLE_AREA(0*8, 32*8-1, 0*8, 30*8-1)
  1453: 	MDRV_GFXDECODE(centiped_gfxdecodeinfo)
  1454: 	MDRV_PALETTE_LENGTH(4+4)
  1455: 	MDRV_COLORTABLE_LENGTH(4+4*4*4*4)
  1456: 
  1457: 	MDRV_PALETTE_INIT(centiped)
  1458: 	MDRV_VIDEO_START(centiped)
  1459: 	MDRV_VIDEO_UPDATE(centiped)
  1460: 
  1461: 	/* sound hardware */
  1462: 	MDRV_SOUND_ADD_TAG("pokey", POKEY, centiped_pokey_interface)
  1463: MACHINE_DRIVER_END
  1464: 
  1465: 
  1466: static MACHINE_DRIVER_START( centipdb )
  1467: 
  1468: 	/* basic machine hardware */
  1469: 	MDRV_IMPORT_FROM(centiped)
  1470: 
  1471: 	/* sound hardware */
  1472: 	MDRV_SOUND_REPLACE("pokey", AY8910, centipdb_ay8910_interface)
  1473: MACHINE_DRIVER_END
  1474: 
  1475: 
  1476: static MACHINE_DRIVER_START( centipb2 )
  1477: 
  1478: 	/* basic machine hardware */
  1479: 	MDRV_IMPORT_FROM(centiped)
  1480: 	MDRV_CPU_MODIFY("main")
  1481: 	MDRV_CPU_MEMORY(centipb2_readmem,centipb2_writemem)
  1482: 
  1483: 	/* sound hardware */
  1484: 	MDRV_SOUND_REPLACE("pokey", AY8910, centipb2_ay8910_interface)
  1485: MACHINE_DRIVER_END
  1486: 
  1487: 
  1488: static MACHINE_DRIVER_START( magworm )
  1489: 
  1490: 	/* basic machine hardware */
  1491: 	MDRV_IMPORT_FROM(centiped)
  1492: 
  1493: 	/* sound hardware */
  1494: 	MDRV_SOUND_REPLACE("pokey", AY8910, centipb2_ay8910_interface)
  1495: MACHINE_DRIVER_END
  1496: 
  1497: 
  1498: static MACHINE_DRIVER_START( milliped )
  1499: 
  1500: 	/* basic machine hardware */
  1501: 	MDRV_IMPORT_FROM(centiped)
  1502: 	MDRV_CPU_MODIFY("main")
  1503: 	MDRV_CPU_MEMORY(milliped_readmem,milliped_writemem)
  1504: 
  1505: 	/* video hardware */
  1506: 	MDRV_GFXDECODE(milliped_gfxdecodeinfo)
  1507: 	MDRV_PALETTE_LENGTH(4*4+4*4)
  1508: 	MDRV_COLORTABLE_LENGTH(4*4+4*4*4*4*4)
  1509: 
  1510: 	MDRV_PALETTE_INIT(milliped)
  1511: 	MDRV_VIDEO_START(milliped)
  1512: 
  1513: 	/* sound hardware */
  1514: 	MDRV_SOUND_REPLACE("pokey", POKEY, milliped_pokey_interface)
  1515: MACHINE_DRIVER_END
  1516: 
  1517: 
  1518: static MACHINE_DRIVER_START( warlords )
  1519: 
  1520: 	/* basic machine hardware */
  1521: 	MDRV_IMPORT_FROM(centiped)
  1522: 	MDRV_CPU_MODIFY("main")
  1523: 	MDRV_CPU_MEMORY(warlords_readmem,warlords_writemem)
  1524: 
  1525: 	/* video hardware */
  1526: 	MDRV_GFXDECODE(warlords_gfxdecodeinfo)
  1527: 	MDRV_PALETTE_LENGTH(128)
  1528: 	MDRV_COLORTABLE_LENGTH(8*4+8*4)
  1529: 
  1530: 	MDRV_PALETTE_INIT(warlords)
  1531: 	MDRV_VIDEO_START(warlords)
  1532: 	MDRV_VIDEO_UPDATE(warlords)
  1533: 
  1534: 	/* sound hardware */
  1535: 	MDRV_SOUND_REPLACE("pokey", POKEY, warlords_pokey_interface)
  1536: MACHINE_DRIVER_END
  1537: 
  1538: 
  1539: static MACHINE_DRIVER_START( qwakprot )
  1540: 
  1541: 	/* basic machine hardware */
  1542: 	MDRV_IMPORT_FROM(centiped)
  1543: 	MDRV_CPU_MODIFY("main")
  1544: 	MDRV_CPU_MEMORY(qwakprot_readmem,qwakprot_writemem)
  1545: 
  1546: 	/* video hardware */
  1547: 	MDRV_GFXDECODE(qwakprot_gfxdecodeinfo)
  1548: 	MDRV_PALETTE_LENGTH(16)
  1549: 	MDRV_COLORTABLE_LENGTH(0)
  1550: 
  1551: 	MDRV_PALETTE_INIT(NULL)
  1552: 	MDRV_VIDEO_START(qwakprot)
  1553: 	MDRV_VIDEO_UPDATE(qwakprot)
  1554: 
  1555: 	/* sound hardware */
  1556: 	MDRV_SOUND_REPLACE("pokey", POKEY, qwakprot_pokey_interface)
  1557: MACHINE_DRIVER_END
  1558: 
  1559: 
  1560: 
  1561: /*************************************
  1562:  *
  1563:  *	ROM definitions
  1564:  *
  1565:  *************************************/
  1566: 
  1567: ROM_START( centiped )
  1568: 	ROM_REGION( 0x10000, REGION_CPU1, 0 )	/* 64k for code */
  1569: 	ROM_LOAD( "centiped.307", 0x2000, 0x0800, CRC(5ab0d9de) SHA1(8ea6e3304202831aabaf31dbd0f970a7b3bfe421) )
  1570: 	ROM_LOAD( "centiped.308", 0x2800, 0x0800, CRC(4c07fd3e) SHA1(af4fdbf32c23b1864819d620a874e7f205da3cdb) )
  1571: 	ROM_LOAD( "centiped.309", 0x3000, 0x0800, CRC(ff69b424) SHA1(689fa560d40a384dcbcad7c8095bc12e91875580) )
  1572: 	ROM_LOAD( "centiped.310", 0x3800, 0x0800, CRC(44e40fa4) SHA1(c557db83876afc8ab52047ab1a3c3bfef34d6351) )
  1573: 
  1574: 	ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE )
  1575: 	ROM_LOAD( "centiped.211", 0x0000, 0x0800, CRC(880acfb9) SHA1(6c862352c329776f2f9974a0df9dbe41f9dbc361) )
  1576: 	ROM_LOAD( "centiped.212", 0x0800, 0x0800, CRC(b1397029) SHA1(974c03d29aeca672fffa4dfc00a06be6a851aacb) )
  1577: ROM_END
  1578: 
  1579: 
  1580: ROM_START( centipd2 )
  1581: 	ROM_REGION( 0x10000, REGION_CPU1, 0 )	/* 64k for code */
  1582: 	ROM_LOAD( "centiped.207", 0x2000, 0x0800, CRC(b2909e2f) SHA1(90ec90bd1e262861730afd5b113ec8dddd958ed8) )
  1583: 	ROM_LOAD( "centiped.208", 0x2800, 0x0800, CRC(110e04ff) SHA1(4cb481792411b6aefac561744cfbe107aba8bab3) )
  1584: 	ROM_LOAD( "centiped.209", 0x3000, 0x0800, CRC(cc2edb26) SHA1(b3ea580afa6a1ac44662051fae19c1efc320fcd3) )
  1585: 	ROM_LOAD( "centiped.210", 0x3800, 0x0800, CRC(93999153) SHA1(8788c2b39fc5bfbb147a5e7c26ad360bba8d1063) )
  1586: 
  1587: 	ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE )
  1588: 	ROM_LOAD( "centiped.211", 0x0000, 0x0800, CRC(880acfb9) SHA1(6c862352c329776f2f9974a0df9dbe41f9dbc361) )
  1589: 	ROM_LOAD( "centiped.212", 0x0800, 0x0800, CRC(b1397029) SHA1(974c03d29aeca672fffa4dfc00a06be6a851aacb) )
  1590: ROM_END
  1591: 
  1592: 
  1593: ROM_START( centtime )
  1594: 	ROM_REGION( 0x10000, REGION_CPU1, 0 )	/* 64k for code */
  1595: 	ROM_LOAD( "cent_d1.bin",  0x2000, 0x0800, CRC(c4d995eb) SHA1(d0b2f0461cfa35842045d40ffb65e777703b773e) )
  1596: 	ROM_LOAD( "cent_e1.bin",  0x2800, 0x0800, CRC(bcdebe1b) SHA1(53f3bf88a79ce40661c0a9381928e55d8c61777a) )
  1597: 	ROM_LOAD( "cent_fh1.bin", 0x3000, 0x0800, CRC(66d7b04a) SHA1(8fa758095b618085090491dfb5ea114cdc87f9df) )
  1598: 	ROM_LOAD( "cent_j1.bin",  0x3800, 0x0800, CRC(33ce4640) SHA1(780c2eb320f64fad6b265c0dada961646ed30174) )
  1599: 
  1600: 	ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE )
  1601: 	ROM_LOAD( "centiped.211", 0x0000, 0x0800, CRC(880acfb9) SHA1(6c862352c329776f2f9974a0df9dbe41f9dbc361) )
  1602: 	ROM_LOAD( "centiped.212", 0x0800, 0x0800, CRC(b1397029) SHA1(974c03d29aeca672fffa4dfc00a06be6a851aacb) )
  1603: ROM_END
  1604: 
  1605: 
  1606: ROM_START( centipdb )
  1607: 	ROM_REGION( 0x10000, REGION_CPU1, 0 )	/* 64k for code */
  1608: 	ROM_LOAD( "olympia.c28",  0x2000, 0x0800, CRC(8a744e57) SHA1(0bc83fe01d929af4e5c7f2a8d1236560df41f9ce) )
  1609: 	ROM_LOAD( "olympia.c29",  0x2800, 0x0800, CRC(bb897b10) SHA1(bb1039fe64774277870f675eb72dd9f3f596f865) )
  1610: 	ROM_LOAD( "olympia.c30",  0x3000, 0x0800, CRC(2297c2ac) SHA1(129d111f80b837f7b44852162f4abfba31fc0d75) )
  1611: 	ROM_LOAD( "olympia.c31",  0x3800, 0x0800, CRC(cc529d6b) SHA1(80d86371b0f969b434af6ffb3834adaf11d05ac2) )
  1612: 
  1613: 	ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE )
  1614: 	ROM_LOAD( "olympia.c32",  0x0000, 0x0800, CRC(d91b9724) SHA1(5ff9ccb2769c853b44764bfe829ad1df08686dc6) )
  1615: 	ROM_LOAD( "olympia.c33",  0x0800, 0x0800, CRC(1a6acd02) SHA1(9c5daa8195705669d59b018a89ff8d03bc18999e) )
  1616: ROM_END
  1617: 
  1618: 
  1619: ROM_START( centipb2 )
  1620: 	ROM_REGION( 0x10000, REGION_CPU1, 0 )	/* 64k for code */
  1621: 	ROM_LOAD( "d1",  		  0x2000, 0x0800, CRC(b17b8e0b) SHA1(01944cf040cf23aeb4c50d4f2e63181e08a07310) )
  1622: 	ROM_LOAD( "e1",  		  0x2800, 0x0800, CRC(7684398e) SHA1(eea8e05506a7af2fec55c2689e3caafc62ea524f) )
  1623: 	ROM_LOAD( "h1",  		  0x3000, 0x0800, CRC(74580fe4) SHA1(35b8a8675e4e020e234e51c3e4bd4ee5c24b79d2) )
  1624: 	ROM_LOAD( "j1",  		  0x3800, 0x0800, CRC(84600161) SHA1(e9a6801c6f59e2b34e692e9aa71845d2e64a2379) )
  1625: 	ROM_RELOAD( 	  		  0x7800, 0x0800 )
  1626: 	ROM_LOAD( "k1",  		  0x6000, 0x0800, CRC(f1aa329b) SHA1(e4689de0f94d11f125ee7548a3f8128ff8e8da51) )
  1627: 
  1628: 	ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE )
  1629: 	ROM_LOAD( "centiped.211", 0x0000, 0x0800, CRC(880acfb9) SHA1(6c862352c329776f2f9974a0df9dbe41f9dbc361) )
  1630: 	ROM_LOAD( "centiped.212", 0x0800, 0x0800, CRC(b1397029) SHA1(974c03d29aeca672fffa4dfc00a06be6a851aacb) )
  1631: ROM_END
  1632: 
  1633: ROM_START( millpac )
  1634: 	ROM_REGION( 0x10000, REGION_CPU1, 0 ) /* 64k for code */
  1635: 	ROM_LOAD( "millpac1.1d",  0x2000, 0x0800, CRC(4dd6913d) SHA1(9eca634e1a827f9bbcf3c532d44e175ac4751755) )
  1636: 	ROM_LOAD( "millpac2.1e",  0x2800, 0x0800, CRC(411c81f1) SHA1(15184642522f0b7eab81301295d435c10ce2d78d) )
  1637: 	ROM_LOAD( "millpac3.1h",  0x3000, 0x0800, CRC(577076cc) SHA1(3124fcfb56f33ebd17d2c0da1098023474187066) )
  1638: 	ROM_LOAD( "millpac4.1j",  0x3800, 0x0800, CRC(89aedd75) SHA1(74635079e7103bf6fa9577f5980e1adaa34d9be0) )
  1639: 	ROM_RELOAD(    0x7800, 0x0800 )
  1640: 	ROM_LOAD( "millpac5.1k",  0x6000, 0x0800, CRC(67ac481b) SHA1(cef839d1c9dd207fdf41ae47d5f279b783f2f4cf) )
  1641: 
  1642: 	ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE )
  1643: 	ROM_LOAD( "millpac6.7f",  0x0000, 0x0800, CRC(79f05520) SHA1(25c9f3b4826f48830f5c42d41d4f030b49e58d6a) )
  1644: 	ROM_LOAD( "millpac7.7j",  0x0800, 0x0800, CRC(4880b2bd) SHA1(1909b8fb275f38f1b57bf53ba348b866cc48a599) )
  1645: ROM_END
  1646: 
  1647: 
  1648: ROM_START( magworm )
  1649: 	ROM_REGION( 0x10000, REGION_CPU1, 0 )	/* 64k for code */
  1650: 	ROM_LOAD( "magworm.0",	  0x2000, 0x0800, CRC(a88e970a) SHA1(f0cc6fdcdecf05f11cef7ebae4e11783a8bbc5ba) )
  1651: 	ROM_LOAD( "magworm.1",	  0x2800, 0x0800, CRC(7a04047e) SHA1(3c00756c8ffbc5e78d4a7409802cc2ed8f668264) )
  1652: 	ROM_LOAD( "magworm.2",	  0x3000, 0x0800, CRC(f127f1c3) SHA1(3fddcd6f458ac60eaebacef921b522dd2c7b8141) )
  1653: 	ROM_LOAD( "magworm.3",	  0x3800, 0x0800, CRC(478d92b4) SHA1(99cce957c50ca80ddde408d9188fc2ed04d8da68) )
  1654: 
  1655: 	ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE )
  1656: 	ROM_LOAD( "magworm.4",    0x0000, 0x0800, CRC(cea64e1a) SHA1(9022102124e1ad93f912ce8bdf85f8a886b0879b) )
  1657: 	ROM_LOAD( "magworm.5",    0x0800, 0x0800, CRC(24558ea5) SHA1(8cd7131e19afd7a96191b1b3c3fba7ae9a140f4b) )
  1658: ROM_END
  1659: 
  1660: 
  1661: ROM_START( milliped )
  1662: 	ROM_REGION( 0x10000, REGION_CPU1, 0 )	/* 64k for code */
  1663: 	ROM_LOAD( "milliped.104", 0x4000, 0x1000, CRC(40711675) SHA1(b595d6a0f5d3c611ade1b83a94c3b909d2124dc4) )
  1664: 	ROM_LOAD( "milliped.103", 0x5000, 0x1000, CRC(fb01baf2) SHA1(9c1d0bbc20bf25dd21761a311fd1ed80aa029241) )
  1665: 	ROM_LOAD( "milliped.102", 0x6000, 0x1000, CRC(62e137e0) SHA1(9fe40db55ba1d20d4f11704f7f5df9ff75b87f30) )
  1666: 	ROM_LOAD( "milliped.101", 0x7000, 0x1000, CRC(46752c7d) SHA1(ab06b1fd80271849946f90757b3837b617394929) )
  1667: 
  1668: 	ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE )
  1669: 	ROM_LOAD( "milliped.107", 0x0000, 0x0800, CRC(68c3437a) SHA1(4c7ea33d9501456ee8f5a642da7d6c972f2bb90d) )
  1670: 	ROM_LOAD( "milliped.106", 0x0800, 0x0800, CRC(f4468045) SHA1(602fcc7290f9f4eacb841c76665961ebf4307f80) )
  1671: ROM_END
  1672: 
  1673: 
  1674: ROM_START( warlords )
  1675: 	ROM_REGION( 0x10000, REGION_CPU1, 0 )	/* 64k for code */
  1676: 	ROM_LOAD( "037154.1m",    0x5000, 0x0800, CRC(18006c87) SHA1(6b4aab1b1710819d29f4bbc29269eb9c915626c0) )
  1677: 	ROM_LOAD( "037153.1k",    0x5800, 0x0800, CRC(67758f4c) SHA1(b65ca677b54de7a8202838207d9a7bb0aed3e0f2) )
  1678: 	ROM_LOAD( "037158.1j",    0x6000, 0x0800, CRC(1f043a86) SHA1(b1e271c0979d62202ae86c4b6860fb67bbef6400) )
  1679: 	ROM_LOAD( "037157.1h",    0x6800, 0x0800, CRC(1a639100) SHA1(41ec333aee7192f8aeef49e5257f201f4db01cff) )
  1680: 	ROM_LOAD( "037156.1e",    0x7000, 0x0800, CRC(534f34b4) SHA1(1680982ded17350c2ae10bb47f7eb8908bb10db2) )
  1681: 	ROM_LOAD( "037155.1d",    0x7800, 0x0800, CRC(23b94210) SHA1(d74c1ca90caf15942805043b4ebe4ee077799da0) )
  1682: 
  1683: 	ROM_REGION( 0x0800, REGION_GFX1, ROMREGION_DISPOSE )
  1684: 	ROM_LOAD( "037159.6e",    0x0000, 0x0800, CRC(ff979a08) SHA1(422053473e41e3e1f71eb28e40eedc78f22326b3) )
  1685: 
  1686: 	ROM_REGION( 0x0100, REGION_PROMS, 0 )
  1687: 	/* Only the first 0x80 bytes are used by the hardware. A7 is grounded. */
  1688: 	/* Bytes 0x00-0x3f are used fore the color cocktail version. */
  1689: 	/* Bytes 0x40-0x7f are for the upright version of the cabinet with a */
  1690: 	/* mirror and painted background. */
  1691: 	ROM_LOAD( "warlord.clr",  0x0000, 0x0100, CRC(a2c5c277) SHA1(f04de9fb6ee9619b4a4aae10c92b16b3123046cf) )
  1692: ROM_END
  1693: 
  1694: 
  1695: ROM_START( qwakprot )
  1696: 	ROM_REGION( 0x10000, REGION_CPU1, 0 )	/* 64k for code */
  1697: 	ROM_LOAD( "qwak8000.bin", 0x8000, 0x1000, CRC(4d002d8a) SHA1(8621e7ec1ab3cb8d003858227e858354cd79dbf1) )
  1698: 	ROM_LOAD( "qwak9000.bin", 0x9000, 0x1000, CRC(e0c78fd7) SHA1(f5f397950971d12a7ae47fc64aa8f5751463b8a5) )
  1699: 	ROM_LOAD( "qwaka000.bin", 0xa000, 0x1000, CRC(e5770fc9) SHA1(c9556e9c2f7b6c37755ac9f10d95027118317b4a) )
  1700: 	ROM_LOAD( "qwakb000.bin", 0xb000, 0x1000, CRC(90771cc0) SHA1(5715e5bfccb05c51d871b443e42b0950ec23e330) )
  1701: 	ROM_RELOAD(               0xf000, 0x1000 )	/* for the reset and interrupt vectors */
  1702: 
  1703: 	ROM_REGION( 0x4000, REGION_GFX1, ROMREGION_DISPOSE )
  1704: 	ROM_LOAD( "qwakgfx0.bin", 0x0000, 0x1000, CRC(bed2c067) SHA1(53d909b414042d54fe2e86ae0d6c7a4ded16b87e) )
  1705: 	ROM_LOAD( "qwakgfx1.bin", 0x1000, 0x1000, CRC(73a31d28) SHA1(bbe076432866398bcd02962dd90eb178e3a38fb1) )
  1706: 	ROM_LOAD( "qwakgfx2.bin", 0x2000, 0x1000, CRC(07fd9e80) SHA1(83d5f22b8316ac7e88d8ecdb238182a35a6f6362) )
  1707: 	ROM_LOAD( "qwakgfx3.bin", 0x3000, 0x1000, CRC(e8416f2b) SHA1(171f6539575f2c06b431ab5118e5cbaf740f557d) )
  1708: ROM_END
  1709: 
  1710: 
  1711: 
  1712: /*************************************
  1713:  *
  1714:  *	Driver initialization
  1715:  *
  1716:  *************************************/
  1717: 
  1718: static DRIVER_INIT( centipdb )
  1719: {
  1720: 	install_mem_write_handler(0, 0x1000, 0x100f, centipdb_AY8910_w);
  1721: 	install_mem_read_handler(0, 0x1000, 0x100f, centipdb_AY8910_r);
  1722: 	install_mem_read_handler(0, 0x1780, 0x1780, centipdb_rand_r);
  1723: }
  1724: 
  1725: 
  1726: static DRIVER_INIT( magworm )
  1727: {
  1728: 	install_mem_write_handler(0, 0x1001, 0x1001, AY8910_control_port_0_w);
  1729: 	install_mem_write_handler(0, 0x1003, 0x1003, AY8910_write_port_0_w);
  1730: 	install_mem_read_handler(0, 0x1003, 0x1003, AY8910_read_port_0_r);
  1731: }
  1732: 
  1733: 
  1734: 
  1735: /*************************************
  1736:  *
  1737:  *	Game drivers
  1738:  *
  1739:  *************************************/
  1740: 
  1741: GAME( 1980, centiped, 0,        centiped, centiped, 0,        ROT270, "Atari", "Centipede (revision 3)" )
  1742: GAME( 1980, centipd2, centiped, centiped, centiped, 0,        ROT270, "Atari", "Centipede (revision 2)" )
  1743: GAME( 1980, centtime, centiped, centiped, centtime, 0,        ROT270, "Atari", "Centipede (1 player, timed)" )
  1744: GAME( 1980, centipdb, centiped, centipdb, centipdb, centipdb, ROT270, "bootleg", "Centipede (bootleg set 1)" )
  1745: GAME( 1980, centipb2, centiped, centipb2, centiped, 0,        ROT270, "bootleg", "Centipede (bootleg set 2)" )
  1746: GAME( 1980, millpac,  centiped, centipb2, centiped,  0, 	  ROT270, "Valadon Automation", "Millpac" )
  1747: GAME( 1980, magworm,  centiped, magworm,  magworm,  magworm,  ROT270, "bootleg", "Magic Worm (bootleg)" )
  1748: GAME( 1982, milliped, 0,        milliped, milliped, 0,        ROT270, "Atari", "Millipede" )
  1749: 
  1750: GAME( 1980, warlords, 0,        warlords, warlords, 0,        ROT0,   "Atari", "Warlords" )
  1751: GAMEX(1982, qwakprot, 0,        qwakprot, qwakprot, 0,        ROT270, "Atari", "Qwak (prototype)", GAME_NO_COCKTAIL )
  1752: 




powered by ggdb.com this page took approx. 0.003s