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 : Super Poker : VM Driver Source

Source Listing


     1: /***************************************************************************
     2: 
     3: 	Pocket Gal						(c) 1987 Data East Corporation
     4: 	Pocket Gal (Bootleg)			(c) 1989 Yada East Corporation(!!!)
     5: 	Super Pool III					(c) 1989 Data East Corporation
     6: 	Pocket Gal 2					(c) 1989 Data East Corporation
     7: 	Super Pool III (I-Vics Inc)		(c) 1990 Data East Corporation
     8: 
     9: 	Pocket Gal (Bootleg) is often called 'Sexy Billiards'
    10: 
    11: 	Emulation by Bryan McPhail, mish@tendril.co.uk
    12: 
    13: ***************************************************************************/
    14: 
    15: #include "driver.h" 
    16: #include "vidhrdw/generic.h" 
    17: #include "cpu/m6502/m6502.h" 
    18: 
    19: extern WRITE_HANDLER( pcktgal_videoram_w );
    20: extern WRITE_HANDLER( pcktgal_flipscreen_w );
    21: 
    22: extern PALETTE_INIT( pcktgal );
    23: extern VIDEO_START( pcktgal );
    24: extern VIDEO_UPDATE( pcktgal );
    25: 
    26: /***************************************************************************/
    27: 
    28: static WRITE_HANDLER( pcktgal_bank_w )
    29: {
    30: 	unsigned char *RAM = memory_region(REGION_CPU1);
    31: 
    32: 	if (data & 1) { cpu_setbank(1,&RAM[0x4000]); }
    33: 	else { cpu_setbank(1,&RAM[0x10000]); }
    34: 
    35: 	if (data & 2) { cpu_setbank(2,&RAM[0x6000]); }
    36: 	else { cpu_setbank(2,&RAM[0x12000]); }
    37: }
    38: 
    39: static WRITE_HANDLER( pcktgal_sound_bank_w )
    40: {
    41: 	unsigned char *RAM = memory_region(REGION_CPU2);
    42: 
    43: 	if (data & 4) { cpu_setbank(3,&RAM[0x14000]); }
    44: 	else { cpu_setbank(3,&RAM[0x10000]); }
    45: }
    46: 
    47: static WRITE_HANDLER( pcktgal_sound_w )
    48: {
    49: 	soundlatch_w(0,data);
    50: 	cpu_set_irq_line(1,IRQ_LINE_NMI,PULSE_LINE);
    51: }
    52: 
    53: static int msm5205next;
    54: 
    55: static void pcktgal_adpcm_int(int data)
    56: {
    57: 	static int toggle;
    58: 
    59: 	MSM5205_data_w(0,msm5205next >> 4);
    60: 	msm5205next<<=4;
    61: 
    62: 	toggle = 1 - toggle;
    63: 	if (toggle)
    64: 		cpu_set_irq_line(1,M6502_IRQ_LINE,HOLD_LINE);
    65: }
    66: 
    67: static WRITE_HANDLER( pcktgal_adpcm_data_w )
    68: {
    69: 	msm5205next=data;
    70: }
    71: 
    72: static READ_HANDLER( pcktgal_adpcm_reset_r )
    73: {
    74: 	MSM5205_reset_w(0,0);
    75: 	return 0;
    76: }
    77: 
    78: /***************************************************************************/
    79: 
    80: static MEMORY_READ_START( readmem )
    81: 	{ 0x0000, 0x07ff, MRA_RAM },
    82: 	{ 0x1800, 0x1800, input_port_0_r },
    83: 	{ 0x1a00, 0x1a00, input_port_1_r },
    84: 	{ 0x1c00, 0x1c00, input_port_2_r },
    85: 	{ 0x4000, 0x5fff, MRA_BANK1 },
    86: 	{ 0x6000, 0x7fff, MRA_BANK2 },
    87: 	{ 0x8000, 0xffff, MRA_ROM },
    88: MEMORY_END
    89: 
    90: static MEMORY_WRITE_START( writemem )
    91: 	{ 0x0000, 0x07ff, MWA_RAM },
    92: 	{ 0x0800, 0x0fff, pcktgal_videoram_w, &videoram },
    93: 	{ 0x1000, 0x11ff, MWA_RAM, &spriteram, &spriteram_size },
    94: 	{ 0x1801, 0x1801, pcktgal_flipscreen_w },
    95: 	/* 1800 - 0x181f are unused BAC-06 registers, see vidhrdw/dec0.c */
    96: 	{ 0x1a00, 0x1a00, pcktgal_sound_w },
    97: 	{ 0x1c00, 0x1c00, pcktgal_bank_w },
    98: 	{ 0x4000, 0xffff, MWA_ROM },
    99: MEMORY_END
   100: 
   101: /***************************************************************************/
   102: 
   103: static MEMORY_READ_START( sound_readmem )
   104: 	{ 0x0000, 0x07ff, MRA_RAM },
   105: 	{ 0x3000, 0x3000, soundlatch_r },
   106: 	{ 0x3400, 0x3400, pcktgal_adpcm_reset_r },	/* ? not sure */
   107: 	{ 0x4000, 0x7fff, MRA_BANK3 },
   108: 	{ 0x8000, 0xffff, MRA_ROM },
   109: MEMORY_END
   110: 
   111: static MEMORY_WRITE_START( sound_writemem )
   112: 	{ 0x0000, 0x07ff, MWA_RAM },
   113: 	{ 0x0800, 0x0800, YM2203_control_port_0_w },
   114: 	{ 0x0801, 0x0801, YM2203_write_port_0_w },
   115: 	{ 0x1000, 0x1000, YM3812_control_port_0_w },
   116: 	{ 0x1001, 0x1001, YM3812_write_port_0_w },
   117: 	{ 0x1800, 0x1800, pcktgal_adpcm_data_w },	/* ADPCM data for the MSM5205 chip */
   118: 	{ 0x2000, 0x2000, pcktgal_sound_bank_w },
   119: 	{ 0x4000, 0xffff, MWA_ROM },
   120: MEMORY_END
   121: 
   122: /***************************************************************************/
   123: 
   124: INPUT_PORTS_START( pcktgal )
   125: 	PORT_START
   126: 	PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_8WAY )
   127: 	PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT | IPF_8WAY )
   128: 	PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN | IPF_8WAY )
   129: 	PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP | IPF_8WAY )
   130: 	PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 )
   131: 	PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 )
   132: 	PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 )
   133: 	PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 )
   134: 
   135: 	PORT_START
   136: 	PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_8WAY | IPF_PLAYER2 )
   137: 	PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT | IPF_8WAY | IPF_PLAYER2 )
   138: 	PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN | IPF_8WAY | IPF_PLAYER2 )
   139: 	PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP | IPF_8WAY | IPF_PLAYER2 )
   140: 	PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN1 )
   141: 	PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN2 )
   142: 	PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 | IPF_PLAYER2 )
   143: 	PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 | IPF_PLAYER2 )
   144: 
   145: 	PORT_START	/* Dip switch */
   146: 	PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) )
   147: 	PORT_DIPSETTING(	0x00, DEF_STR( 2C_1C ) )
   148: 	PORT_DIPSETTING(	0x03, DEF_STR( 1C_1C ) )
   149: 	PORT_DIPSETTING(	0x02, DEF_STR( 1C_2C ) )
   150: 	PORT_DIPSETTING(	0x01, DEF_STR( 1C_3C ) )
   151:  	PORT_DIPNAME( 0x04, 0x04, DEF_STR( Flip_Screen ) )
   152: 	PORT_DIPSETTING(	0x04, DEF_STR( Off ) )
   153: 	PORT_DIPSETTING(	0x00, DEF_STR( On ) )
   154:  	PORT_DIPNAME( 0x08, 0x08, "Allow 2 Players Game" )
   155: 	PORT_DIPSETTING(	0x00, DEF_STR( No ) )
   156: 	PORT_DIPSETTING(	0x08, DEF_STR( Yes ) )
   157:  	PORT_DIPNAME( 0x10, 0x10, DEF_STR( Demo_Sounds ) )
   158: 	PORT_DIPSETTING(	0x00, DEF_STR( Off ) )
   159: 	PORT_DIPSETTING(	0x10, DEF_STR( On ) )
   160:  	PORT_DIPNAME( 0x20, 0x20, "Time" )
   161: 	PORT_DIPSETTING(	0x00, "100" )
   162: 	PORT_DIPSETTING(	0x20, "120" )
   163: 	PORT_DIPNAME( 0x40, 0x00, DEF_STR( Lives ) )
   164: 	PORT_DIPSETTING(	0x00, "3" )
   165: 	PORT_DIPSETTING(	0x40, "4" )
   166: 	PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
   167: 	PORT_DIPSETTING(	0x80, DEF_STR( Off ) )
   168: 	PORT_DIPSETTING(	0x00, DEF_STR( On ) )
   169: INPUT_PORTS_END
   170: 
   171: /***************************************************************************/
   172: 
   173: static struct GfxLayout charlayout =
   174: {
   175: 	8,8,	/* 8*8 characters */
   176: 	4096,
   177: 	4,
   178: 	{ 0x10000*8, 0, 0x18000*8, 0x8000*8 },
   179: 	{ 0, 1, 2, 3, 4, 5, 6, 7 },
   180: 	{ 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 },
   181: 	8*8	 /* every char takes 8 consecutive bytes */
   182: };
   183: 
   184: static struct GfxLayout bootleg_charlayout =
   185: {
   186: 	8,8,	/* 8*8 characters */
   187: 	4096,
   188: 	4,
   189: 	{ 0x18000*8, 0x8000*8, 0x10000*8, 0 },
   190: 	{ 0, 1, 2, 3, 4, 5, 6, 7 },
   191: 	{ 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 },
   192: 	8*8	 /* every char takes 8 consecutive bytes */
   193: };
   194: 
   195: static struct GfxLayout spritelayout =
   196: {
   197: 	16,16,  /* 16*16 sprites */
   198: 	1024,   /* 1024 sprites */
   199: 	2,	  /* 2 bits per pixel */
   200: 	{ 0x8000*8, 0 },
   201: 	{ 128+0, 128+1, 128+2, 128+3, 128+4, 128+5, 128+6, 128+7, 0, 1, 2, 3, 4, 5, 6, 7 },
   202: 	{ 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8, 8*8, 9*8, 10*8, 11*8, 12*8, 13*8, 14*8, 15*8 },
   203: 	32*8	/* every char takes 8 consecutive bytes */
   204: };
   205: 
   206: static struct GfxLayout bootleg_spritelayout =
   207: {
   208: 	16,16,  /* 16*16 sprites */
   209: 	1024,   /* 1024 sprites */
   210: 	2,	  /* 2 bits per pixel */
   211: 	{ 0x8000*8, 0 },
   212: 	{ 128+7, 128+6, 128+5, 128+4, 128+3, 128+2, 128+1, 128+0, 7, 6, 5, 4, 3, 2, 1, 0,  },
   213: 	{ 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8, 8*8, 9*8, 10*8, 11*8, 12*8, 13*8, 14*8, 15*8 },
   214: 	32*8	/* every char takes 8 consecutive bytes */
   215: };
   216: 
   217: static struct GfxDecodeInfo gfxdecodeinfo[] =
   218: {
   219: 	{ REGION_GFX1, 0x00000, &charlayout,   256, 16 }, /* chars */
   220: 	{ REGION_GFX2, 0x00000, &spritelayout,   0,  8 }, /* sprites */
   221: 	{ -1 } /* end of array */
   222: };
   223: 
   224: static struct GfxDecodeInfo bootleg_gfxdecodeinfo[] =
   225: {
   226: 	{ REGION_GFX1, 0x00000, &bootleg_charlayout,   256, 16 }, /* chars */
   227: 	{ REGION_GFX2, 0x00000, &bootleg_spritelayout,   0,  8 }, /* sprites */
   228: 	{ -1 } /* end of array */
   229: };
   230: 
   231: /***************************************************************************/
   232: 
   233: static struct YM2203interface ym2203_interface =
   234: {
   235: 	1,	  /* 1 chip */
   236: 	1500000,		/* 1.5 MHz */
   237: 	{ YM2203_VOL(60,60) },
   238: 	{ 0 },
   239: 	{ 0 },
   240: 	{ 0 },
   241: 	{ 0 }
   242: };
   243: 
   244: static struct YM3812interface ym3812_interface =
   245: {
   246: 	1,			/* 1 chip (no more supported) */
   247: 	3000000,	/* 3 MHz */
   248: 	{ 100 }
   249: };
   250: 
   251: static struct MSM5205interface msm5205_interface =
   252: {
   253: 	1,					/* 1 chip			 */
   254: 	384000,				/* 384KHz			 */
   255: 	{ pcktgal_adpcm_int },/* interrupt function */
   256: 	{ MSM5205_S48_4B},	/* 8KHz			   */
   257: 	{ 70 }
   258: };
   259: 
   260: /***************************************************************************/
   261: 
   262: static MACHINE_DRIVER_START( pcktgal )
   263: 
   264: 	/* basic machine hardware */
   265: 	MDRV_CPU_ADD(M6502, 2000000)
   266: 	MDRV_CPU_MEMORY(readmem,writemem)
   267: 	MDRV_CPU_VBLANK_INT(nmi_line_pulse,1)
   268: 
   269: 	MDRV_CPU_ADD(M6502, 1500000)
   270: 	MDRV_CPU_FLAGS(CPU_AUDIO_CPU)
   271: 	MDRV_CPU_MEMORY(sound_readmem,sound_writemem)
   272: 							/* IRQs are caused by the ADPCM chip */
   273: 							/* NMIs are caused by the main CPU */
   274: 	MDRV_FRAMES_PER_SECOND(60)
   275: 	MDRV_VBLANK_DURATION(DEFAULT_60HZ_VBLANK_DURATION)
   276: 
   277: 	/* video hardware */
   278: 	MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER)
   279: 	MDRV_SCREEN_SIZE(32*8, 32*8)
   280: 	MDRV_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1)
   281: 	MDRV_GFXDECODE(gfxdecodeinfo)
   282: 	MDRV_PALETTE_LENGTH(512)
   283: 
   284: 	MDRV_PALETTE_INIT(pcktgal)
   285: 	MDRV_VIDEO_START(pcktgal)
   286: 	MDRV_VIDEO_UPDATE(pcktgal)
   287: 
   288: 	/* sound hardware */
   289: 	MDRV_SOUND_ADD(YM2203, ym2203_interface)
   290: 	MDRV_SOUND_ADD(YM3812, ym3812_interface)
   291: 	MDRV_SOUND_ADD(MSM5205, msm5205_interface)
   292: MACHINE_DRIVER_END
   293: 
   294: 
   295: static MACHINE_DRIVER_START( bootleg )
   296: 	MDRV_IMPORT_FROM(pcktgal)
   297: 	MDRV_GFXDECODE(bootleg_gfxdecodeinfo)
   298: MACHINE_DRIVER_END
   299: 
   300: /***************************************************************************/
   301: 
   302: ROM_START( pcktgal )
   303: 	ROM_REGION( 0x14000, REGION_CPU1, 0 )	 /* 64k for code + 16k for banks */
   304: 	ROM_LOAD( "eb04.rom",	   0x10000, 0x4000, CRC(8215d60d) SHA1(ac26dfce7e215be21f2a17f864c5e966b8b8322e) )
   305: 	ROM_CONTINUE(			   0x04000, 0xc000)
   306: 	/* 4000-7fff is banked but code falls through from 7fff to 8000, so */
   307: 	/* I have to load the bank directly at 4000. */
   308: 
   309: 	ROM_REGION( 2*0x18000, REGION_CPU2, 0 )	 /* 96k for code + 96k for decrypted opcodes */
   310: 	ROM_LOAD( "eb03.rom",	   0x10000, 0x8000, CRC(cb029b02) SHA1(fbb3da08ed05ae73fbeeb13e0e2ff735aaf83db8) )
   311: 	ROM_CONTINUE(			   0x08000, 0x8000 )
   312: 
   313: 	ROM_REGION( 0x20000, REGION_GFX1, ROMREGION_DISPOSE )
   314: 	ROM_LOAD( "eb01.rom",	   0x00000, 0x10000, CRC(63542c3d) SHA1(4f42af99a6d9d4766afe0bebe10d6a97811a0082) )
   315: 	ROM_LOAD( "eb02.rom",	   0x10000, 0x10000, CRC(a9dcd339) SHA1(245824ab86cdfe4b842ce1be0af60f2ff4c6ae07) )
   316: 
   317: 	ROM_REGION( 0x10000, REGION_GFX2, ROMREGION_DISPOSE )
   318: 	ROM_LOAD( "eb00.rom",	   0x00000, 0x10000, CRC(6c1a14a8) SHA1(03201197304c5f1d854b8c4f4a5c78336b51f872) )
   319: 
   320: 	ROM_REGION( 0x0400, REGION_PROMS, 0 )
   321: 	ROM_LOAD( "eb05.rom",     0x0000, 0x0200, CRC(3b6198cb) SHA1(d32b364cfce99637998ca83ad21783f80364dd65) ) /* 82s147.084 */
   322: 	ROM_LOAD( "eb06.rom",     0x0200, 0x0200, CRC(1fbd4b59) SHA1(84e20329003cf09b849b49e1d83edc330d49f404) ) /* 82s131.101 */
   323: ROM_END
   324: 
   325: ROM_START( pcktgalb )
   326: 	ROM_REGION( 0x14000, REGION_CPU1, 0 )	 /* 64k for code + 16k for banks */
   327: 	ROM_LOAD( "sexybill.001", 0x10000, 0x4000, CRC(4acb3e84) SHA1(c83d03969587c6be80fb8fc84afe250907674a44) )
   328: 	ROM_CONTINUE(			  0x04000, 0xc000)
   329: 	/* 4000-7fff is banked but code falls through from 7fff to 8000, so */
   330: 	/* I have to load the bank directly at 4000. */
   331: 
   332: 	ROM_REGION( 2*0x18000, REGION_CPU2, 0 )	 /* 96k for code + 96k for decrypted opcodes */
   333: 	ROM_LOAD( "eb03.rom",	  0x10000, 0x8000, CRC(cb029b02) SHA1(fbb3da08ed05ae73fbeeb13e0e2ff735aaf83db8) )
   334: 	ROM_CONTINUE(			  0x08000, 0x8000 )
   335: 
   336: 	ROM_REGION( 0x20000, REGION_GFX1, ROMREGION_DISPOSE )
   337: 	ROM_LOAD( "sexybill.005", 0x00000, 0x10000, CRC(3128dc7b) SHA1(d011181e544b8284ecdf54578da5469804e06c63) )
   338: 	ROM_LOAD( "sexybill.006", 0x10000, 0x10000, CRC(0fc91eeb) SHA1(9d9a54c8dd41c10d07aabb6a2d8dbaf35c6e4533) )
   339: 
   340: 	ROM_REGION( 0x10000, REGION_GFX2, ROMREGION_DISPOSE )
   341: 	ROM_LOAD( "sexybill.003", 0x00000, 0x08000, CRC(58182daa) SHA1(55ce4b0ea2cb1c559c12815c9e453624e0d95515) )
   342: 	ROM_LOAD( "sexybill.004", 0x08000, 0x08000, CRC(33a67af6) SHA1(6d9c04658ed75b970821a5c8b1f60c3c08fdda0a) )
   343: 
   344: 	ROM_REGION( 0x0400, REGION_PROMS, 0 )
   345: 	ROM_LOAD( "eb05.rom",     0x0000, 0x0200, CRC(3b6198cb) SHA1(d32b364cfce99637998ca83ad21783f80364dd65) ) /* 82s147.084 */
   346: 	ROM_LOAD( "eb06.rom",     0x0200, 0x0200, CRC(1fbd4b59) SHA1(84e20329003cf09b849b49e1d83edc330d49f404) ) /* 82s131.101 */
   347: ROM_END
   348: 
   349: ROM_START( pcktgal2 )
   350: 	ROM_REGION( 0x14000, REGION_CPU1, 0 )	 /* 64k for code + 16k for banks */
   351: 	ROM_LOAD( "eb04-2.rom",   0x10000, 0x4000, CRC(0c7f2905) SHA1(882dbc1888a0149486c1fac5568dc3d297c2dadd) )
   352: 	ROM_CONTINUE(			  0x04000, 0xc000)
   353: 	/* 4000-7fff is banked but code falls through from 7fff to 8000, so */
   354: 	/* I have to load the bank directly at 4000. */
   355: 
   356: 	ROM_REGION( 0x18000, REGION_CPU2, 0 )	 /* audio cpu */
   357: 	ROM_LOAD( "eb03-2.rom",   0x10000, 0x8000, CRC(9408ffb4) SHA1(ddcb67da4acf3d986d54ad10404f213528a8bb62) )
   358: 	ROM_CONTINUE(			  0x08000, 0x8000)
   359: 
   360: 	ROM_REGION( 0x20000, REGION_GFX1, ROMREGION_DISPOSE )
   361: 	ROM_LOAD( "eb01-2.rom",   0x00000, 0x10000, CRC(e52b1f97) SHA1(4814fe3b2eb08ac173e09ffadc6e5daa9affa1a0) )
   362: 	ROM_LOAD( "eb02-2.rom",   0x10000, 0x10000, CRC(f30d965d) SHA1(a787457b33ad39e78fcf8da0715fab7a63869bf9) )
   363: 
   364: 	ROM_REGION( 0x10000, REGION_GFX2, ROMREGION_DISPOSE )
   365: 	ROM_LOAD( "eb00.rom",	  0x00000, 0x10000, CRC(6c1a14a8) SHA1(03201197304c5f1d854b8c4f4a5c78336b51f872) )
   366: 
   367: 	ROM_REGION( 0x0400, REGION_PROMS, 0 )
   368: 	ROM_LOAD( "eb05.rom",     0x0000, 0x0200, CRC(3b6198cb) SHA1(d32b364cfce99637998ca83ad21783f80364dd65) ) /* 82s147.084 */
   369: 	ROM_LOAD( "eb06.rom",     0x0200, 0x0200, CRC(1fbd4b59) SHA1(84e20329003cf09b849b49e1d83edc330d49f404) ) /* 82s131.101 */
   370: ROM_END
   371: 
   372: ROM_START( spool3 )
   373: 	ROM_REGION( 0x14000, REGION_CPU1, 0 )	 /* 64k for code + 16k for banks */
   374: 	ROM_LOAD( "eb04-2.rom",   0x10000, 0x4000, CRC(0c7f2905) SHA1(882dbc1888a0149486c1fac5568dc3d297c2dadd) )
   375: 	ROM_CONTINUE(			  0x04000, 0xc000)
   376: 	/* 4000-7fff is banked but code falls through from 7fff to 8000, so */
   377: 	/* I have to load the bank directly at 4000. */
   378: 
   379: 	ROM_REGION( 0x18000, REGION_CPU2, 0 )	 /* audio cpu */
   380: 	ROM_LOAD( "eb03-2.rom",   0x10000, 0x8000, CRC(9408ffb4) SHA1(ddcb67da4acf3d986d54ad10404f213528a8bb62) )
   381: 	ROM_CONTINUE(			  0x08000, 0x8000)
   382: 
   383: 	ROM_REGION( 0x20000, REGION_GFX1, ROMREGION_DISPOSE )
   384: 	ROM_LOAD( "deco2.bin",	  0x00000, 0x10000, CRC(0a23f0cf) SHA1(8554215001ffc9e6f141e57cc11b400a853f89f2) )
   385: 	ROM_LOAD( "deco3.bin",	  0x10000, 0x10000, CRC(55ea7c45) SHA1(a8a6ff0c8a5aaee3afbfc3e71a171fb1d2360b45) )
   386: 
   387: 	ROM_REGION( 0x10000, REGION_GFX2, ROMREGION_DISPOSE )
   388: 	ROM_LOAD( "eb00.rom",	  0x00000, 0x10000, CRC(6c1a14a8) SHA1(03201197304c5f1d854b8c4f4a5c78336b51f872) )
   389: 
   390: 	ROM_REGION( 0x0400, REGION_PROMS, 0 )
   391: 	ROM_LOAD( "eb05.rom",     0x0000, 0x0200, CRC(3b6198cb) SHA1(d32b364cfce99637998ca83ad21783f80364dd65) ) /* 82s147.084 */
   392: 	ROM_LOAD( "eb06.rom",     0x0200, 0x0200, CRC(1fbd4b59) SHA1(84e20329003cf09b849b49e1d83edc330d49f404) ) /* 82s131.101 */
   393: ROM_END
   394: 
   395: ROM_START( spool3i )
   396: 	ROM_REGION( 0x14000, REGION_CPU1, 0 )	 /* 64k for code + 16k for banks */
   397: 	ROM_LOAD( "de1.bin",	  0x10000, 0x4000, CRC(a59980fe) SHA1(64b55af4d0b314d14184784e9f817b56be0f24f2) )
   398: 	ROM_CONTINUE(			  0x04000, 0xc000)
   399: 	/* 4000-7fff is banked but code falls through from 7fff to 8000, so */
   400: 	/* I have to load the bank directly at 4000. */
   401: 
   402: 	ROM_REGION( 0x18000, REGION_CPU2, 0 )	 /* audio cpu */
   403: 	ROM_LOAD( "eb03-2.rom",   0x10000, 0x8000, CRC(9408ffb4) SHA1(ddcb67da4acf3d986d54ad10404f213528a8bb62) )
   404: 	ROM_CONTINUE(			  0x08000, 0x8000)
   405: 
   406: 	ROM_REGION( 0x20000, REGION_GFX1, ROMREGION_DISPOSE )
   407: 	ROM_LOAD( "deco2.bin",	  0x00000, 0x10000, CRC(0a23f0cf) SHA1(8554215001ffc9e6f141e57cc11b400a853f89f2) )
   408: 	ROM_LOAD( "deco3.bin",	  0x10000, 0x10000, CRC(55ea7c45) SHA1(a8a6ff0c8a5aaee3afbfc3e71a171fb1d2360b45) )
   409: 
   410: 	ROM_REGION( 0x10000, REGION_GFX2, ROMREGION_DISPOSE )
   411: 	ROM_LOAD( "eb00.rom",	  0x00000, 0x10000, CRC(6c1a14a8) SHA1(03201197304c5f1d854b8c4f4a5c78336b51f872) )
   412: 
   413: 	ROM_REGION( 0x0400, REGION_PROMS, 0 )
   414: 	ROM_LOAD( "eb05.rom",     0x0000, 0x0200, CRC(3b6198cb) SHA1(d32b364cfce99637998ca83ad21783f80364dd65) ) /* 82s147.084 */
   415: 	ROM_LOAD( "eb06.rom",     0x0200, 0x0200, CRC(1fbd4b59) SHA1(84e20329003cf09b849b49e1d83edc330d49f404) ) /* 82s131.101 */
   416: ROM_END
   417: 
   418: /***************************************************************************/
   419: 
   420: static DRIVER_INIT( deco222 )
   421: {
   422: 	int A;
   423: 	unsigned char *rom = memory_region(REGION_CPU2);
   424: 	int diff = memory_region_length(REGION_CPU2) / 2;
   425: 
   426: 
   427: 	memory_set_opcode_base(1,rom+diff);
   428: 
   429: 	/* bits 5 and 6 of the opcodes are swapped */
   430: 	for (A = 0;A < diff;A++)
   431: 		rom[A + diff] = (rom[A] & 0x9f) | ((rom[A] & 0x20) << 1) | ((rom[A] & 0x40) >> 1);
   432: }
   433: 
   434: static DRIVER_INIT( graphics )
   435: {
   436: 	unsigned char *rom = memory_region(REGION_GFX1);
   437: 	int len = memory_region_length(REGION_GFX1);
   438: 	int i,j,temp[16];
   439: 
   440: 	/* Tile graphics roms have some swapped lines, original version only */
   441: 	for (i = 0x00000;i < len;i += 32)
   442: 	{
   443: 		for (j=0; j<16; j++)
   444: 		{
   445: 			temp[j] = rom[i+j+16];
   446: 			rom[i+j+16] = rom[i+j];
   447: 			rom[i+j] = temp[j];
   448: 		}
   449: 	}
   450: }
   451: 
   452: static DRIVER_INIT( pcktgal )
   453: {
   454: 	init_deco222();
   455: 	init_graphics();
   456: }
   457: 
   458: /***************************************************************************/
   459: 
   460: GAME( 1987, pcktgal,  0,       pcktgal, pcktgal, pcktgal,  ROT0, "Data East Corporation", "Pocket Gal (Japan)" )
   461: GAME( 1987, pcktgalb, pcktgal, bootleg, pcktgal, deco222,  ROT0, "bootleg", "Pocket Gal (bootleg)" )
   462: GAME( 1989, pcktgal2, pcktgal, pcktgal, pcktgal, graphics, ROT0, "Data East Corporation", "Pocket Gal 2 (World?)" )
   463: GAME( 1989, spool3,   pcktgal, pcktgal, pcktgal, graphics, ROT0, "Data East Corporation", "Super Pool III (World?)" )
   464: GAME( 1990, spool3i,  pcktgal, pcktgal, pcktgal, graphics, ROT0, "Data East Corporation (I-Vics license)", "Super Pool III (I-Vics)" )
   465: 




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