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 : Pac & Pal : VM Driver Source

Source Listing


     1: /***************************************************************************
     2: 
     3: Super Pac-Man memory map (preliminary)
     4: 
     5: driver by Aaron Giles
     6: 
     7: CPU #1:
     8: 0000-03ff video RAM
     9: 0400-07ff color RAM
    10: 0800-0f7f RAM
    11: 0f80-0fff sprite data 1 (sprite number & color)
    12: 1000-177f RAM
    13: 1780-17ff sprite data 2 (x, y position)
    14: 1800-1f7f RAM
    15: 1f80-1fff sprite data 3 (high bit of y, flip flags, double-size flags)
    16: 2000      flip screen
    17: 4040-43ff RAM shared with CPU #2
    18: 4800-480f custom I/O chip #1
    19: 4810-481f custom I/O chip #2
    20: 5000      reset CPU #2
    21: 5002-5003 IRQ enable
    22: 5008-5009 sound enable
    23: 500a-500b CPU #2 enable
    24: 8000      watchdog timer
    25: c000-ffff ROM
    26: 
    27: CPU #2:
    28: 0000-0040 sound registers
    29: 0040-03ff RAM shared with CPU #1
    30: f000-ffff ROM
    31: 
    32: Interrupts:
    33: CPU #1 IRQ generated by VBLANK
    34: CPU #2 uses no interrupts
    35: 
    36: ***************************************************************************/
    37: 
    38: #include "driver.h" 
    39: #include "vidhrdw/generic.h" 
    40: 
    41: 
    42: extern unsigned char *superpac_sharedram;
    43: extern unsigned char *superpac_customio_1,*superpac_customio_2;
    44: READ_HANDLER( superpac_customio_r );
    45: READ_HANDLER( superpac_sharedram_r );
    46: WRITE_HANDLER( superpac_sharedram_w );
    47: READ_HANDLER( superpac_customio_1_r );
    48: READ_HANDLER( superpac_customio_2_r );
    49: WRITE_HANDLER( superpac_interrupt_enable_w );
    50: WRITE_HANDLER( superpac_cpu_enable_w );
    51: WRITE_HANDLER( superpac_reset_2_w );
    52: 
    53: VIDEO_START( superpac );
    54: VIDEO_UPDATE( superpac );
    55: MACHINE_INIT( superpac );
    56: PALETTE_INIT( superpac );
    57: READ_HANDLER( superpac_flipscreen_r );
    58: WRITE_HANDLER( superpac_flipscreen_w );
    59: 
    60: 
    61: 
    62: /*************************************
    63:  *
    64:  *	Main CPU memory handlers
    65:  *
    66:  *************************************/
    67: 
    68: static MEMORY_READ_START( readmem_cpu1 )
    69: 	{ 0x0000, 0x1fff, MRA_RAM },
    70: 	{ 0x2000, 0x2000, superpac_flipscreen_r },
    71: 	{ 0x4040, 0x43ff, superpac_sharedram_r },	/* Pac'n Pal only */
    72: 	{ 0x4800, 0x480f, superpac_customio_1_r },
    73: 	{ 0x4810, 0x481f, superpac_customio_2_r },
    74: 	{ 0xa000, 0xffff, MRA_ROM },
    75: MEMORY_END
    76: 
    77: 
    78: static MEMORY_WRITE_START( writemem_cpu1 )
    79: 	{ 0x0000, 0x03ff, videoram_w, &videoram, &videoram_size },
    80: 	{ 0x0400, 0x07ff, colorram_w, &colorram },
    81: 	{ 0x0800, 0x0f7f, MWA_RAM },
    82: 	{ 0x0f80, 0x0fff, MWA_RAM, &spriteram, &spriteram_size },
    83: 	{ 0x1000, 0x177f, MWA_RAM },
    84: 	{ 0x1780, 0x17ff, MWA_RAM, &spriteram_2 },
    85: 	{ 0x1800, 0x1f7f, MWA_RAM },
    86: 	{ 0x1f80, 0x1fff, MWA_RAM, &spriteram_3 },
    87: 	{ 0x2000, 0x2000, superpac_flipscreen_w },
    88: 	{ 0x4040, 0x43ff, superpac_sharedram_w, &superpac_sharedram },
    89: 	{ 0x4800, 0x480f, MWA_RAM, &superpac_customio_1 },
    90: 	{ 0x4810, 0x481f, MWA_RAM, &superpac_customio_2 },
    91: 	{ 0x5000, 0x5000, superpac_reset_2_w },
    92: 	{ 0x5002, 0x5003, superpac_interrupt_enable_w },
    93: 	{ 0x5008, 0x5009, mappy_sound_enable_w },
    94: 	{ 0x500a, 0x500b, superpac_cpu_enable_w },
    95: 	{ 0x8000, 0x8000, watchdog_reset_w },
    96: 	{ 0xa000, 0xffff, MWA_ROM },
    97: MEMORY_END
    98: 
    99: 
   100: 
   101: /*************************************
   102:  *
   103:  *	Sound CPU memory handlers
   104:  *
   105:  *************************************/
   106: 
   107: static MEMORY_READ_START( readmem_cpu2 )
   108: 	{ 0x0040, 0x03ff, superpac_sharedram_r },
   109: 	{ 0xf000, 0xffff, MRA_ROM },
   110: MEMORY_END
   111: 
   112: 
   113: static MEMORY_WRITE_START( writemem_cpu2 )
   114: 	{ 0x0000, 0x003f, mappy_sound_w, &mappy_soundregs },
   115: 	{ 0x0040, 0x03ff, superpac_sharedram_w },
   116: 	{ 0x2000, 0x2001, superpac_interrupt_enable_w },
   117: 	{ 0x2006, 0x2007, mappy_sound_enable_w },
   118: 	{ 0xf000, 0xffff, MWA_ROM },
   119: MEMORY_END
   120: 
   121: 
   122: 
   123: /*************************************
   124:  *
   125:  *	Input ports
   126:  *
   127:  *************************************/
   128: 
   129: INPUT_PORTS_START( superpac )
   130: 	PORT_START	/* DSW0 */
   131: 	PORT_DIPNAME( 0x0f, 0x00, DEF_STR( Difficulty ) )
   132: 	PORT_DIPSETTING(    0x00, "Rank 0-Normal" )
   133: 	PORT_DIPSETTING(    0x01, "Rank 1-Easiest" )
   134: 	PORT_DIPSETTING(    0x02, "Rank 2" )
   135: 	PORT_DIPSETTING(    0x03, "Rank 3" )
   136: 	PORT_DIPSETTING(    0x04, "Rank 4" )
   137: 	PORT_DIPSETTING(    0x05, "Rank 5" )
   138: 	PORT_DIPSETTING(    0x06, "Rank 6-Medium" )
   139: 	PORT_DIPSETTING(    0x07, "Rank 7" )
   140: 	PORT_DIPSETTING(    0x08, "Rank 8-Default" )
   141: 	PORT_DIPSETTING(    0x09, "Rank 9" )
   142: 	PORT_DIPSETTING(    0x0a, "Rank A" )
   143: 	PORT_DIPSETTING(    0x0b, "Rank B-Hardest" )
   144: 	PORT_DIPSETTING(    0x0c, "Rank C-Easy Auto" )
   145: 	PORT_DIPSETTING(    0x0d, "Rank D-Auto" )
   146: 	PORT_DIPSETTING(    0x0e, "Rank E-Auto" )
   147: 	PORT_DIPSETTING(    0x0f, "Rank F-Hard Auto" )
   148: 	PORT_DIPNAME( 0x30, 0x00, DEF_STR( Coin_B ) )
   149: 	PORT_DIPSETTING(    0x20, DEF_STR( 2C_1C ) )
   150: 	PORT_DIPSETTING(    0x00, DEF_STR( 1C_1C ) )
   151: 	PORT_DIPSETTING(    0x30, DEF_STR( 2C_3C ) )
   152: 	PORT_DIPSETTING(    0x10, DEF_STR( 1C_2C ) )
   153: 	PORT_DIPNAME( 0x40, 0x00, DEF_STR( Demo_Sounds ) )
   154: 	PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
   155: 	PORT_DIPSETTING(    0x00, DEF_STR( On ) )
   156: 	PORT_DIPNAME( 0x80, 0x00, "Freeze" )
   157: 	PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
   158: 	PORT_DIPSETTING(    0x80, DEF_STR( On ) )
   159: 
   160: 	PORT_START	/* DSW1 */
   161: 	PORT_DIPNAME( 0x07, 0x00, DEF_STR( Coin_A ) )
   162: 	PORT_DIPSETTING(    0x07, DEF_STR( 3C_1C ) )
   163: 	PORT_DIPSETTING(    0x05, DEF_STR( 2C_1C ) )
   164: 	PORT_DIPSETTING(    0x00, DEF_STR( 1C_1C ) )
   165: 	PORT_DIPSETTING(    0x06, DEF_STR( 2C_3C ) )
   166: 	PORT_DIPSETTING(    0x01, DEF_STR( 1C_2C ) )
   167: 	PORT_DIPSETTING(    0x02, DEF_STR( 1C_3C ) )
   168: 	PORT_DIPSETTING(    0x03, DEF_STR( 1C_6C ) )
   169: 	PORT_DIPSETTING(    0x04, DEF_STR( 1C_7C ) )
   170: 	PORT_DIPNAME( 0x38, 0x00, DEF_STR( Bonus_Life ) )
   171: 	PORT_DIPSETTING(    0x38, "None" )
   172: 	PORT_DIPSETTING(    0x30, "30k" )
   173: 	PORT_DIPSETTING(    0x08, "30k 80k" )
   174: 	PORT_DIPSETTING(    0x00, "30k 100k" )
   175: 	PORT_DIPSETTING(    0x10, "30k 120k" )
   176: 	PORT_DIPSETTING(    0x18, "30k 80k 80k" )
   177: 	PORT_DIPSETTING(    0x20, "30k 100k 100k" )
   178: 	PORT_DIPSETTING(    0x28, "30k 120k 120k" )
   179: /* TODO: bonus scores for 5 lives */
   180: /* 	PORT_DIPNAME( 0x38, 0x00, DEF_STR( Bonus_Life ) )
   181: 	PORT_DIPSETTING(    0x38, "None" )
   182: 	PORT_DIPSETTING(    0x28, "30k" )
   183: 	PORT_DIPSETTING(    0x30, "40k" )
   184: 	PORT_DIPSETTING(    0x00, "30k 100k" )
   185: 	PORT_DIPSETTING(    0x08, "30k 120k" )
   186: 	PORT_DIPSETTING(    0x10, "40k 120k" )
   187: 	PORT_DIPSETTING(    0x18, "30k 100k 100k" )
   188: 	PORT_DIPSETTING(    0x20, "40k 120k 120k" ) */
   189: 	PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Lives ) )
   190: 	PORT_DIPSETTING(    0x40, "1" )
   191: 	PORT_DIPSETTING(    0x80, "2" )
   192: 	PORT_DIPSETTING(    0x00, "3" )
   193: 	PORT_DIPSETTING(    0xc0, "5" )
   194: 
   195: 	PORT_START	/* FAKE */
   196: 	/* The player inputs are not memory mapped, they are handled by an I/O chip. */
   197: 	/* These fake input ports are read by mappy_customio_data_r() */
   198: 	PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP | IPF_4WAY )
   199: 	PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT | IPF_4WAY )
   200: 	PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN | IPF_4WAY )
   201: 	PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT | IPF_4WAY )
   202: 	PORT_BIT_IMPULSE( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1, 1 )
   203: 	PORT_BITX(0x20, IP_ACTIVE_HIGH, IPT_BUTTON1, 0, IP_KEY_PREVIOUS, IP_JOY_PREVIOUS )
   204: 	PORT_BIT( 0xc0, IP_ACTIVE_HIGH, IPT_UNUSED )
   205: 
   206: 	PORT_START	/* FAKE */
   207: 	PORT_BIT_IMPULSE( 0x01, IP_ACTIVE_HIGH, IPT_COIN1, 1 )
   208: 	PORT_BIT_IMPULSE( 0x02, IP_ACTIVE_HIGH, IPT_COIN2, 1 )
   209: 	PORT_BIT( 0x0c, IP_ACTIVE_HIGH, IPT_UNUSED )
   210: 	PORT_BIT_IMPULSE( 0x10, IP_ACTIVE_HIGH, IPT_START1, 1 )
   211: 	PORT_BIT_IMPULSE( 0x20, IP_ACTIVE_HIGH, IPT_START2, 1 )
   212: 	PORT_DIPNAME( 0x40, 0x00, DEF_STR( Cabinet ) )
   213: 	PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
   214: 	PORT_DIPSETTING(    0x40, DEF_STR( Cocktail ) )
   215: 	PORT_SERVICE( 0x80, IP_ACTIVE_HIGH )
   216: 
   217: 	PORT_START	/* FAKE */
   218: 	PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP | IPF_4WAY | IPF_COCKTAIL )
   219: 	PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT | IPF_4WAY | IPF_COCKTAIL )
   220: 	PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN | IPF_4WAY | IPF_COCKTAIL )
   221: 	PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT | IPF_4WAY | IPF_COCKTAIL )
   222: 	PORT_BIT_IMPULSE( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 | IPF_COCKTAIL, 1 )
   223: 	PORT_BITX(0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 | IPF_COCKTAIL, 0, IP_KEY_PREVIOUS, IP_JOY_PREVIOUS )
   224: 	PORT_BIT( 0xc0, IP_ACTIVE_HIGH, IPT_UNUSED )
   225: INPUT_PORTS_END
   226: 
   227: 
   228: INPUT_PORTS_START( pacnpal )
   229: 	PORT_START	/* DSW0 */
   230: 	PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coin_B ) )
   231: 	PORT_DIPSETTING(    0x02, DEF_STR( 2C_1C ) )
   232: 	PORT_DIPSETTING(    0x00, DEF_STR( 1C_1C ) )
   233: 	PORT_DIPSETTING(    0x03, DEF_STR( 2C_3C ) )
   234: 	PORT_DIPSETTING(    0x01, DEF_STR( 1C_2C ) )
   235: 	PORT_DIPNAME( 0x0c, 0x00, "Rank" )
   236: 	PORT_DIPSETTING(    0x00, "A" )
   237: 	PORT_DIPSETTING(    0x04, "B" )
   238: 	PORT_DIPSETTING(    0x08, "C" )
   239: 	PORT_DIPSETTING(    0x0c, "D" )
   240: 	PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED )
   241: 
   242: 	PORT_START	/* DSW1 */
   243: 	PORT_DIPNAME( 0x07, 0x00, DEF_STR( Coin_A ) )
   244: 	PORT_DIPSETTING(    0x07, DEF_STR( 3C_1C ) )
   245: 	PORT_DIPSETTING(    0x05, DEF_STR( 2C_1C ) )
   246: 	PORT_DIPSETTING(    0x00, DEF_STR( 1C_1C ) )
   247: 	PORT_DIPSETTING(    0x06, DEF_STR( 2C_3C ) )
   248: 	PORT_DIPSETTING(    0x01, DEF_STR( 1C_2C ) )
   249: 	PORT_DIPSETTING(    0x02, DEF_STR( 1C_3C ) )
   250: 	PORT_DIPSETTING(    0x03, DEF_STR( 1C_6C ) )
   251: 	PORT_DIPSETTING(    0x04, DEF_STR( 1C_7C ) )
   252: 	PORT_DIPNAME( 0x38, 0x18, DEF_STR( Bonus_Life ) )
   253: 	PORT_DIPSETTING(    0x00, "None" )
   254: 	PORT_DIPSETTING(    0x38, "30k" )
   255: 	PORT_DIPSETTING(    0x18, "20k 70k" )
   256: 	PORT_DIPSETTING(    0x20, "30k 70k" )
   257: 	PORT_DIPSETTING(    0x28, "30k 80k" )
   258: 	PORT_DIPSETTING(    0x30, "30k 100k" )
   259: 	PORT_DIPSETTING(    0x08, "20k 70k 70k" )
   260: 	PORT_DIPSETTING(    0x10, "30k 80k 80k" )
   261: 	/* TODO: bonus scores are different for 5 lives */
   262: /* 	PORT_DIPNAME( 0x38, 0x18, DEF_STR( Bonus_Life ) )
   263: 	PORT_DIPSETTING(    0x00, "None" )
   264: 	PORT_DIPSETTING(    0x30, "30k" )
   265: 	PORT_DIPSETTING(    0x38, "40k" )
   266: 	PORT_DIPSETTING(    0x18, "30k 80k" )
   267: 	PORT_DIPSETTING(    0x20, "30k 100k" )
   268: 	PORT_DIPSETTING(    0x28, "40k 120k" )
   269: 	PORT_DIPSETTING(    0x08, "30k 80k 80k" )
   270: 	PORT_DIPSETTING(    0x10, "40k 100k 100k" ) */
   271: 	PORT_DIPNAME( 0xc0, 0x80, DEF_STR( Lives ) )
   272: 	PORT_DIPSETTING(    0x00, "1" )
   273: 	PORT_DIPSETTING(    0x40, "2" )
   274: 	PORT_DIPSETTING(    0x80, "3" )
   275: 	PORT_DIPSETTING(    0xc0, "5" )
   276: 
   277: 	PORT_START	/* FAKE */
   278: 	/* The player inputs are not memory mapped, they are handled by an I/O chip. */
   279: 	/* These fake input ports are read by mappy_customio_data_r() */
   280: 	PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP | IPF_4WAY )
   281: 	PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT | IPF_4WAY )
   282: 	PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN | IPF_4WAY )
   283: 	PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT | IPF_4WAY )
   284: 	PORT_BIT_IMPULSE( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1, 2 )
   285: 	PORT_BIT_IMPULSE( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 | IPF_COCKTAIL, 2 )
   286: 	PORT_BIT( 0xc0, IP_ACTIVE_HIGH, IPT_UNUSED )
   287: 
   288: 	PORT_START	/* FAKE */
   289: 	PORT_BIT_IMPULSE( 0x01, IP_ACTIVE_HIGH, IPT_COIN1, 2 )
   290: 	PORT_BIT_IMPULSE( 0x02, IP_ACTIVE_HIGH, IPT_COIN2, 2 )
   291: 	PORT_BIT( 0x0c, IP_ACTIVE_HIGH, IPT_UNUSED )
   292: 	PORT_BIT_IMPULSE( 0x10, IP_ACTIVE_HIGH, IPT_START1, 2 )
   293: 	PORT_BIT_IMPULSE( 0x20, IP_ACTIVE_HIGH, IPT_START2, 2 )
   294: 	PORT_DIPNAME( 0x40, 0x00, DEF_STR( Cabinet ) )
   295: 	PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
   296: 	PORT_DIPSETTING(    0x40, DEF_STR( Cocktail ) )
   297: 	PORT_SERVICE( 0x80, IP_ACTIVE_HIGH )
   298: 
   299: 	PORT_START	/* FAKE */
   300: 	PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP | IPF_4WAY | IPF_COCKTAIL )
   301: 	PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT | IPF_4WAY | IPF_COCKTAIL )
   302: 	PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN | IPF_4WAY | IPF_COCKTAIL )
   303: 	PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT | IPF_4WAY | IPF_COCKTAIL )
   304: 	PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED )
   305: INPUT_PORTS_END
   306: 
   307: 
   308: 
   309: /*************************************
   310:  *
   311:  *	Graphics layouts
   312:  *
   313:  *************************************/
   314: 
   315: static struct GfxLayout charlayout =
   316: {
   317: 	8,8,
   318: 	RGN_FRAC(1,1),
   319: 	2,
   320: 	{ 0, 4 },
   321: 	{ 8*8+0, 8*8+1, 8*8+2, 8*8+3, 0, 1, 2, 3 },
   322: 	{ 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 },
   323: 	16*8
   324: };
   325: 
   326: 
   327: static struct GfxLayout spritelayout =
   328: {
   329: 	16,16,
   330: 	RGN_FRAC(1,1),
   331: 	2,
   332: 	{ 0, 4 },
   333: 	{ 0, 1, 2, 3, 8*8, 8*8+1, 8*8+2, 8*8+3,
   334: 			16*8+0, 16*8+1, 16*8+2, 16*8+3, 24*8+0, 24*8+1, 24*8+2, 24*8+3 },
   335: 	{ 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8,
   336: 			32*8, 33*8, 34*8, 35*8, 36*8, 37*8, 38*8, 39*8 },
   337: 	64*8
   338: };
   339: 
   340: 
   341: static struct GfxDecodeInfo gfxdecodeinfo[] =
   342: {
   343: 	{ REGION_GFX1, 0, &charlayout,      0, 64 },
   344: 	{ REGION_GFX2, 0, &spritelayout, 64*4, 64 },
   345: 	{ -1 }
   346: };
   347: 
   348: 
   349: 
   350: /*************************************
   351:  *
   352:  *	Sound interfaces
   353:  *
   354:  *************************************/
   355: 
   356: static struct namco_interface namco_interface =
   357: {
   358: 	24000,	/* sample rate */
   359: 	8,		/* number of voices */
   360: 	100,	/* playback volume */
   361: 	REGION_SOUND1	/* memory region */
   362: };
   363: 
   364: 
   365: 
   366: /*************************************
   367:  *
   368:  *	Machine driver
   369:  *
   370:  *************************************/
   371: 
   372: static MACHINE_DRIVER_START( superpac )
   373: 
   374: 	/* basic machine hardware */
   375: 	MDRV_CPU_ADD(M6809, 18432000/12)	/* 1.536 MHz */
   376: 	MDRV_CPU_MEMORY(readmem_cpu1,writemem_cpu1)
   377: 	MDRV_CPU_VBLANK_INT(irq0_line_hold,1)
   378: 
   379: 	MDRV_CPU_ADD(M6809, 18432000/12)	/* 1.536 MHz */
   380: 	MDRV_CPU_MEMORY(readmem_cpu2,writemem_cpu2)
   381: 	MDRV_CPU_VBLANK_INT(irq0_line_hold,1)
   382: 
   383: 	MDRV_FRAMES_PER_SECOND(60.606060)
   384: 	MDRV_VBLANK_DURATION(DEFAULT_60HZ_VBLANK_DURATION)
   385: 	MDRV_INTERLEAVE(100)
   386: 
   387: 	MDRV_MACHINE_INIT(superpac)
   388: 
   389: 	/* video hardware */
   390: 	MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER)
   391: 	MDRV_SCREEN_SIZE(36*8, 28*8)
   392: 	MDRV_VISIBLE_AREA(0*8, 36*8-1, 0*8, 28*8-1)
   393: 	MDRV_GFXDECODE(gfxdecodeinfo)
   394: 	MDRV_PALETTE_LENGTH(32)
   395: 	MDRV_COLORTABLE_LENGTH(4*(64+64))
   396: 
   397: 	MDRV_PALETTE_INIT(superpac)
   398: 	MDRV_VIDEO_START(generic)
   399: 	MDRV_VIDEO_UPDATE(superpac)
   400: 
   401: 	/* sound hardware */
   402: 	MDRV_SOUND_ADD(NAMCO, namco_interface)
   403: MACHINE_DRIVER_END
   404: 
   405: 
   406: 
   407: /*************************************
   408:  *
   409:  *	ROM definitions
   410:  *
   411:  *************************************/
   412: 
   413: ROM_START( superpac )
   414: 	ROM_REGION( 0x10000, REGION_CPU1, 0 )	/* 64k for code */
   415: 	ROM_LOAD( "sp1.2",        0xc000, 0x2000, CRC(4bb33d9c) SHA1(dd87f71b4db090a32a6b791079eedd17580cc741) )
   416: 	ROM_LOAD( "sp1.1",        0xe000, 0x2000, CRC(846fbb4a) SHA1(f6bf90281986b9b7a3ef1dbbeddb722182e84d7c) )
   417: 
   418: 	ROM_REGION( 0x10000, REGION_CPU2, 0 )	/* 64k for the second CPU */
   419: 	ROM_LOAD( "spc-3.1k",     0xf000, 0x1000, CRC(04445ddb) SHA1(ce7d14963d5ddaefdeaf433a6f82c43cd1611d9b) )
   420: 
   421: 	ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE )
   422: 	ROM_LOAD( "sp1.6",        0x0000, 0x1000, CRC(91c5935c) SHA1(10579edabc26a0910253fab7d41b4c19ecdaaa09) )
   423: 
   424: 	ROM_REGION( 0x2000, REGION_GFX2, ROMREGION_DISPOSE )
   425: 	ROM_LOAD( "spv-2.3f",     0x0000, 0x2000, CRC(670a42f2) SHA1(9171922df07e31fd1dc415766f7d2cc50a9d10dc) )
   426: 
   427: 	ROM_REGION( 0x0220, REGION_PROMS, 0 )
   428: 	ROM_LOAD( "superpac.4c",  0x0000, 0x0020, CRC(9ce22c46) SHA1(d97f53ef4c5ef26659a22ed0de4ce7ef3758c924) ) /* palette */
   429: 	ROM_LOAD( "superpac.4e",  0x0020, 0x0100, CRC(1253c5c1) SHA1(df46a90170e9761d45c90fbd04ef2aa1e8c9944b) ) /* chars */
   430: 	ROM_LOAD( "superpac.3l",  0x0120, 0x0100, CRC(d4d7026f) SHA1(a486573437c54bfb503424574ad82655491e85e1) ) /* sprites */
   431: 
   432: 	ROM_REGION( 0x0100, REGION_SOUND1, 0 )	/* sound prom */
   433: 	ROM_LOAD( "superpac.3m",  0x0000, 0x0100, CRC(ad43688f) SHA1(072f427453efb1dda8147da61804fff06e1bc4d5) )
   434: ROM_END
   435: 
   436: 
   437: ROM_START( superpcm )
   438: 	ROM_REGION( 0x10000, REGION_CPU1, 0 )	/* 64k for code */
   439: 	ROM_LOAD( "spc-2.1c",     0xc000, 0x2000, CRC(1a38c30e) SHA1(ae0ee9f3df0991a80698fe745a7a853a4bb60710) )
   440: 	ROM_LOAD( "spc-1.1b",     0xe000, 0x2000, CRC(730e95a9) SHA1(ca73c8bcb03c2f5c05968c707a5d3f7f9956b886) )
   441: 
   442: 	ROM_REGION( 0x10000, REGION_CPU2, 0 )	/* 64k for the second CPU */
   443: 	ROM_LOAD( "spc-3.1k",     0xf000, 0x1000, CRC(04445ddb) SHA1(ce7d14963d5ddaefdeaf433a6f82c43cd1611d9b) )
   444: 
   445: 	ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE )
   446: 	ROM_LOAD( "spv-1.3c",     0x0000, 0x1000, CRC(78337e74) SHA1(11222adb55e6bce508896ccb1f6dbab0c1d44e5b) )
   447: 
   448: 	ROM_REGION( 0x2000, REGION_GFX2, ROMREGION_DISPOSE )
   449: 	ROM_LOAD( "spv-2.3f",     0x0000, 0x2000, CRC(670a42f2) SHA1(9171922df07e31fd1dc415766f7d2cc50a9d10dc) )
   450: 
   451: 	ROM_REGION( 0x0220, REGION_PROMS, 0 )
   452: 	ROM_LOAD( "superpac.4c",  0x0000, 0x0020, CRC(9ce22c46) SHA1(d97f53ef4c5ef26659a22ed0de4ce7ef3758c924) ) /* palette */
   453: 	ROM_LOAD( "superpac.4e",  0x0020, 0x0100, CRC(1253c5c1) SHA1(df46a90170e9761d45c90fbd04ef2aa1e8c9944b) ) /* chars */
   454: 	ROM_LOAD( "superpac.3l",  0x0120, 0x0100, CRC(d4d7026f) SHA1(a486573437c54bfb503424574ad82655491e85e1) ) /* sprites */
   455: 
   456: 	ROM_REGION( 0x0100, REGION_SOUND1, 0 )	/* sound prom */
   457: 	ROM_LOAD( "superpac.3m",  0x0000, 0x0100, CRC(ad43688f) SHA1(072f427453efb1dda8147da61804fff06e1bc4d5) )
   458: ROM_END
   459: 
   460: 
   461: ROM_START( pacnpal )
   462: 	ROM_REGION( 0x10000, REGION_CPU1, 0 )	/* 64k for code */
   463: 	ROM_LOAD( "pap13b.cpu",   0xa000, 0x2000, CRC(ed64a565) SHA1(b16930981490d97486d4df96acbb3d1cddbd3a80) )
   464: 	ROM_LOAD( "pap12b.cpu",   0xc000, 0x2000, CRC(15308bcf) SHA1(334603f8904f8968d05edc420b5f9e3b483ee86d) )
   465: 	ROM_LOAD( "pap11b.cpu",   0xe000, 0x2000, CRC(3cac401c) SHA1(38a14228469fa4a20cbc5d862198dc901842682e) )
   466: 
   467: 	ROM_REGION( 0x10000, REGION_CPU2, 0 )	/* 64k for the second CPU */
   468: 	ROM_LOAD( "pap14.cpu",    0xf000, 0x1000, CRC(330e20de) SHA1(5b23e5dcc38dc644a36efc8b03eba34cea540bea) )
   469: 
   470: 	ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE )
   471: 	ROM_LOAD( "pap16.cpu",    0x0000, 0x1000, CRC(a36b96cb) SHA1(e0a11b5a43cbf756ddb045c743973d0a55dbb979) )
   472: 
   473: 	ROM_REGION( 0x2000, REGION_GFX2, ROMREGION_DISPOSE )
   474: 	ROM_LOAD( "pap15.vid",    0x0000, 0x2000, CRC(fb6f56e3) SHA1(fd10d2ee49b4e059e9ef6046bc86d97e3185164d) )
   475: 
   476: 	ROM_REGION( 0x0220, REGION_PROMS, 0 )
   477: 	ROM_LOAD( "papi6.vid",    0x0000, 0x0020, CRC(52634b41) SHA1(dfb109c8e2c62ae1612ba0e3272468d152123842) ) /* palette */
   478: 	ROM_LOAD( "papi5.vid",    0x0020, 0x0100, CRC(ac46203c) SHA1(3f47f1991aab9640c0d5f70fad85d20d6cf2ea3d) ) /* chars */
   479: 	ROM_LOAD( "papi4.vid",    0x0120, 0x0100, CRC(686bde84) SHA1(541d08b43dbfb789c2867955635d2c9e051fedd9) ) /* sprites */
   480: 
   481: 	ROM_REGION( 0x0100, REGION_SOUND1, 0 )	/* sound prom */
   482: 	ROM_LOAD( "papi3.cpu",    0x0000, 0x0100, CRC(83c31a98) SHA1(8f1219a6c2b565ae9d8f72a9c277dc4bd38ec40f) )
   483: ROM_END
   484: 
   485: 
   486: ROM_START( pacnpal2 )
   487: 	ROM_REGION( 0x10000, REGION_CPU1, 0 )	/* 64k for code */
   488: 	ROM_LOAD( "pap1_3.1d",    0xa000, 0x2000, CRC(d7ec2719) SHA1(b633a5360a199d528bcef209c06a21f266525769) )
   489: 	ROM_LOAD( "pap1_2.1c",    0xc000, 0x2000, CRC(0245396e) SHA1(7e8467e317879621a7b31bc922b5187f20fcea78) )
   490: 	ROM_LOAD( "pap1_1.1b",    0xe000, 0x2000, CRC(7f046b58) SHA1(2024019e5fafb698bb5775075c9b88c5ed35f7ba) )
   491: 
   492: 	ROM_REGION( 0x10000, REGION_CPU2, 0 )	/* 64k for the second CPU */
   493: 	ROM_LOAD( "pap14.cpu",    0xf000, 0x1000, CRC(330e20de) SHA1(5b23e5dcc38dc644a36efc8b03eba34cea540bea) )
   494: 
   495: 	ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE )
   496: 	ROM_LOAD( "pap16.cpu",    0x0000, 0x1000, CRC(a36b96cb) SHA1(e0a11b5a43cbf756ddb045c743973d0a55dbb979) )
   497: 
   498: 	ROM_REGION( 0x2000, REGION_GFX2, ROMREGION_DISPOSE )
   499: 	ROM_LOAD( "pap15.vid",    0x0000, 0x2000, CRC(fb6f56e3) SHA1(fd10d2ee49b4e059e9ef6046bc86d97e3185164d) )
   500: 
   501: 	ROM_REGION( 0x0220, REGION_PROMS, 0 )
   502: 	ROM_LOAD( "papi6.vid",    0x0000, 0x0020, CRC(52634b41) SHA1(dfb109c8e2c62ae1612ba0e3272468d152123842) ) /* palette */
   503: 	ROM_LOAD( "papi5.vid",    0x0020, 0x0100, CRC(ac46203c) SHA1(3f47f1991aab9640c0d5f70fad85d20d6cf2ea3d) ) /* chars */
   504: 	ROM_LOAD( "papi4.vid",    0x0120, 0x0100, CRC(686bde84) SHA1(541d08b43dbfb789c2867955635d2c9e051fedd9) ) /* sprites */
   505: 
   506: 	ROM_REGION( 0x0100, REGION_SOUND1, 0 )	/* sound prom */
   507: 	ROM_LOAD( "papi3.cpu",    0x0000, 0x0100, CRC(83c31a98) SHA1(8f1219a6c2b565ae9d8f72a9c277dc4bd38ec40f) )
   508: ROM_END
   509: 
   510: 
   511: ROM_START( pacnchmp )
   512: 	ROM_REGION( 0x10000, REGION_CPU1, 0 )	/* 64k for code */
   513: 	ROM_LOAD( "pap3.1d",      0xa000, 0x2000, CRC(20a07d3d) SHA1(2135ad154b575a73cfb1b0f0f282dfc013672aec) )
   514: 	ROM_LOAD( "pap3.1c",      0xc000, 0x2000, CRC(505bae56) SHA1(590ce9f0e92115a71eb76b71ab4eac16ffa2a28e) )
   515: 	ROM_LOAD( "pap11b.cpu",   0xe000, 0x2000, CRC(3cac401c) SHA1(38a14228469fa4a20cbc5d862198dc901842682e) )
   516: 
   517: 	ROM_REGION( 0x10000, REGION_CPU2, 0 )	/* 64k for the second CPU */
   518: 	ROM_LOAD( "pap14.cpu",    0xf000, 0x1000, CRC(330e20de) SHA1(5b23e5dcc38dc644a36efc8b03eba34cea540bea) )
   519: 
   520: 	ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE )
   521: 	ROM_LOAD( "pap2.3c",      0x0000, 0x1000, CRC(93d15c30) SHA1(5da4120b680726c83a651b445254604cbf7cc883) )
   522: 
   523: 	ROM_REGION( 0x2000, REGION_GFX2, ROMREGION_DISPOSE )
   524: 	ROM_LOAD( "pap2.3f",      0x0000, 0x2000, CRC(39f44aa4) SHA1(0696539cb2c7fcda2f6c295c7d65678dac18950b) )
   525: 
   526: 	ROM_REGION( 0x0220, REGION_PROMS, 0 )
   527: 	ROM_LOAD( "papi6.vid",    0x0000, 0x0020, BAD_DUMP CRC(52634b41) SHA1(dfb109c8e2c62ae1612ba0e3272468d152123842)  ) /* palette */
   528: 	ROM_LOAD( "papi5.vid",    0x0020, 0x0100, BAD_DUMP CRC(ac46203c) SHA1(3f47f1991aab9640c0d5f70fad85d20d6cf2ea3d)  ) /* chars */
   529: 	ROM_LOAD( "papi4.vid",    0x0120, 0x0100, BAD_DUMP CRC(686bde84) SHA1(541d08b43dbfb789c2867955635d2c9e051fedd9)  ) /* sprites */
   530: 
   531: 	ROM_REGION( 0x0100, REGION_SOUND1, 0 )	/* sound prom */
   532: 	ROM_LOAD( "papi3.cpu",    0x0000, 0x0100, CRC(83c31a98) SHA1(8f1219a6c2b565ae9d8f72a9c277dc4bd38ec40f) )
   533: ROM_END
   534: 
   535: 
   536: 
   537: /*************************************
   538:  *
   539:  *	Game drivers
   540:  *
   541:  *************************************/
   542: 
   543: GAME( 1982, superpac, 0,        superpac, superpac, 0, ROT90, "Namco", "Super Pac-Man" )
   544: GAME( 1982, superpcm, superpac, superpac, superpac, 0, ROT90, "[Namco] (Bally Midway license)", "Super Pac-Man (Midway)" )
   545: GAME( 1983, pacnpal,  0,        superpac, pacnpal,  0, ROT90, "Namco", "Pac & Pal" )
   546: GAME( 1983, pacnpal2, pacnpal,  superpac, pacnpal,  0, ROT90, "Namco", "Pac & Pal (older)" )
   547: GAMEX(1983, pacnchmp, pacnpal,  superpac, pacnpal,  0, ROT90, "Namco", "Pac-Man & Chomp Chomp", GAME_IMPERFECT_COLORS )
   548: 




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