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 : Perfect Soldiers : VM Driver Source

Source Listing


     1: /***************************************************************************
     2: 
     3: Free Kick  - (c) 1987 Sega / Nihon System (made by Nihon, licensed to Sega)
     4: 
     5: Driver by Tomasz Slanina  dox@space.pl
     6: based on initial work made by David Haywood
     7: 
     8: Notes:
     9: - Quite interestingly, Free Kick's sound ROM contains a Z80 program, but
    10:   there isn't a sound CPU and that program isn't executed. Instead, the main
    11:   CPU reads the sound program through an 8255 PPI and plays sounds directly.
    12: 
    13: TODO:
    14: - Gigas cocktail mode / flipscreen
    15: 
    16: ****************************************************************************
    17: 
    18:  currently only the freekick bootleg roms are included
    19:  the fk bootleg roms are the same as one of the other sets + an extra
    20:  64k ram dump from protection device.
    21: 
    22:  main program rom is unused, is it a dummy or just something to active the
    23:  protection device?
    24: 
    25:  we don't have the game rom data / program from inside the counter run cpu,
    26:  hopefully somebody can work out how to dump it before all the boards die
    27:  since it appears to be battery backed
    28: 
    29:  ---
    30: 
    31:  $78d        - checksum calculations
    32:  $d290,$d291 - level (color set , level number  - BCD)
    33:  $d292       - lives
    34: 
    35:  To enter Test Mode - press Button1 durning RESET (code at $79d)
    36: 
    37: */
    38: 
    39: #include "driver.h" 
    40: #include "vidhrdw/generic.h" 
    41: #include "machine/8255ppi.h" 
    42: 
    43: 
    44: extern data8_t *freek_videoram;
    45: 
    46: VIDEO_START(freekick);
    47: VIDEO_UPDATE(gigas);
    48: VIDEO_UPDATE(pbillrd);
    49: VIDEO_UPDATE(freekick);
    50: WRITE_HANDLER( freek_videoram_w );
    51: 
    52: static int oigas_inval,oigas_outval,oigas_cnt;//oigas
    53: static int romaddr;
    54: 
    55: static WRITE_HANDLER( snd_rom_addr_l_w )
    56: {
    57: 	romaddr = (romaddr & 0xff00) | data;
    58: }
    59: 
    60: static WRITE_HANDLER( snd_rom_addr_h_w )
    61: {
    62: 	romaddr = (romaddr & 0x00ff) | (data << 8);
    63: }
    64: 
    65: static READ_HANDLER( snd_rom_r )
    66: {
    67: 	return memory_region(REGION_USER1)[romaddr & 0x7fff];
    68: }
    69: 
    70: static ppi8255_interface ppi8255_intf =
    71: {
    72: 	2, 										/* 1 chips */
    73: 	{ NULL,             input_port_0_r },	/* Port A read */
    74: 	{ NULL,             input_port_1_r },	/* Port B read */
    75: 	{ snd_rom_r,        input_port_2_r },	/* Port C read */
    76: 	{ snd_rom_addr_l_w, NULL },				/* Port A write */
    77: 	{ snd_rom_addr_h_w, NULL },				/* Port B write */
    78: 	{ NULL,             NULL },				/* Port C write */
    79: };
    80: 
    81: MACHINE_INIT( freekckb )
    82: {
    83: 	ppi8255_init(&ppi8255_intf);
    84: }
    85: 
    86: 
    87: static WRITE_HANDLER( flipscreen_w )
    88: {
    89: 	/* flip Y/X could be the other way round... */
    90: 	if (offset)
    91: 		flip_screen_y_set(~data & 1);
    92: 	else
    93: 		flip_screen_x_set(~data & 1);
    94: }
    95: 
    96: static WRITE_HANDLER( coin_w )
    97: {
    98: 	coin_counter_w(offset,~data & 1);
    99: }
   100: 
   101: 
   102: static int spinner;
   103: 
   104: static WRITE_HANDLER( spinner_select_w )
   105: {
   106: 	spinner = data & 1;
   107: }
   108: 
   109: static READ_HANDLER( spinner_r )
   110: {
   111: 	return readinputport(5 + spinner);
   112: }
   113: 
   114: static READ_HANDLER( gigas_spinner_r )
   115: {
   116: 	return readinputport( spinner );
   117: }
   118: 
   119: 
   120: 
   121: static WRITE_HANDLER( pbillrd_bankswitch_w )
   122: {
   123: 	cpu_setbank(1,memory_region(REGION_CPU1) + 0x10000 + 0x4000 * (data & 1));
   124: }
   125: 
   126: 
   127: static int nmi_en;
   128: 
   129: static WRITE_HANDLER( nmi_enable_w )
   130: {
   131: 	nmi_en = data & 1;
   132: }
   133: 
   134: static INTERRUPT_GEN( freekick_irqgen )
   135: {
   136: 	if (nmi_en) cpu_set_irq_line(0,IRQ_LINE_NMI,PULSE_LINE);
   137: }
   138: 
   139: static MEMORY_READ_START( gigas_readmem )
   140: 	{ 0x0000, 0xbfff, MRA_ROM },
   141: 	{ 0xc000, 0xdfff, MRA_RAM },
   142: 	{ 0xe000, 0xe000, input_port_2_r },
   143: 	{ 0xe800, 0xe800, input_port_3_r },
   144: 	{ 0xf000, 0xf000, input_port_4_r },
   145: 	{ 0xf800, 0xf800, input_port_5_r },
   146: MEMORY_END
   147: 
   148: static MEMORY_WRITE_START( gigas_writemem )
   149: 	{ 0x0000, 0xbfff, MWA_ROM },
   150: 	{ 0xc000, 0xcfff, MWA_RAM },
   151: 	{ 0xd000, 0xd7ff, freek_videoram_w, &freek_videoram },
   152: 	{ 0xd800, 0xd8ff, MWA_RAM, &spriteram, &spriteram_size },
   153: 	{ 0xd900, 0xdfff, MWA_RAM },
   154: 	{ 0xe000, 0xe001, MWA_NOP },// probably not flipscreen
   155: 	{ 0xe002, 0xe003, coin_w },
   156: 	{ 0xe004, 0xe004, nmi_enable_w },
   157: 	{ 0xe005, 0xe005, MWA_NOP},
   158: 	{ 0xf000, 0xf000, MWA_NOP }, //bankswitch ?
   159: 	{ 0xfc00, 0xfc00, SN76496_0_w },
   160: 	{ 0xfc01, 0xfc01, SN76496_1_w },
   161: 	{ 0xfc02, 0xfc02, SN76496_2_w },
   162: 	{ 0xfc03, 0xfc03, SN76496_3_w },
   163: MEMORY_END
   164: 
   165: static PORT_READ_START( gigas_readport )
   166: 	{ 0x00, 0x00, gigas_spinner_r },
   167: 	{ 0x01, 0x01, MRA_NOP }, //unused dip 3
   168: PORT_END
   169: 
   170: static PORT_WRITE_START( gigas_writeport )
   171: 	{ 0x00, 0x00 ,spinner_select_w },
   172: PORT_END
   173: 
   174: 
   175: 
   176: static WRITE_HANDLER(oigas_5_w)
   177: {
   178: 	if(data>0xc0&&data<0xe0)oigas_cnt=1;
   179: 	switch(oigas_cnt)
   180: 	{
   181: 	  case 1: oigas_inval=data<<8;break;
   182: 	  case 2: oigas_inval|=data;break;
   183: 	}
   184: }
   185: 
   186: static READ_HANDLER(oigas_3_r)
   187: {
   188: 	switch(++oigas_cnt)
   189: 	{
   190: 	  case 2: return ~(oigas_inval>>8);
   191: 	  case 3: return ~(oigas_inval&0xff);
   192: 	  case 4: switch(oigas_inval)
   193: 	  {
   194: 	    case 0xc500: oigas_outval=0x17ef;break;
   195: 	    case 0xc520:
   196: 	    case 0xc540: oigas_outval=0x19c1;break;
   197: 	    case 0xc560: oigas_outval=0x1afc;break;
   198: 	    case 0xc580:
   199: 	    case 0xc5a0:
   200: 	    case 0xc5c0: oigas_outval=0x1f28;break;
   201: 	    case 0xc680: oigas_outval=0x2e8a;break;
   202: 	    case 0xc5e0:
   203: 	    case 0xc600:
   204: 	    case 0xc620:
   205: 	    case 0xc640:
   206: 	    case 0xc660: oigas_outval=0x25cc;break;
   207: 	    case 0xc6c0:
   208: 	    case 0xc6e0: oigas_outval=0x09d7;break;
   209: 	    case 0xc6a0: oigas_outval=0x3168;break;
   210: 	    case 0xc720: oigas_outval=0x2207;break;
   211:      	    case 0xc700: oigas_outval=0x0e34;break;
   212: 	    case 0xc710: oigas_outval=0x0fdd;break;
   213: 	    case 0xc4f0: oigas_outval=0x05b6;break;
   214: 	    case 0xc4e0: oigas_outval=0xae1e;break;
   215: 	   }
   216: 	   return oigas_outval>>8;
   217: 	   case 5: oigas_cnt=0;return oigas_outval&0xff;
   218: 	}
   219: 	return 0;
   220: }
   221: 
   222: static READ_HANDLER(oigas_2_r)
   223: {
   224: 	return 1;
   225: }
   226: 
   227: static PORT_READ_START( oigas_readport )
   228: 	{ 0x00, 0x00, gigas_spinner_r },
   229: 	{ 0x01, 0x01, IORP_NOP }, //unused dip 3
   230: 	{ 0x02, 0x02, oigas_2_r },
   231: 	{ 0x03, 0x03, oigas_3_r },
   232: PORT_END
   233: 
   234: static PORT_WRITE_START( oigas_writeport )
   235: 	{ 0x00, 0x00, spinner_select_w },
   236: 	{ 0x05, 0x05, oigas_5_w },
   237: PORT_END
   238: 
   239: 
   240: 
   241: 
   242: static MEMORY_READ_START( pbillrd_readmem )
   243: 	{ 0x0000, 0x7fff, MRA_ROM },
   244: 	{ 0x8000, 0xbfff, MRA_BANK1 },
   245: 	{ 0xc000, 0xdfff, MRA_RAM },
   246: 	{ 0xe000, 0xe000, input_port_0_r },
   247: 	{ 0xe800, 0xe800, input_port_1_r },
   248: 	{ 0xf000, 0xf000, input_port_2_r },
   249: 	{ 0xf800, 0xf800, input_port_3_r },
   250: MEMORY_END
   251: 
   252: static MEMORY_WRITE_START( pbillrd_writemem )
   253: 	{ 0x0000, 0xbfff, MWA_ROM },
   254: 	{ 0xc000, 0xcfff, MWA_RAM },
   255: 	{ 0xd000, 0xd7ff, freek_videoram_w, &freek_videoram },
   256: 	{ 0xd800, 0xd8ff, MWA_RAM, &spriteram, &spriteram_size },
   257: 	{ 0xd900, 0xdfff, MWA_RAM },
   258: 	{ 0xe000, 0xe001, flipscreen_w },
   259: 	{ 0xe002, 0xe003, coin_w },
   260: 	{ 0xe004, 0xe004, nmi_enable_w },
   261: 	{ 0xf000, 0xf000, pbillrd_bankswitch_w },
   262: 	{ 0xfc00, 0xfc00, SN76496_0_w },
   263: 	{ 0xfc01, 0xfc01, SN76496_1_w },
   264: 	{ 0xfc02, 0xfc02, SN76496_2_w },
   265: 	{ 0xfc03, 0xfc03, SN76496_3_w },
   266: MEMORY_END
   267: 
   268: static MEMORY_READ_START( freekckb_readmem )
   269: 	{ 0x0000, 0xcfff, MRA_ROM },
   270: 	{ 0xd000, 0xdfff, MRA_RAM },
   271: 	{ 0xe000, 0xe7ff, MRA_RAM },	// tilemap
   272: 	{ 0xe800, 0xe8ff, MRA_RAM },	// sprites
   273: 	{ 0xec00, 0xec03, ppi8255_0_r },
   274: 	{ 0xf000, 0xf003, ppi8255_1_r },
   275: 	{ 0xf800, 0xf800, input_port_3_r },
   276: 	{ 0xf801, 0xf801, input_port_4_r },
   277: 	{ 0xf802, 0xf802, MRA_NOP },	//MUST return bit 0 = 0, otherwise game resets
   278: 	{ 0xf803, 0xf803, spinner_r },
   279: MEMORY_END
   280: 
   281: static MEMORY_WRITE_START( freekckb_writemem )
   282: 	{ 0x0000, 0xcfff, MWA_ROM },
   283: 	{ 0xd000, 0xdfff, MWA_RAM },
   284: 	{ 0xe000, 0xe7ff, freek_videoram_w, &freek_videoram },
   285: 	{ 0xe800, 0xe8ff, MWA_RAM, &spriteram, &spriteram_size },
   286: 	{ 0xec00, 0xec03, ppi8255_0_w },
   287: 	{ 0xf000, 0xf003, ppi8255_1_w },
   288: 	{ 0xf800, 0xf801, flipscreen_w },
   289: 	{ 0xf802, 0xf803, coin_w },
   290: 	{ 0xf804, 0xf804, nmi_enable_w },
   291: 	{ 0xf806, 0xf806, spinner_select_w },
   292: 	{ 0xfc00, 0xfc00, SN76496_0_w },
   293: 	{ 0xfc01, 0xfc01, SN76496_1_w },
   294: 	{ 0xfc02, 0xfc02, SN76496_2_w },
   295: 	{ 0xfc03, 0xfc03, SN76496_3_w },
   296: MEMORY_END
   297: 
   298: 
   299: static int ff_data;
   300: 
   301: static READ_HANDLER (freekick_ff_r)
   302: {
   303: 	return ff_data;
   304: }
   305: 
   306: static WRITE_HANDLER (freekick_ff_w)
   307: {
   308: 	ff_data = data;
   309: }
   310: 
   311: static PORT_READ_START( freekckb_readport )
   312: 	{ 0xff, 0xff, freekick_ff_r },
   313: PORT_END
   314: 
   315: static PORT_WRITE_START( freekckb_writeport )
   316: 	{ 0xff, 0xff, freekick_ff_w },
   317: PORT_END
   318: 
   319: INPUT_PORTS_START( gigas )
   320: 
   321: 	PORT_START
   322: 	PORT_ANALOG( 0xff, 0x00, IPT_DIAL | IPF_REVERSE, 30, 15, 0, 0 )
   323: 
   324: 	PORT_START
   325: 	PORT_ANALOG( 0xff, 0x00, IPT_DIAL | IPF_REVERSE | IPF_COCKTAIL, 30, 15, 0, 0 )
   326: 
   327: 	PORT_START
   328: 	PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
   329: 	PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
   330: 	PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN )
   331: 	PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN )
   332: 	PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
   333: 	PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
   334: 	PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 )
   335: 	PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 )
   336: 
   337: 	PORT_START
   338: 	PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 | IPF_COCKTAIL )
   339: 	PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
   340: 	PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN )
   341: 	PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN )
   342: 	PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
   343: 	PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
   344: 	PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 )
   345: 	PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 )
   346: 
   347: 	PORT_START
   348: 	PORT_DIPNAME( 0x01, 0x01, DEF_STR( Lives ) )
   349: 	PORT_DIPSETTING(    0x01, "3" )
   350: 	PORT_DIPSETTING(    0x00, "5" )
   351: 	PORT_DIPNAME( 0x06, 0x06, DEF_STR( Bonus_Life ) )
   352: 	PORT_DIPSETTING(    0x06, "20000, 60000, Every 60000" )
   353: 	PORT_DIPSETTING(    0x02, "20000, 60000" )
   354: 	PORT_DIPSETTING(    0x04, "30000, 80000, Every 80000" )
   355: 	PORT_DIPSETTING(    0x00, "20000" )
   356: 	PORT_DIPNAME( 0x18, 0x18, DEF_STR( Difficulty ) )
   357: 	PORT_DIPSETTING(    0x18, "Easy" )    /* level 1 */
   358: 	PORT_DIPSETTING(    0x10, "Normal" )
   359: 	PORT_DIPSETTING(    0x08, "Hard" )
   360: 	PORT_DIPSETTING(    0x00, "Hardest" ) /* level 4 */
   361:   PORT_DIPNAME( 0x20, 0x20, "Allow Continue" )
   362: 	PORT_DIPSETTING(    0x00, DEF_STR( No ) )
   363: 	PORT_DIPSETTING(    0x20, DEF_STR( Yes ) )
   364: 	PORT_DIPNAME( 0x40, 0x00, DEF_STR( Cabinet ) )
   365: 	PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
   366: 	PORT_DIPSETTING(    0x40, DEF_STR( Cocktail ) )
   367: 	PORT_DIPNAME( 0x80, 0x80, DEF_STR( Flip_Screen ) )
   368: 	PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
   369: 	PORT_DIPSETTING(    0x00, DEF_STR( On ) )
   370: 
   371: 	PORT_START
   372: 	PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) )
   373: 	PORT_DIPSETTING(    0x00, DEF_STR( 5C_1C ) )
   374: 	PORT_DIPSETTING(    0x0c, DEF_STR( 4C_1C ) )
   375: 	PORT_DIPSETTING(    0x0e, DEF_STR( 3C_1C ) )
   376: 	PORT_DIPSETTING(    0x05, DEF_STR( 2C_1C ) )
   377: 	PORT_DIPSETTING(    0x06, DEF_STR( 3C_2C ) )
   378: 	PORT_DIPSETTING(    0x04, DEF_STR( 4C_3C ) )
   379: 	PORT_DIPSETTING(    0x0f, DEF_STR( 1C_1C ) )
   380: 	PORT_DIPSETTING(    0x08, DEF_STR( 4C_5C ) )
   381: 	PORT_DIPSETTING(    0x0a, DEF_STR( 3C_4C ) )
   382: 	PORT_DIPSETTING(    0x09, DEF_STR( 2C_3C ) )
   383: 	PORT_DIPSETTING(    0x02, "3 Coins/5 Credits" )
   384: 	PORT_DIPSETTING(    0x07, DEF_STR( 1C_2C ) )
   385: 	PORT_DIPSETTING(    0x01, DEF_STR( 2C_5C ) )
   386: 	PORT_DIPSETTING(    0x0b, DEF_STR( 1C_3C ) )
   387: 	PORT_DIPSETTING(    0x03, DEF_STR( 1C_4C ) )
   388: 	PORT_DIPSETTING(    0x0d, DEF_STR( 1C_5C ) )
   389: 	PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) )
   390: 	PORT_DIPSETTING(    0x00, DEF_STR( 5C_1C ) )
   391: 	PORT_DIPSETTING(    0xc0, DEF_STR( 4C_1C ) )
   392: 	PORT_DIPSETTING(    0xe0, DEF_STR( 3C_1C ) )
   393: 	PORT_DIPSETTING(    0x50, DEF_STR( 2C_1C ) )
   394: 	PORT_DIPSETTING(    0x60, DEF_STR( 3C_2C ) )
   395: 	PORT_DIPSETTING(    0x40, DEF_STR( 4C_3C ) )
   396: 	PORT_DIPSETTING(    0xf0, DEF_STR( 1C_1C ) )
   397: 	PORT_DIPSETTING(    0x80, DEF_STR( 4C_5C ) )
   398: 	PORT_DIPSETTING(    0xa0, DEF_STR( 3C_4C ) )
   399: 	PORT_DIPSETTING(    0x90, DEF_STR( 2C_3C ) )
   400: 	PORT_DIPSETTING(    0x20, "3 Coins/5 Credits" )
   401: 	PORT_DIPSETTING(    0x70, DEF_STR( 1C_2C ) )
   402: 	PORT_DIPSETTING(    0x10, DEF_STR( 2C_5C ) )
   403: 	PORT_DIPSETTING(    0xb0, DEF_STR( 1C_3C ) )
   404: 	PORT_DIPSETTING(    0x30, DEF_STR( 1C_4C ) )
   405: 	PORT_DIPSETTING(    0xd0, DEF_STR( 1C_5C ) )
   406: 
   407: 
   408: INPUT_PORTS_END
   409: 
   410: 
   411: INPUT_PORTS_START( gigasm2 )
   412: 
   413: 	PORT_START
   414: 	PORT_ANALOG( 0xff, 0x00, IPT_DIAL | IPF_REVERSE, 30, 15, 0, 0 )
   415: 
   416: 	PORT_START
   417: 	PORT_ANALOG( 0xff, 0x00, IPT_DIAL | IPF_REVERSE | IPF_COCKTAIL, 30, 15, 0, 0 )
   418: 
   419: 	PORT_START
   420: 	PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
   421: 	PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
   422: 	PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN )
   423: 	PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN )
   424: 	PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
   425: 	PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
   426: 	PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 )
   427: 	PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 )
   428: 
   429: 	PORT_START
   430: 	PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 | IPF_COCKTAIL )
   431: 	PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
   432: 	PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN )
   433: 	PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN )
   434: 	PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
   435: 	PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
   436: 	PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 )
   437: 	PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 )
   438: 
   439: 	PORT_START
   440: 	PORT_DIPNAME( 0x01, 0x01, DEF_STR( Lives ) )
   441: 	PORT_DIPSETTING(    0x01, "3" )
   442: 	PORT_DIPSETTING(    0x00, "5" )
   443: 	PORT_DIPNAME( 0x06, 0x06, DEF_STR( Bonus_Life ) )
   444: 	PORT_DIPSETTING(    0x06, "20000, 60000, Every 60000" )
   445: 	PORT_DIPSETTING(    0x02, "20000, 60000" )
   446: 	PORT_DIPSETTING(    0x04, "30000, 90000, Every 90000" )
   447: 	PORT_DIPSETTING(    0x00, "20000" )
   448: 	PORT_DIPNAME( 0x18, 0x18, DEF_STR( Difficulty ) )
   449: 	PORT_DIPSETTING(    0x18, "Easy" )    /* level 1 */
   450: 	PORT_DIPSETTING(    0x10, "Normal" )
   451: 	PORT_DIPSETTING(    0x08, "Hard" )
   452: 	PORT_DIPSETTING(    0x00, "Hardest" ) /* level 4 */
   453:   PORT_DIPNAME( 0x20, 0x20, "Allow Continue" )
   454: 	PORT_DIPSETTING(    0x00, DEF_STR( No ) )
   455: 	PORT_DIPSETTING(    0x20, DEF_STR( Yes ) )
   456: 	PORT_DIPNAME( 0x40, 0x00, DEF_STR( Cabinet ) )
   457: 	PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
   458: 	PORT_DIPSETTING(    0x40, DEF_STR( Cocktail ) )
   459: 	PORT_DIPNAME( 0x80, 0x80, DEF_STR( Flip_Screen ) )
   460: 	PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
   461: 	PORT_DIPSETTING(    0x00, DEF_STR( On ) )
   462: 
   463: 	PORT_START
   464: 	PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) )
   465: 	PORT_DIPSETTING(    0x00, DEF_STR( 5C_1C ) )
   466: 	PORT_DIPSETTING(    0x0c, DEF_STR( 4C_1C ) )
   467: 	PORT_DIPSETTING(    0x0e, DEF_STR( 3C_1C ) )
   468: 	PORT_DIPSETTING(    0x05, DEF_STR( 2C_1C ) )
   469: 	PORT_DIPSETTING(    0x06, DEF_STR( 3C_2C ) )
   470: 	PORT_DIPSETTING(    0x04, DEF_STR( 4C_3C ) )
   471: 	PORT_DIPSETTING(    0x0f, DEF_STR( 1C_1C ) )
   472: 	PORT_DIPSETTING(    0x08, DEF_STR( 4C_5C ) )
   473: 	PORT_DIPSETTING(    0x0a, DEF_STR( 3C_4C ) )
   474: 	PORT_DIPSETTING(    0x09, DEF_STR( 2C_3C ) )
   475: 	PORT_DIPSETTING(    0x02, "3 Coins/5 Credits" )
   476: 	PORT_DIPSETTING(    0x07, DEF_STR( 1C_2C ) )
   477: 	PORT_DIPSETTING(    0x01, DEF_STR( 2C_5C ) )
   478: 	PORT_DIPSETTING(    0x0b, DEF_STR( 1C_3C ) )
   479: 	PORT_DIPSETTING(    0x03, DEF_STR( 1C_4C ) )
   480: 	PORT_DIPSETTING(    0x0d, DEF_STR( 1C_5C ) )
   481: 	PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) )
   482: 	PORT_DIPSETTING(    0x00, DEF_STR( 5C_1C ) )
   483: 	PORT_DIPSETTING(    0xc0, DEF_STR( 4C_1C ) )
   484: 	PORT_DIPSETTING(    0xe0, DEF_STR( 3C_1C ) )
   485: 	PORT_DIPSETTING(    0x50, DEF_STR( 2C_1C ) )
   486: 	PORT_DIPSETTING(    0x60, DEF_STR( 3C_2C ) )
   487: 	PORT_DIPSETTING(    0x40, DEF_STR( 4C_3C ) )
   488: 	PORT_DIPSETTING(    0xf0, DEF_STR( 1C_1C ) )
   489: 	PORT_DIPSETTING(    0x80, DEF_STR( 4C_5C ) )
   490: 	PORT_DIPSETTING(    0xa0, DEF_STR( 3C_4C ) )
   491: 	PORT_DIPSETTING(    0x90, DEF_STR( 2C_3C ) )
   492: 	PORT_DIPSETTING(    0x20, "3 Coins/5 Credits" )
   493: 	PORT_DIPSETTING(    0x70, DEF_STR( 1C_2C ) )
   494: 	PORT_DIPSETTING(    0x10, DEF_STR( 2C_5C ) )
   495: 	PORT_DIPSETTING(    0xb0, DEF_STR( 1C_3C ) )
   496: 	PORT_DIPSETTING(    0x30, DEF_STR( 1C_4C ) )
   497: 	PORT_DIPSETTING(    0xd0, DEF_STR( 1C_5C ) )
   498: 
   499: 
   500: 
   501: INPUT_PORTS_END
   502: 
   503: INPUT_PORTS_START( pbillrd )
   504: 	PORT_START
   505: 	PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
   506: 	PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
   507: 	PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT )
   508: 	PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT )
   509: 	PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN )
   510: 	PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP )
   511: 	PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 )
   512: 	PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 )
   513: 
   514: 	PORT_START
   515: 	PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 | IPF_COCKTAIL )
   516: 	PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 | IPF_COCKTAIL )
   517: 	PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_COCKTAIL )
   518: 	PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  | IPF_COCKTAIL )
   519: 	PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN  | IPF_COCKTAIL )
   520: 	PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    | IPF_COCKTAIL )
   521: 	PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 )
   522: 	PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 )
   523: 
   524: 	PORT_START
   525: 	PORT_DIPNAME( 0x01, 0x01, "Balls" )
   526: 	PORT_DIPSETTING(    0x01, "3" )
   527: 	PORT_DIPSETTING(    0x00, "5" )
   528: 	PORT_DIPNAME( 0x06, 0x06, "Bonus Ball" )
   529: 	PORT_DIPSETTING(    0x06, "10000, 30000, 50000"  )
   530: 	PORT_DIPSETTING(    0x02, "20000, 60000" )
   531: 	PORT_DIPSETTING(    0x04, "30000, 80000" )
   532: 	PORT_DIPSETTING(    0x00, "20000" )
   533: 	PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unused ) )
   534: 	PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
   535: 	PORT_DIPSETTING(    0x00, DEF_STR( On ) )
   536: 	PORT_DIPNAME( 0x10, 0x10, "Allow continue" )
   537: 	PORT_DIPSETTING(    0x00, DEF_STR( No ) )
   538: 	PORT_DIPSETTING(    0x10, DEF_STR( Yes ) )
   539: 	PORT_DIPNAME( 0x20, 0x00, "Shot" )
   540: 	PORT_DIPSETTING(    0x00, "2" )
   541: 	PORT_DIPSETTING(    0x20, "3" )
   542: 	PORT_DIPNAME( 0x40, 0x00, DEF_STR( Cabinet ) )
   543: 	PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
   544: 	PORT_DIPSETTING(    0x40, DEF_STR( Cocktail ) )
   545: 	PORT_DIPNAME( 0x80, 0x00, DEF_STR( Flip_Screen ) )
   546: 	PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
   547: 	PORT_DIPSETTING(    0x80, DEF_STR( On ) )
   548: 
   549: 	PORT_START
   550: 	PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) )
   551: 	PORT_DIPSETTING(    0x00, DEF_STR( 5C_1C ) )
   552: 	PORT_DIPSETTING(    0x0c, DEF_STR( 4C_1C ) )
   553: 	PORT_DIPSETTING(    0x0e, DEF_STR( 3C_1C ) )
   554: 	PORT_DIPSETTING(    0x05, DEF_STR( 2C_1C ) )
   555: 	PORT_DIPSETTING(    0x06, DEF_STR( 3C_2C ) )
   556: 	PORT_DIPSETTING(    0x04, DEF_STR( 4C_3C ) )
   557: 	PORT_DIPSETTING(    0x0f, DEF_STR( 1C_1C ) )
   558: 	PORT_DIPSETTING(    0x08, DEF_STR( 4C_5C ) )
   559: 	PORT_DIPSETTING(    0x0a, DEF_STR( 3C_4C ) )
   560: 	PORT_DIPSETTING(    0x09, DEF_STR( 2C_3C ) )
   561: 	PORT_DIPSETTING(    0x02, "3 Coins/5 Credits" )
   562: 	PORT_DIPSETTING(    0x07, DEF_STR( 1C_2C ) )
   563: 	PORT_DIPSETTING(    0x01, DEF_STR( 2C_5C ) )
   564: 	PORT_DIPSETTING(    0x0b, DEF_STR( 1C_3C ) )
   565: 	PORT_DIPSETTING(    0x03, DEF_STR( 1C_4C ) )
   566: 	PORT_DIPSETTING(    0x0d, DEF_STR( 1C_5C ) )
   567: 	PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) )
   568: 	PORT_DIPSETTING(    0x00, DEF_STR( 5C_1C ) )
   569: 	PORT_DIPSETTING(    0xc0, DEF_STR( 4C_1C ) )
   570: 	PORT_DIPSETTING(    0xe0, DEF_STR( 3C_1C ) )
   571: 	PORT_DIPSETTING(    0x50, DEF_STR( 2C_1C ) )
   572: 	PORT_DIPSETTING(    0x60, DEF_STR( 3C_2C ) )
   573: 	PORT_DIPSETTING(    0x40, DEF_STR( 4C_3C ) )
   574: 	PORT_DIPSETTING(    0xf0, DEF_STR( 1C_1C ) )
   575: 	PORT_DIPSETTING(    0x80, DEF_STR( 4C_5C ) )
   576: 	PORT_DIPSETTING(    0xa0, DEF_STR( 3C_4C ) )
   577: 	PORT_DIPSETTING(    0x90, DEF_STR( 2C_3C ) )
   578: 	PORT_DIPSETTING(    0x20, "3 Coins/5 Credits" )
   579: 	PORT_DIPSETTING(    0x70, DEF_STR( 1C_2C ) )
   580: 	PORT_DIPSETTING(    0x10, DEF_STR( 2C_5C ) )
   581: 	PORT_DIPSETTING(    0xb0, DEF_STR( 1C_3C ) )
   582: 	PORT_DIPSETTING(    0x30, DEF_STR( 1C_4C ) )
   583: 	PORT_DIPSETTING(    0xd0, DEF_STR( 1C_5C ) )
   584: INPUT_PORTS_END
   585: 
   586: INPUT_PORTS_START( freekckb )
   587: 	PORT_START
   588: 	PORT_DIPNAME( 0x01, 0x01, DEF_STR( Lives ) )
   589: 	PORT_DIPSETTING(    0x01, "3" )
   590: 	PORT_DIPSETTING(    0x00, "5" )
   591: 	PORT_DIPNAME( 0x06, 0x06, DEF_STR( Bonus_Life ) )
   592: 	PORT_DIPSETTING(    0x06, "2-3-4-5-60000 Points" )
   593: 	PORT_DIPSETTING(    0x02, "3-4-5-6-7-80000 Points" )
   594: 	PORT_DIPSETTING(    0x04, "20000 & 60000 Points" )
   595: 	PORT_DIPSETTING(    0x00, "ONLY 20000 Points" )
   596: 	PORT_DIPNAME( 0x18, 0x18, DEF_STR( Difficulty ) )
   597: 	PORT_DIPSETTING(    0x18, "Easy" )    /* level 1 */
   598: 	PORT_DIPSETTING(    0x10, "Normal" )
   599: 	PORT_DIPSETTING(    0x08, "Hard" )
   600: 	PORT_DIPSETTING(    0x00, "Hardest" ) /* level 4 */
   601:     PORT_DIPNAME( 0x20, 0x20, "Allow Continue" )
   602: 	PORT_DIPSETTING(    0x00, DEF_STR( No ) )
   603: 	PORT_DIPSETTING(    0x20, DEF_STR( Yes ) )
   604: 	PORT_DIPNAME( 0x40, 0x00, DEF_STR( Cabinet ) )
   605: 	PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
   606: 	PORT_DIPSETTING(    0x40, DEF_STR( Cocktail ) )
   607: 	PORT_DIPNAME( 0x80, 0x80, DEF_STR( Flip_Screen ) )
   608: 	PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
   609: 	PORT_DIPSETTING(    0x00, DEF_STR( On ) )
   610: 
   611: 	PORT_START
   612: 	PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) )
   613: 	PORT_DIPSETTING(    0x00, DEF_STR( 5C_1C ) )
   614: 	PORT_DIPSETTING(    0x0c, DEF_STR( 4C_1C ) )
   615: 	PORT_DIPSETTING(    0x0e, DEF_STR( 3C_1C ) )
   616: 	PORT_DIPSETTING(    0x05, DEF_STR( 2C_1C ) )
   617: 	PORT_DIPSETTING(    0x06, DEF_STR( 3C_2C ) )
   618: 	PORT_DIPSETTING(    0x04, DEF_STR( 4C_3C ) )
   619: 	PORT_DIPSETTING(    0x0f, DEF_STR( 1C_1C ) )
   620: 	PORT_DIPSETTING(    0x08, DEF_STR( 4C_5C ) )
   621: 	PORT_DIPSETTING(    0x0a, DEF_STR( 3C_4C ) )
   622: 	PORT_DIPSETTING(    0x09, DEF_STR( 2C_3C ) )
   623: 	PORT_DIPSETTING(    0x02, "3 Coins/5 Credits" )
   624: 	PORT_DIPSETTING(    0x07, DEF_STR( 1C_2C ) )
   625: 	PORT_DIPSETTING(    0x01, DEF_STR( 2C_5C ) )
   626: 	PORT_DIPSETTING(    0x0b, DEF_STR( 1C_3C ) )
   627: 	PORT_DIPSETTING(    0x03, DEF_STR( 1C_4C ) )
   628: 	PORT_DIPSETTING(    0x0d, DEF_STR( 1C_5C ) )
   629: 	PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) )
   630: 	PORT_DIPSETTING(    0x00, DEF_STR( 5C_1C ) )
   631: 	PORT_DIPSETTING(    0xe0, DEF_STR( 3C_1C ) )
   632: 	PORT_DIPSETTING(    0x50, DEF_STR( 2C_1C ) )
   633: 	PORT_DIPSETTING(    0x60, DEF_STR( 3C_2C ) )
   634: 	PORT_DIPSETTING(    0xf0, DEF_STR( 1C_1C ) )
   635: 	PORT_DIPSETTING(    0xa0, DEF_STR( 3C_4C ) )
   636: 	PORT_DIPSETTING(    0x90, DEF_STR( 2C_3C ) )
   637: 	PORT_DIPSETTING(    0x20, "3 Coins/5 Credits" )
   638: 	PORT_DIPSETTING(    0x70, DEF_STR( 1C_2C ) )
   639: 	PORT_DIPSETTING(    0x10, DEF_STR( 2C_5C ) )
   640: 	PORT_DIPSETTING(    0xb0, DEF_STR( 1C_3C ) )
   641: 	PORT_DIPSETTING(    0x30, DEF_STR( 1C_4C ) )
   642: 	PORT_DIPSETTING(    0xd0, DEF_STR( 1C_5C ) )
   643: 	PORT_DIPSETTING(    0xc0, "1 Coin/10 Credits" )
   644: 	PORT_DIPSETTING(    0x40, "1 Coin/25 Credits" )
   645: 	PORT_DIPSETTING(    0x80, "1 Coin/50 Credits" )
   646: 
   647: 	PORT_START
   648: 	PORT_DIPNAME( 0x01, 0x00, "Manufacturer" )
   649: 	PORT_DIPSETTING(    0x00, "Nihon System" )
   650: 	PORT_DIPSETTING(    0x01, "Sega/Nihon System" )
   651: 	PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unused ) )
   652: 	PORT_DIPSETTING(    0x02, DEF_STR( Off ) )
   653: 	PORT_DIPSETTING(    0x00, DEF_STR( On ) )
   654: 	PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unused ) )
   655: 	PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
   656: 	PORT_DIPSETTING(    0x00, DEF_STR( On ) )
   657: 	PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unused ) )
   658: 	PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
   659: 	PORT_DIPSETTING(    0x00, DEF_STR( On ) )
   660: 	PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unused ) )
   661: 	PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
   662: 	PORT_DIPSETTING(    0x00, DEF_STR( On ) )
   663: 	PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unused ) )
   664: 	PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
   665: 	PORT_DIPSETTING(    0x00, DEF_STR( On ) )
   666: 	PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unused ) )
   667: 	PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
   668: 	PORT_DIPSETTING(    0x00, DEF_STR( On ) )
   669: 	PORT_DIPNAME( 0x80, 0x80, "Coin Slots" )
   670: 	PORT_DIPSETTING(    0x00, "1" )
   671: 	PORT_DIPSETTING(    0x80, "2" )
   672: 
   673: 	PORT_START
   674: 	PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
   675: 	PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 )
   676: 	PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN )
   677: 	PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN )
   678: 	PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
   679: 	PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
   680: 	PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 )
   681: 	PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 )
   682: 
   683: 	PORT_START
   684: 	PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
   685: 	PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 | IPF_COCKTAIL )
   686: 	PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN )
   687: 	PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN )
   688: 	PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
   689: 	PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
   690: 	PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 )
   691: 	PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 )
   692: 
   693: 	PORT_START
   694: 	PORT_ANALOG( 0xff, 0x00, IPT_DIAL | IPF_REVERSE, 30, 15, 0, 0 )
   695: 
   696: 	PORT_START
   697: 	PORT_ANALOG( 0xff, 0x00, IPT_DIAL | IPF_REVERSE | IPF_COCKTAIL, 30, 15, 0, 0 )
   698: INPUT_PORTS_END
   699: 
   700: 
   701: 
   702: static struct GfxLayout charlayout =
   703: {
   704: 	8,8,
   705: 	RGN_FRAC(1,3),
   706: 	3,
   707: 	{ RGN_FRAC(2,3), RGN_FRAC(1,3), RGN_FRAC(0,3) },
   708: 	{ 0,1,2,3, 4,5,6,7 },
   709: 	{ 0*8,1*8,2*8,3*8,4*8,5*8,6*8,7*8 },
   710: 	8*8
   711: };
   712: 
   713: static struct GfxLayout spritelayout =
   714: {
   715: 	16,16,
   716: 	RGN_FRAC(1,3),
   717: 	3,
   718: 	{ RGN_FRAC(0,3),RGN_FRAC(2,3),RGN_FRAC(1,3) },
   719: 	{ 0, 1, 2, 3, 4, 5, 6, 7,
   720: 	128+0,128+1,128+2,128+3,128+4,128+5,128+6,128+7
   721: 	},
   722: 	{ 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8,
   723: 	  8*8, 9*8, 10*8, 11*8,12*8,13*8,14*8,15*8
   724: 	},
   725: 	16*16
   726: };
   727: 
   728: static struct GfxDecodeInfo gfxdecodeinfo[] =
   729: {
   730: 	{ REGION_GFX1, 0, &charlayout,   0x000, 32 },
   731: 	{ REGION_GFX2, 0, &spritelayout, 0x100, 32 },
   732: 	{ -1 }
   733: };
   734: 
   735: 
   736: 
   737: static struct SN76496interface sn76496_interface =
   738: {
   739: 	4,	/* 4 chips */
   740: 	{ 12000000/4, 12000000/4, 12000000/4, 12000000/4 },	/* 3 MHz??? */
   741: 	{ 50, 50, 50, 50 }
   742: };
   743: 
   744: 
   745: 
   746: static MACHINE_DRIVER_START( pbillrd )
   747: 	MDRV_CPU_ADD(Z80, 12000000/2)	/* 6 MHz? */
   748: 	MDRV_CPU_MEMORY(pbillrd_readmem,pbillrd_writemem)
   749: 	MDRV_CPU_PERIODIC_INT(irq0_line_pulse,60*3) //??
   750: 	MDRV_CPU_VBLANK_INT(freekick_irqgen,1)
   751: 
   752: 	MDRV_FRAMES_PER_SECOND(60)
   753: 	MDRV_VBLANK_DURATION(DEFAULT_60HZ_VBLANK_DURATION)
   754: 
   755: 	MDRV_GFXDECODE(gfxdecodeinfo)
   756: 
   757: 	MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER)
   758: 	MDRV_SCREEN_SIZE(32*8, 32*8)
   759: 	MDRV_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1)
   760: 	MDRV_PALETTE_LENGTH(0x200)
   761: 	MDRV_PALETTE_INIT(RRRR_GGGG_BBBB)
   762: 
   763: 	MDRV_VIDEO_START(freekick)
   764: 	MDRV_VIDEO_UPDATE(pbillrd)
   765: 
   766: 	/* sound hardware */
   767: 	MDRV_SOUND_ADD(SN76496, sn76496_interface)
   768: MACHINE_DRIVER_END
   769: 
   770: static MACHINE_DRIVER_START( freekckb )
   771: 	MDRV_CPU_ADD(Z80, 12000000/2)	/* 6 MHz? */
   772: 	MDRV_CPU_MEMORY(freekckb_readmem,freekckb_writemem)
   773: 	MDRV_CPU_PORTS(freekckb_readport,freekckb_writeport)
   774: 	MDRV_CPU_PERIODIC_INT(irq0_line_pulse,60*3) //??
   775: 	MDRV_CPU_VBLANK_INT(freekick_irqgen,1)
   776: 
   777: 	MDRV_FRAMES_PER_SECOND(60)
   778: 	MDRV_VBLANK_DURATION(DEFAULT_60HZ_VBLANK_DURATION)
   779: 	MDRV_MACHINE_INIT(freekckb)
   780: 
   781: 	MDRV_GFXDECODE(gfxdecodeinfo)
   782: 
   783: 	MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER)
   784: 	MDRV_SCREEN_SIZE(32*8, 32*8)
   785: 	MDRV_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1)
   786: 	MDRV_PALETTE_LENGTH(0x200)
   787: 	MDRV_PALETTE_INIT(RRRR_GGGG_BBBB)
   788: 
   789: 	MDRV_VIDEO_START(freekick)
   790: 	MDRV_VIDEO_UPDATE(freekick)
   791: 
   792: 	/* sound hardware */
   793: 	MDRV_SOUND_ADD(SN76496, sn76496_interface)
   794: MACHINE_DRIVER_END
   795: 
   796: static MACHINE_DRIVER_START( gigas )
   797: 	MDRV_CPU_ADD_TAG("main",Z80, 18432000/6)	//confirmed
   798: 	MDRV_CPU_MEMORY(gigas_readmem,gigas_writemem)
   799: 	MDRV_CPU_PORTS(gigas_readport,gigas_writeport)
   800: 	MDRV_CPU_PERIODIC_INT(irq0_line_pulse,60*3)
   801: 	MDRV_CPU_VBLANK_INT(freekick_irqgen,1)
   802: 
   803: 	MDRV_FRAMES_PER_SECOND(60)
   804: 	MDRV_VBLANK_DURATION(DEFAULT_60HZ_VBLANK_DURATION)
   805: 
   806: 	MDRV_GFXDECODE(gfxdecodeinfo)
   807: 
   808: 	MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER)
   809: 	MDRV_SCREEN_SIZE(32*8, 32*8)
   810: 	MDRV_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1)
   811: 	MDRV_PALETTE_LENGTH(0x200)
   812: 	MDRV_PALETTE_INIT(RRRR_GGGG_BBBB)
   813: 
   814: 	MDRV_VIDEO_START(freekick)
   815: 	MDRV_VIDEO_UPDATE(gigas)
   816: 
   817: 	/* sound hardware */
   818: 	MDRV_SOUND_ADD(SN76496, sn76496_interface)
   819: MACHINE_DRIVER_END
   820: 
   821: static MACHINE_DRIVER_START( oigas )
   822: 	MDRV_IMPORT_FROM(gigas)
   823: 	MDRV_CPU_MODIFY("main")
   824: 	MDRV_CPU_PORTS(oigas_readport,oigas_writeport)
   825: MACHINE_DRIVER_END
   826: 
   827: /* roms */
   828: 
   829: ROM_START( pbillrd )
   830: 	ROM_REGION( 0x18000, REGION_CPU1, 0 ) /* Z80 Code */
   831: 	ROM_LOAD( "pb.18",       0x00000, 0x4000, CRC(9e6275ac) SHA1(482e845e7fb4190da483155bd908ad470373cd5c) )
   832: 	ROM_LOAD( "pb.7",        0x04000, 0x4000, CRC(dd438431) SHA1(07a950e38b3f627ecf95e5831e5480abb337a010) )
   833: 	ROM_CONTINUE(            0x10000, 0x4000 )
   834: 	ROM_LOAD( "pb.9",        0x14000, 0x4000, CRC(089ce80a) SHA1(779be9ba2277a26fbebf4acf9e2f5319a934b0f5) )
   835: 
   836: 	ROM_REGION( 0xc000, REGION_GFX1, ROMREGION_DISPOSE ) /* GFX */
   837: 	ROM_LOAD( "pb.4",        0x000000, 0x04000, CRC(2f4d4dd3) SHA1(ee4facabf591c235c270db4f4d3f612b8c474e57) )
   838: 	ROM_LOAD( "pb.5",        0x004000, 0x04000, CRC(9dfccbd3) SHA1(66ad8882f36630312b488d5d67ae554477574c31) )
   839: 	ROM_LOAD( "pb.6",        0x008000, 0x04000, CRC(b5c3f6f6) SHA1(586b47587619a766cf977b74978550aff41a58cc) )
   840: 
   841: 	ROM_REGION( 0x6000, REGION_GFX2, ROMREGION_DISPOSE ) /* GFX */
   842: 	ROM_LOAD( "10619.3r",    0x000000, 0x02000, CRC(3296b9d9) SHA1(51393306f74394de96c4097b6244e8eb36114dac) )
   843: 	ROM_LOAD( "10620.3n",    0x002000, 0x02000, CRC(ee76b079) SHA1(99abe2c5b1889d20bc3f5720b168690e3979fb2f) )
   844: 	ROM_LOAD( "10621.3m",    0x004000, 0x02000, CRC(3dca8e4b) SHA1(ca0416d8faba0bb5e6b8c0a8fc227b57caa75f71) )
   845: 
   846: 	ROM_REGION( 0x0600, REGION_PROMS, 0 )
   847:     ROM_LOAD( "82s129.3a", 0x0000, 0x0100, CRC(44802169) SHA1(f181d80185e0f87ee906d2b40e3a5deb6f563aa2) )
   848: 	ROM_LOAD( "82s129.4d", 0x0100, 0x0100, CRC(69ca07cc) SHA1(38ab08174633b53d70a38aacb40059a25cf12069) )
   849: 	ROM_LOAD( "82s129.4a", 0x0200, 0x0100, CRC(145f950a) SHA1(b007d0c1cc9545e0e241b39b79a48593d457f826) )
   850: 	ROM_LOAD( "82s129.3d", 0x0300, 0x0100, CRC(43d24e17) SHA1(de5c9391574781dcd8f244794010e8eddffa1c1e) )
   851: 	ROM_LOAD( "82s129.3b", 0x0400, 0x0100, CRC(7fdc872c) SHA1(98572560aa524490489d4202dba292a5af9f15e7) )
   852: 	ROM_LOAD( "82s129.3c", 0x0500, 0x0100, CRC(cc1657e5) SHA1(358f20dce376c2389009f9673ce38b297af863f6) )
   853: ROM_END
   854: 
   855: ROM_START( pbillrds )
   856: 	ROM_REGION( 0x18000, REGION_CPU1, 0 ) /* Z80 Code */
   857: 	ROM_LOAD( "10627.10n",   0x00000, 0x4000, CRC(2335e6dd) SHA1(82352b6f4abea88aad3a96ca63cccccb6e278f48) )	/* encrypted */
   858: 	ROM_LOAD( "10625.8r",    0x04000, 0x4000, CRC(8977c724) SHA1(f00835a04dc6fa7d8c1e382dace515f2aa7d6f44) )	/* encrypted */
   859: 	ROM_CONTINUE(            0x10000, 0x4000 )
   860: 	ROM_LOAD( "10626.8n",    0x14000, 0x4000, CRC(51d725e6) SHA1(d7007c983530780e7fa3686cb7a6d7c382c802fa) )	/* encrypted */
   861: 
   862: 	ROM_REGION( 0xc000, REGION_GFX1, ROMREGION_DISPOSE ) /* GFX */
   863: 	ROM_LOAD( "10622.3h",    0x000000, 0x04000, CRC(23b864ac) SHA1(5a13ad6f2278761967269eed8c07077293c921d6) )
   864: 	ROM_LOAD( "10623.3h",    0x004000, 0x04000, CRC(3dbfb790) SHA1(81a2645b7b3addf8f5b83043c967647cea476002) )
   865: 	ROM_LOAD( "10624.3g",    0x008000, 0x04000, CRC(b80032a9) SHA1(20096bdae1aad8913d8d7b1045912ea5ae7fce6f) )
   866: 
   867: 	ROM_REGION( 0x6000, REGION_GFX2, ROMREGION_DISPOSE ) /* GFX */
   868: 	ROM_LOAD( "10619.3r",    0x000000, 0x02000, CRC(3296b9d9) SHA1(51393306f74394de96c4097b6244e8eb36114dac) )
   869: 	ROM_LOAD( "10620.3n",    0x002000, 0x02000, CRC(ee76b079) SHA1(99abe2c5b1889d20bc3f5720b168690e3979fb2f) )
   870: 	ROM_LOAD( "10621.3m",    0x004000, 0x02000, CRC(3dca8e4b) SHA1(ca0416d8faba0bb5e6b8c0a8fc227b57caa75f71) )
   871: 
   872: 	ROM_REGION( 0x0600, REGION_PROMS, 0 )
   873:     ROM_LOAD( "82s129.3a", 0x0000, 0x0100, CRC(44802169) SHA1(f181d80185e0f87ee906d2b40e3a5deb6f563aa2) )
   874: 	ROM_LOAD( "82s129.4d", 0x0100, 0x0100, CRC(69ca07cc) SHA1(38ab08174633b53d70a38aacb40059a25cf12069) )
   875: 	ROM_LOAD( "82s129.4a", 0x0200, 0x0100, CRC(145f950a) SHA1(b007d0c1cc9545e0e241b39b79a48593d457f826) )
   876: 	ROM_LOAD( "82s129.3d", 0x0300, 0x0100, CRC(43d24e17) SHA1(de5c9391574781dcd8f244794010e8eddffa1c1e) )
   877: 	ROM_LOAD( "82s129.3b", 0x0400, 0x0100, CRC(7fdc872c) SHA1(98572560aa524490489d4202dba292a5af9f15e7) )
   878: 	ROM_LOAD( "82s129.3c", 0x0500, 0x0100, CRC(cc1657e5) SHA1(358f20dce376c2389009f9673ce38b297af863f6) )
   879: ROM_END
   880: 
   881: /*
   882: 
   883: original sets don't work, they're missing the main cpu code which is probably inside
   884: the custom cpu, battery backed too so hopefully somebody can work out how to get it
   885: from an original counter run board before they all die :-(
   886: 
   887: */
   888: 
   889: ROM_START( freekick )
   890: 	ROM_REGION( 0x10000, REGION_CPU1, 0 ) /* Z80 Code */
   891: 	// Custom (NS6201-A 1987.9)
   892: 	ROM_LOAD( "freekck.cpu", 0x00000, 0x10000, NO_DUMP ) // missing, might be the same as the bootleg but not confirmed
   893: 
   894: 	ROM_REGION( 0x08000, REGION_USER1, 0 ) /* sound data */
   895: 	ROM_LOAD( "11.1e",       0x00000, 0x08000, CRC(a6030ba9) SHA1(f363100f54a7a80701a6395c7539b8daa60db054) )
   896: 
   897: 	ROM_REGION( 0xc000, REGION_GFX1, ROMREGION_DISPOSE ) /* GFX */
   898: 	ROM_LOAD( "12.1h",       0x000000, 0x04000, CRC(fb82e486) SHA1(bc672272dc32b2aa64e991992172c44bea1ca65c) )
   899: 	ROM_LOAD( "13.1j",       0x004000, 0x04000, CRC(3ad78ee2) SHA1(033285d4ab7d6f46abf4c1bd4671c874738f0ac1) )
   900: 	ROM_LOAD( "14.1l",       0x008000, 0x04000, CRC(0185695f) SHA1(126994c69de157fc7c452ccc7f1a767f5085da27) )
   901: 
   902: 	ROM_REGION( 0xc000, REGION_GFX2, ROMREGION_DISPOSE ) /* GFX */
   903: 	ROM_LOAD( "15.1m",       0x000000, 0x04000, CRC(0fa7c13c) SHA1(24b0ca73b0e35474e2392d8e729bcd44b80f9135) )
   904: 	ROM_LOAD( "16.1p",       0x004000, 0x04000, CRC(2b996e89) SHA1(c6900449d27e89c3b444fb028694fdcda8e79322) )
   905: 	ROM_LOAD( "17.1r",       0x008000, 0x04000, CRC(e7894def) SHA1(5c97b7cce43d1e51c709603a0d2394b8119764bd) )
   906: 
   907: 	ROM_REGION( 0x0600, REGION_PROMS, 0 ) /* use the Japanese set proms, others seemed bad */
   908:     ROM_LOAD( "8j.bpr",    0x0000, 0x0100, CRC(53a6bc21) SHA1(d4beedc226004c1aa9b6aae29bee9c8a9b0fff7c) )
   909: 	ROM_LOAD( "7j.bpr",    0x0100, 0x0100, CRC(38dd97d8) SHA1(468a0f87a704982dc1bce1ca21f9bb252ac241a0) )
   910: 	ROM_LOAD( "8k.bpr",    0x0200, 0x0100, CRC(18e66087) SHA1(54857526179b738862d11ce87e9d0edcb7878488) )
   911: 	ROM_LOAD( "7k.bpr",    0x0300, 0x0100, CRC(bc21797a) SHA1(4d6cf05e51b7ef9147eeff051c3728764021cfdb) )
   912: 	ROM_LOAD( "8h.bpr",    0x0400, 0x0100, CRC(8aac5fd0) SHA1(07a179603c0167c1f998b2337d66be95db9911cc) )
   913: 	ROM_LOAD( "7h.bpr",    0x0500, 0x0100, CRC(a507f941) SHA1(97619959ee4c366cb010525636ab5eefe5a3127a) )
   914: ROM_END
   915: 
   916: ROM_START( freekckb )
   917: 	ROM_REGION( 0x10000, REGION_CPU1, 0 ) /* Z80 Code */
   918: 	ROM_LOAD( "freekbl8.q7", 0x00000, 0x10000, CRC(4208cfe5) SHA1(21628cbe8a217fbae30a6c24c9cc4c790fe45d65) ) // this was on the bootleg, would normally be battery backed inside cpu?
   919: 
   920: 	ROM_REGION( 0x08000, REGION_USER1, 0 ) /* sound data */
   921: 	ROM_LOAD( "11.1e",       0x00000, 0x08000, CRC(a6030ba9) SHA1(f363100f54a7a80701a6395c7539b8daa60db054) )		// freekbl1.e2
   922: 
   923: 	ROM_REGION( 0xc000, REGION_GFX1, ROMREGION_DISPOSE ) /* GFX */
   924: 	ROM_LOAD( "12.1h",       0x000000, 0x04000, CRC(fb82e486) SHA1(bc672272dc32b2aa64e991992172c44bea1ca65c) )	// freekbl2.f2
   925: 	ROM_LOAD( "13.1j",       0x004000, 0x04000, CRC(3ad78ee2) SHA1(033285d4ab7d6f46abf4c1bd4671c874738f0ac1) )	// freekbl3.j2
   926: 	ROM_LOAD( "14.1l",       0x008000, 0x04000, CRC(0185695f) SHA1(126994c69de157fc7c452ccc7f1a767f5085da27) )	// freekbl4.k2
   927: 
   928: 	ROM_REGION( 0xc000, REGION_GFX2, ROMREGION_DISPOSE ) /* GFX */
   929: 	ROM_LOAD( "15.1m",       0x000000, 0x04000, CRC(0fa7c13c) SHA1(24b0ca73b0e35474e2392d8e729bcd44b80f9135) )	// freekbl5.m2
   930: 	ROM_LOAD( "16.1p",       0x004000, 0x04000, CRC(2b996e89) SHA1(c6900449d27e89c3b444fb028694fdcda8e79322) )	// freekbl6.n2
   931: 	ROM_LOAD( "17.1r",       0x008000, 0x04000, CRC(e7894def) SHA1(5c97b7cce43d1e51c709603a0d2394b8119764bd) )	// freekbl7.r2
   932: 
   933: 	ROM_REGION( 0x0600, REGION_PROMS, 0 )
   934:     ROM_LOAD( "8j.bpr",    0x0000, 0x0100, CRC(53a6bc21) SHA1(d4beedc226004c1aa9b6aae29bee9c8a9b0fff7c) )
   935: 	ROM_LOAD( "7j.bpr",    0x0100, 0x0100, CRC(38dd97d8) SHA1(468a0f87a704982dc1bce1ca21f9bb252ac241a0) )
   936: 	ROM_LOAD( "8k.bpr",    0x0200, 0x0100, CRC(18e66087) SHA1(54857526179b738862d11ce87e9d0edcb7878488) )
   937: 	ROM_LOAD( "7k.bpr",    0x0300, 0x0100, CRC(bc21797a) SHA1(4d6cf05e51b7ef9147eeff051c3728764021cfdb) )
   938: 	ROM_LOAD( "8h.bpr",    0x0400, 0x0100, CRC(8aac5fd0) SHA1(07a179603c0167c1f998b2337d66be95db9911cc) )
   939: 	ROM_LOAD( "7h.bpr",    0x0500, 0x0100, CRC(a507f941) SHA1(97619959ee4c366cb010525636ab5eefe5a3127a) )
   940: ROM_END
   941: 
   942: ROM_START( countrun )
   943: 	ROM_REGION( 0x10000, REGION_CPU1, 0 ) /* Z80 Code */
   944: 	//  Custom CPU (pack) No. NS6201-A 1988.3 COUNTER RUN
   945: 	ROM_LOAD( "countrun.cpu", 0x00000, 0x10000, NO_DUMP ) // missing
   946: 
   947: 	ROM_REGION( 0x08000, REGION_USER1, 0 ) /* sound data */
   948: 	ROM_LOAD( "c-run.e1", 0x00000, 0x08000, CRC(2c3b6f8f) )
   949: 
   950: 	ROM_REGION( 0xc000, REGION_GFX1, ROMREGION_DISPOSE ) /* GFX */
   951: 	ROM_LOAD( "c-run.h1", 0x000000, 0x04000, CRC(3385b7b5) ) // rom 2
   952: 	ROM_LOAD( "c-run.j1", 0x004000, 0x04000, CRC(58dc148d) ) // rom 3
   953: 	ROM_LOAD( "c-run.l1", 0x008000, 0x04000, CRC(3201f1e9) ) // rom 4
   954: 
   955: 	ROM_REGION( 0xc000, REGION_GFX2, ROMREGION_DISPOSE ) /* GFX */
   956: 	ROM_LOAD( "c-run.m1", 0x000000, 0x04000, CRC(1efab3b4) ) // rom 5
   957: 	ROM_LOAD( "c-run.p1", 0x004000, 0x04000, CRC(d0bf8d42) ) // rom 6
   958: 	ROM_LOAD( "c-run.r1", 0x008000, 0x04000, CRC(4bb4a3e3) ) // rom 7
   959: 
   960: 	ROM_REGION( 0x0600, REGION_PROMS, 0 )
   961: 	ROM_LOAD( "prom5.bpr",    0x0000, 0x0100, CRC(63c114ad) )
   962: 	ROM_LOAD( "prom2.bpr",    0x0100, 0x0100, CRC(d16f95cc) )
   963: 	ROM_LOAD( "prom4.bpr",    0x0200, 0x0100, CRC(217db2c1) )
   964: 	ROM_LOAD( "prom1.bpr",    0x0300, 0x0100, CRC(8d983949) )
   965: 	ROM_LOAD( "prom6.bpr",    0x0400, 0x0100, CRC(33e87550) )
   966: 	ROM_LOAD( "prom3.bpr",    0x0500, 0x0100, CRC(c77d0077) )
   967: ROM_END
   968: 
   969: ROM_START( countrnb )
   970: 	ROM_REGION( 0x10000, REGION_CPU1, 0 ) /* Z80 Code */
   971: 	ROM_LOAD( "crunbl.8", 0x00000, 0x10000, CRC(318f95d9) SHA1(f2386b9d26d1bc98728aad9e257363b381043dc9) ) // encrypted? bad? its strange anyway
   972: 
   973: 	ROM_REGION( 0x01000, REGION_CPU2, 0 )
   974: 	ROM_LOAD( "68705.uc",  0x00000, 0x01000, NO_DUMP )
   975: 
   976: 	ROM_REGION( 0x08000, REGION_USER1, 0 ) /* sound data */
   977: 	ROM_LOAD( "c-run.e1", 0x00000, 0x08000, CRC(2c3b6f8f) )
   978: 
   979: 	ROM_REGION( 0xc000, REGION_GFX1, ROMREGION_DISPOSE ) /* GFX */
   980: 	ROM_LOAD( "c-run.h1", 0x000000, 0x04000, CRC(3385b7b5) ) // rom 2
   981: 	ROM_LOAD( "c-run.j1", 0x004000, 0x04000, CRC(58dc148d) ) // rom 3
   982: 	ROM_LOAD( "c-run.l1", 0x008000, 0x04000, CRC(3201f1e9) ) // rom 4
   983: 
   984: 	ROM_REGION( 0xc000, REGION_GFX2, ROMREGION_DISPOSE ) /* GFX */
   985: 	ROM_LOAD( "c-run.m1", 0x000000, 0x04000, CRC(1efab3b4) ) // rom 5
   986: 	ROM_LOAD( "c-run.p1", 0x004000, 0x04000, CRC(d0bf8d42) ) // rom 6
   987: 	ROM_LOAD( "c-run.r1", 0x008000, 0x04000, CRC(4bb4a3e3) ) // rom 7
   988: 
   989: 	ROM_REGION( 0x0600, REGION_PROMS, 0 )
   990: 	ROM_LOAD( "prom5.bpr",    0x0000, 0x0100, CRC(63c114ad) )
   991: 	ROM_LOAD( "prom2.bpr",    0x0100, 0x0100, CRC(d16f95cc) )
   992: 	ROM_LOAD( "prom4.bpr",    0x0200, 0x0100, CRC(217db2c1) )
   993: 	ROM_LOAD( "prom1.bpr",    0x0300, 0x0100, CRC(8d983949) )
   994: 	ROM_LOAD( "prom6.bpr",    0x0400, 0x0100, CRC(33e87550) )
   995: 	ROM_LOAD( "prom3.bpr",    0x0500, 0x0100, CRC(c77d0077) )
   996: ROM_END
   997: 
   998: 
   999: ROM_START( gigasm2b )
  1000: 	ROM_REGION( 0x10000*2, REGION_CPU1, 0 )
  1001: 	ROM_LOAD( "8.rom", 0x10000, 0x4000, CRC(c00a4a6c) SHA1(0d1bb849c9bfe4e92ad70e4ef19da494c0bd7ba8) )
  1002: 	ROM_CONTINUE(      0x00000, 0x4000 )
  1003: 	ROM_LOAD( "7.rom", 0x14000, 0x4000, CRC(92bd9045) SHA1(e4d8a94deeb795bb284ca0bd211ed40ed498b172) )
  1004: 	ROM_CONTINUE(      0x04000, 0x4000 )
  1005: 	ROM_LOAD( "9.rom", 0x18000, 0x4000, CRC(a3ef809c) SHA1(6d4098658aa124e10e5edb8e8e3abe0aa26741a1) )
  1006: 	ROM_CONTINUE(      0x08000, 0x4000 )
  1007: 
  1008: 	ROM_REGION( 0xc000, REGION_GFX1, ROMREGION_DISPOSE ) /* GFX */
  1009: 	ROM_LOAD( "4.rom",       0x00000, 0x04000, CRC(20b3405f) SHA1(32120d7b40e74648eb4ac4ab3ad3d2125033f6b1) )
  1010: 	ROM_LOAD( "5.rom",       0x04000, 0x04000, CRC(d04ecfa8) SHA1(10bfb1d075da768f31a8c34cdfe1a1bf01e89f94) )
  1011: 	ROM_LOAD( "6.rom",       0x08000, 0x04000, CRC(33776801) SHA1(29952818038a08c98b95ac801b8929cf1647049c) )
  1012: 
  1013: 	ROM_REGION( 0xc000, REGION_GFX2, ROMREGION_DISPOSE ) /* GFX */
  1014: 	ROM_LOAD( "1.rom",       0x00000, 0x04000, CRC(f64cbd1e) SHA1(f8d9b110cdac6ef524e35bec9a5d406651cd7bab) )
  1015: 	ROM_LOAD( "3.rom",       0x04000, 0x04000, CRC(c228df19) SHA1(584f269f7de2d531f2b038b4b7318f813c329f7f) )
  1016: 	ROM_LOAD( "2.rom",       0x08000, 0x04000, CRC(a6ad9ce2) SHA1(db0338385208df9e9cf43efc11383412dec493e6) )
  1017: 
  1018: 	ROM_REGION( 0x0600, REGION_PROMS, 0 )
  1019: 	ROM_LOAD( "1.pr",    0x0000, 0x0100, CRC(a784e71f) SHA1(1741ce98d719bad6cc5ea42337ef897f2435bbab) )
  1020: 	ROM_LOAD( "6.pr",    0x0100, 0x0100, CRC(376df30c) SHA1(cc95920cd1c133da1becc7d92f4b187b56a90ec7) )
  1021: 	ROM_LOAD( "5.pr",    0x0200, 0x0100, CRC(4edff5bd) SHA1(305efc7ad7f86635489a655e214e216ac02b904d) )
  1022: 	ROM_LOAD( "4.pr",    0x0300, 0x0100, CRC(fe201a4e) SHA1(15f8ecfcf6c63ffbf9777bec9b203c319ba1b96c) )
  1023: 	ROM_LOAD( "2.pr",    0x0400, 0x0100, CRC(5796cc4a) SHA1(39576c4e48fd7ac52fc652a1ae0573db3d878878) )
  1024: 	ROM_LOAD( "3.pr",    0x0500, 0x0100, CRC(28b5ee4c) SHA1(e21b9c38f433dca1e8894619b1d9f0389a81b48a) )
  1025: ROM_END
  1026: 
  1027: ROM_START( gigasb )
  1028: 	ROM_REGION( 0x10000*2, REGION_CPU1, 0 )
  1029: 	ROM_LOAD( "g-7",   0x10000, 0x4000, CRC(daf4e88d) SHA1(391dff914ce8e9b7975fc8827c066d7db16c4171) )
  1030: 	ROM_CONTINUE(      0x00000, 0x4000 )
  1031: 	ROM_LOAD( "g-8",   0x14000, 0x8000, CRC(4ab4c1f1) SHA1(63d8f489c7a8271e99a66d97e6eb0eb252cb2b67) )
  1032: 	ROM_CONTINUE(      0x04000, 0x8000 )
  1033: 
  1034: 	ROM_REGION( 0xc000, REGION_GFX1, ROMREGION_DISPOSE ) /* GFX */
  1035: 	ROM_LOAD( "g-4",     0x00000, 0x04000, CRC(8ed78981) SHA1(1f2c0584fcc6d04b042638c7b9a7e21fc560ca3d) )
  1036: 	ROM_LOAD( "g-5",     0x04000, 0x04000, CRC(0645ec2d) SHA1(ecf8b1ce98f845b5b32e7fc959cea7679a149d74) )
  1037: 	ROM_LOAD( "g-6",     0x08000, 0x04000, CRC(99e9cb27) SHA1(d141d6caa077e3cd182eb64cf803613ac17e7d09) )
  1038: 
  1039: 	ROM_REGION( 0xc000, REGION_GFX2, ROMREGION_DISPOSE ) /* GFX */
  1040: 	ROM_LOAD( "g-1",     0x00000, 0x04000, CRC(d78fae6e) SHA1(a7bf3b213f2a3a51b964959bd45003351670575a) )
  1041: 	ROM_LOAD( "g-3",     0x04000, 0x04000, CRC(37df4a4c) SHA1(ab996db636d89845474529ba2573307046fb96ee) )
  1042: 	ROM_LOAD( "g-2",     0x08000, 0x04000, CRC(3a46e354) SHA1(ebd6a5db4c9cdfc6fabe6b412a704aaf03c32d7c) )
  1043: 
  1044: 	ROM_REGION( 0x0600, REGION_PROMS, 0 )
  1045: 	ROM_LOAD( "1.pr",    0x0000, 0x0100, CRC(a784e71f) SHA1(1741ce98d719bad6cc5ea42337ef897f2435bbab) )
  1046: 	ROM_LOAD( "6.pr",    0x0100, 0x0100, CRC(376df30c) SHA1(cc95920cd1c133da1becc7d92f4b187b56a90ec7) )
  1047: 	ROM_LOAD( "5.pr",    0x0200, 0x0100, CRC(4edff5bd) SHA1(305efc7ad7f86635489a655e214e216ac02b904d) )
  1048: 	ROM_LOAD( "4.pr",    0x0300, 0x0100, CRC(fe201a4e) SHA1(15f8ecfcf6c63ffbf9777bec9b203c319ba1b96c) )
  1049: 	ROM_LOAD( "2.pr",    0x0400, 0x0100, CRC(5796cc4a) SHA1(39576c4e48fd7ac52fc652a1ae0573db3d878878) )
  1050: 	ROM_LOAD( "3.pr",    0x0500, 0x0100, CRC(28b5ee4c) SHA1(e21b9c38f433dca1e8894619b1d9f0389a81b48a) )
  1051: ROM_END
  1052: 
  1053: ROM_START( oigas )
  1054: 	ROM_REGION( 0x10000*2, REGION_CPU1, 0 )
  1055: 	ROM_LOAD( "rom.7",   0x10000, 0x4000, CRC(e5bc04cc) SHA1(ffbd416313a9e49d2f9a7268d5ef48a8b641e480) )
  1056: 	ROM_CONTINUE(        0x00000, 0x4000)
  1057: 	ROM_LOAD( "rom.8",   0x04000, 0x8000, CRC(c199060d) SHA1(de8f1e0f941533abbbed25b595b1d51fadbb428d) )
  1058: 
  1059: 	ROM_REGION( 0x0800, REGION_CPU2, 0 )
  1060: 	ROM_LOAD( "8748.bin",		0x0000, 0x0800, NO_DUMP )	/* missing */
  1061: 
  1062: 	ROM_REGION( 0xc000, REGION_GFX1, ROMREGION_DISPOSE ) /* GFX */
  1063: 	ROM_LOAD( "g-4",     0x00000, 0x04000, CRC(8ed78981) SHA1(1f2c0584fcc6d04b042638c7b9a7e21fc560ca3d) )
  1064: 	ROM_LOAD( "g-5",     0x04000, 0x04000, CRC(0645ec2d) SHA1(ecf8b1ce98f845b5b32e7fc959cea7679a149d74) )
  1065: 	ROM_LOAD( "g-6",     0x08000, 0x04000, CRC(99e9cb27) SHA1(d141d6caa077e3cd182eb64cf803613ac17e7d09) )
  1066: 
  1067: 	ROM_REGION( 0xc000, REGION_GFX2, ROMREGION_DISPOSE ) /* GFX */
  1068: 	ROM_LOAD( "g-1",     0x00000, 0x04000, CRC(d78fae6e) SHA1(a7bf3b213f2a3a51b964959bd45003351670575a) )
  1069: 	ROM_LOAD( "g-3",     0x04000, 0x04000, CRC(37df4a4c) SHA1(ab996db636d89845474529ba2573307046fb96ee) )
  1070: 	ROM_LOAD( "g-2",     0x08000, 0x04000, CRC(3a46e354) SHA1(ebd6a5db4c9cdfc6fabe6b412a704aaf03c32d7c) )
  1071: 
  1072: 	ROM_REGION( 0x0600, REGION_PROMS, 0 )
  1073: 	ROM_LOAD( "1.pr",    0x0000, 0x0100, CRC(a784e71f) SHA1(1741ce98d719bad6cc5ea42337ef897f2435bbab) )
  1074: 	ROM_LOAD( "6.pr",    0x0100, 0x0100, CRC(376df30c) SHA1(cc95920cd1c133da1becc7d92f4b187b56a90ec7) )
  1075: 	ROM_LOAD( "5.pr",    0x0200, 0x0100, CRC(4edff5bd) SHA1(305efc7ad7f86635489a655e214e216ac02b904d) )
  1076: 	ROM_LOAD( "4.pr",    0x0300, 0x0100, CRC(fe201a4e) SHA1(15f8ecfcf6c63ffbf9777bec9b203c319ba1b96c) )
  1077: 	ROM_LOAD( "2.pr",    0x0400, 0x0100, CRC(5796cc4a) SHA1(39576c4e48fd7ac52fc652a1ae0573db3d878878) )
  1078: 	ROM_LOAD( "3.pr",    0x0500, 0x0100, CRC(28b5ee4c) SHA1(e21b9c38f433dca1e8894619b1d9f0389a81b48a) )
  1079: ROM_END
  1080: 
  1081: static DRIVER_INIT(gigas)
  1082: {
  1083: 	unsigned char *rom = memory_region(REGION_CPU1);
  1084: 	int diff = memory_region_length(REGION_CPU1) / 2;
  1085: 	memory_set_opcode_base(0,rom+diff);
  1086: }
  1087: 
  1088: GAMEX(1986, gigasb,   0,        gigas,    gigas,    gigas, ROT270, "bootleg", "Gigas (bootleg)", GAME_NO_COCKTAIL )
  1089: GAMEX(1986, oigas,    gigasb,   oigas,    gigas,    gigas, ROT270, "bootleg", "Oigas (bootleg)", GAME_NO_COCKTAIL )
  1090: GAMEX(1986, gigasm2b, 0,        gigas,    gigasm2,  gigas, ROT270, "bootleg", "Gigas Mark II (bootleg)", GAME_NO_COCKTAIL )
  1091: GAME( 1987, pbillrd,  0,        pbillrd,  pbillrd,  0,     ROT0,   "Nihon System", "Perfect Billiard" )
  1092: GAMEX(1987, pbillrds, pbillrd,  pbillrd,  pbillrd,  0,     ROT0,   "Nihon System", "Perfect Billiard (Sega)", GAME_UNEMULATED_PROTECTION )	// encrypted
  1093: GAMEX(1987, freekick, 0,        freekckb, freekckb, 0,     ROT270, "Nihon System (Sega license)", "Free Kick", GAME_NOT_WORKING )
  1094: GAME( 1987, freekckb, freekick, freekckb, freekckb, 0,     ROT270, "bootleg", "Free Kick (bootleg)" )
  1095: GAMEX(198?, countrun, 0,        freekckb, freekckb, 0,     ROT0,   "Nihon System (Sega license)", "Counter Run", GAME_NOT_WORKING )
  1096: GAMEX(198?, countrnb, countrun, freekckb, freekckb, 0,     ROT0,   "bootleg", "Counter Run (bootleg)", GAME_NOT_WORKING )
  1097: 




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