1 #include "../vidhrdw/gbusters.c"
2 
3 /***************************************************************************
4 
5 Gangbusters(GX878) (c) 1988 Konami
6 
7 Preliminary driver by:
8 	Manuel Abadia <manu@teleline.es>
9 
10 ***************************************************************************/
11 
12 #include "driver.h"
13 #include "vidhrdw/generic.h"
14 #include "cpu/konami/konami.h" /* for the callback and the firq irq definition */
15 #include "vidhrdw/konamiic.h"
16 
17 /* prototypes */
18 static void gbusters_init_machine( void );
19 static void gbusters_banking( int lines );
20 
21 
22 extern int gbusters_priority;
23 
24 void gbusters_vh_stop( void );
25 int gbusters_vh_start( void );
26 void gbusters_vh_screenrefresh(struct osd_bitmap *bitmap,int full_refresh);
27 
28 static int palette_selected;
29 static unsigned char *ram;
30 
gbusters_interrupt(void)31 static int gbusters_interrupt( void )
32 {
33 	if (K052109_is_IRQ_enabled())
34 		return KONAMI_INT_IRQ;
35 	else
36 		return ignore_interrupt();
37 }
38 
READ_HANDLER(bankedram_r)39 static READ_HANDLER( bankedram_r )
40 {
41 	if (palette_selected)
42 		return paletteram_r(offset);
43 	else
44 		return ram[offset];
45 }
46 
WRITE_HANDLER(bankedram_w)47 static WRITE_HANDLER( bankedram_w )
48 {
49 	if (palette_selected)
50 		paletteram_xBBBBBGGGGGRRRRR_swap_w(offset,data);
51 	else
52 		ram[offset] = data;
53 }
54 
WRITE_HANDLER(gbusters_1f98_w)55 static WRITE_HANDLER( gbusters_1f98_w )
56 {
57 
58 	/* bit 0 = enable char ROM reading through the video RAM */
59 	K052109_set_RMRD_line((data & 0x01) ? ASSERT_LINE : CLEAR_LINE);
60 
61 	/* bit 7 used (during gfx rom tests), but unknown */
62 
63 	/* other bits unused/unknown */
64 	//if (data & 0xfe){
65 		//logerror("%04x: (1f98) write %02x\n",cpu_get_pc(), data);
66 		//usrintf_showmessage("$1f98 = %02x", data);
67 	//}
68 }
69 
WRITE_HANDLER(gbusters_coin_counter_w)70 static WRITE_HANDLER( gbusters_coin_counter_w )
71 {
72 	/* bit 0 select palette RAM  or work RAM at 5800-5fff */
73 	palette_selected = ~data & 0x01;
74 
75 	/* bits 1 & 2 = coin counters */
76 	coin_counter_w(0,data & 0x02);
77 	coin_counter_w(1,data & 0x04);
78 
79 	/* bits 3 selects tilemap priority */
80 	gbusters_priority = data & 0x08;
81 
82 	/* bit 7 is used but unknown */
83 
84 	/* other bits unused/unknown */
85 	//if (data & 0xf8)
86 	//{
87 	//	char baf[40];
88 	//	logerror("%04x: (ccount) write %02x\n",cpu_get_pc(), data);
89 	//	sprintf(baf,"ccnt = %02x", data);
90 //		usrintf_showmessage(baf);
91 	//}
92 }
93 
WRITE_HANDLER(gbusters_unknown_w)94 static WRITE_HANDLER( gbusters_unknown_w )
95 {
96 	//logerror("%04x: ??? write %02x\n",cpu_get_pc(), data);
97 
98 //{
99 //char baf[40];
100 //	sprintf(baf,"??? = %02x", data);
101 //	usrintf_showmessage(baf);
102 //}
103 }
104 
WRITE_HANDLER(gbusters_sh_irqtrigger_w)105 WRITE_HANDLER( gbusters_sh_irqtrigger_w )
106 {
107 	cpu_cause_interrupt(1,0xff);
108 }
109 
WRITE_HANDLER(gbusters_snd_bankswitch_w)110 static WRITE_HANDLER( gbusters_snd_bankswitch_w )
111 {
112 	unsigned char *RAM = memory_region(REGION_SOUND1);
113 
114 	int bank_B = 0x20000*((data >> 2) & 0x01);	/* ?? */
115 	int bank_A = 0x20000*((data) & 0x01);		/* ?? */
116 
117 	K007232_bankswitch(0,RAM + bank_A,RAM + bank_B);
118 
119 #if 0
120 	{
121 		char baf[40];
122 		sprintf(baf,"snd_bankswitch = %02x", data);
123 		usrintf_showmessage(baf);
124 	}
125 #endif
126 }
127 
128 static struct MemoryReadAddress gbusters_readmem[] =
129 {
130 	{ 0x1f90, 0x1f90, input_port_3_r },		/* coinsw & startsw */
131 	{ 0x1f91, 0x1f91, input_port_4_r },		/* Player 1 inputs */
132 	{ 0x1f92, 0x1f92, input_port_5_r },		/* Player 2 inputs */
133 	{ 0x1f93, 0x1f93, input_port_2_r },		/* DIPSW #3 */
134 	{ 0x1f94, 0x1f94, input_port_0_r },		/* DIPSW #1 */
135 	{ 0x1f95, 0x1f95, input_port_1_r },		/* DIPSW #2 */
136 	{ 0x0000, 0x3fff, K052109_051960_r },	/* tiles + sprites (RAM H21, G21 & H6) */
137 	{ 0x4000, 0x57ff, MRA_RAM },			/* RAM I12 */
138 	{ 0x5800, 0x5fff, bankedram_r },		/* palette + work RAM (RAM D16 & C16) */
139 	{ 0x6000, 0x7fff, MRA_BANK1 },			/* banked ROM */
140 	{ 0x8000, 0xffff, MRA_ROM },			/* ROM 878n02.rom */
141 	{ -1 }	/* end of table */
142 };
143 
144 static struct MemoryWriteAddress gbusters_writemem[] =
145 {
146 	{ 0x1f80, 0x1f80, gbusters_coin_counter_w },	/* coin counters */
147 	{ 0x1f84, 0x1f84, soundlatch_w },				/* sound code # */
148 	{ 0x1f88, 0x1f88, gbusters_sh_irqtrigger_w },	/* cause interrupt on audio CPU */
149 	{ 0x1f8c, 0x1f8c, watchdog_reset_w },			/* watchdog reset */
150 	{ 0x1f98, 0x1f98, gbusters_1f98_w },			/* enable gfx ROM read through VRAM */
151 	{ 0x1f9c, 0x1f9c, gbusters_unknown_w },			/* ??? */
152 	{ 0x0000, 0x3fff, K052109_051960_w },			/* tiles + sprites (RAM H21, G21 & H6) */
153 	{ 0x4000, 0x57ff, MWA_RAM },					/* RAM I12 */
154 	{ 0x5800, 0x5fff, bankedram_w, &ram },			/* palette + work RAM (RAM D16 & C16) */
155 	{ 0x6000, 0x7fff, MWA_ROM },					/* banked ROM */
156 	{ 0x8000, 0xffff, MWA_ROM },					/* ROM 878n02.rom */
157 	{ -1 }	/* end of table */
158 };
159 
160 static struct MemoryReadAddress gbusters_readmem_sound[] =
161 {
162 	{ 0x0000, 0x7fff, MRA_ROM },				/* ROM 878h01.rom */
163 	{ 0x8000, 0x87ff, MRA_RAM },				/* RAM */
164 	{ 0xa000, 0xa000, soundlatch_r },			/* soundlatch_r */
165 	{ 0xb000, 0xb00d, K007232_read_port_0_r },	/* 007232 registers */
166 	{ 0xc001, 0xc001, YM2151_status_port_0_r },	/* YM 2151 */
167 	{ -1 }	/* end of table */
168 };
169 
170 static struct MemoryWriteAddress gbusters_writemem_sound[] =
171 {
172 	{ 0x0000, 0x7fff, MWA_ROM },					/* ROM 878h01.rom */
173 	{ 0x8000, 0x87ff, MWA_RAM },					/* RAM */
174 	{ 0xb000, 0xb00d, K007232_write_port_0_w },		/* 007232 registers */
175 	{ 0xc000, 0xc000, YM2151_register_port_0_w },	/* YM 2151 */
176 	{ 0xc001, 0xc001, YM2151_data_port_0_w },		/* YM 2151 */
177 	{ 0xf000, 0xf000, gbusters_snd_bankswitch_w },	/* 007232 bankswitch? */
178 	{ -1 }	/* end of table */
179 };
180 
181 /***************************************************************************
182 
183 	Input Ports
184 
185 ***************************************************************************/
186 
INPUT_PORTS_START(gbusters)187 INPUT_PORTS_START( gbusters )
188 	PORT_START	/* DSW #1 */
189 	PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) )
190 	PORT_DIPSETTING(    0x02, DEF_STR( 4C_1C ) )
191 	PORT_DIPSETTING(    0x05, DEF_STR( 3C_1C ) )
192 	PORT_DIPSETTING(    0x08, DEF_STR( 2C_1C ) )
193 	PORT_DIPSETTING(    0x04, DEF_STR( 3C_2C ) )
194 	PORT_DIPSETTING(    0x01, DEF_STR( 4C_3C ) )
195 	PORT_DIPSETTING(    0x0f, DEF_STR( 1C_1C ) )
196 	PORT_DIPSETTING(    0x03, DEF_STR( 3C_4C ) )
197 	PORT_DIPSETTING(    0x07, DEF_STR( 2C_3C ) )
198 	PORT_DIPSETTING(    0x0e, DEF_STR( 1C_2C ) )
199 	PORT_DIPSETTING(    0x06, DEF_STR( 2C_5C ) )
200 	PORT_DIPSETTING(    0x0d, DEF_STR( 1C_3C ) )
201 	PORT_DIPSETTING(    0x0c, DEF_STR( 1C_4C ) )
202 	PORT_DIPSETTING(    0x0b, DEF_STR( 1C_5C ) )
203 	PORT_DIPSETTING(    0x0a, DEF_STR( 1C_6C ) )
204 	PORT_DIPSETTING(    0x09, DEF_STR( 1C_7C ) )
205 	PORT_DIPSETTING(    0x00, DEF_STR( Free_Play ) )
206 	PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) )
207 	PORT_DIPSETTING(    0x20, DEF_STR( 4C_1C ) )
208 	PORT_DIPSETTING(    0x50, DEF_STR( 3C_1C ) )
209 	PORT_DIPSETTING(    0x80, DEF_STR( 2C_1C ) )
210 	PORT_DIPSETTING(    0x40, DEF_STR( 3C_2C ) )
211 	PORT_DIPSETTING(    0x10, DEF_STR( 4C_3C ) )
212 	PORT_DIPSETTING(    0xf0, DEF_STR( 1C_1C ) )
213 	PORT_DIPSETTING(    0x30, DEF_STR( 3C_4C ) )
214 	PORT_DIPSETTING(    0x70, DEF_STR( 2C_3C ) )
215 	PORT_DIPSETTING(    0xe0, DEF_STR( 1C_2C ) )
216 	PORT_DIPSETTING(    0x60, DEF_STR( 2C_5C ) )
217 	PORT_DIPSETTING(    0xd0, DEF_STR( 1C_3C ) )
218 	PORT_DIPSETTING(    0xc0, DEF_STR( 1C_4C ) )
219 	PORT_DIPSETTING(    0xb0, DEF_STR( 1C_5C ) )
220 	PORT_DIPSETTING(    0xa0, DEF_STR( 1C_6C ) )
221 	PORT_DIPSETTING(    0x90, DEF_STR( 1C_7C ) )
222 //	PORT_DIPSETTING(    0x00, "Invalid" )
223 
224 	PORT_START	/* DSW #2 */
225 	PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) )
226 	PORT_DIPSETTING(    0x03, "2" )
227 	PORT_DIPSETTING(    0x02, "3" )
228 	PORT_DIPSETTING(    0x01, "5" )
229 	PORT_DIPSETTING(    0x00, "7" )
230 	PORT_DIPNAME( 0x04, 0x04, "Bullets" )
231 	PORT_DIPSETTING(    0x04, "50" )
232 	PORT_DIPSETTING(    0x00, "60" )
233 	PORT_DIPNAME( 0x18, 0x10, DEF_STR( Bonus_Life ) )
234 	PORT_DIPSETTING(    0x18, "50k, 200k & 400k" )
235 	PORT_DIPSETTING(    0x10, "70k, 250k & 500k" )
236 	PORT_DIPSETTING(    0x08, "50k" )
237 	PORT_DIPSETTING(    0x00, "70k" )
238 	PORT_DIPNAME( 0x60, 0x40, DEF_STR( Difficulty ) )
239 	PORT_DIPSETTING(    0x60, "Easy" )
240 	PORT_DIPSETTING(    0x40, "Normal" )
241 	PORT_DIPSETTING(    0x20, "Difficult" )
242 	PORT_DIPSETTING(    0x00, "Very Difficult" )
243 	PORT_DIPNAME( 0x80, 0x00, DEF_STR( Demo_Sounds ) )
244 	PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
245 	PORT_DIPSETTING(    0x00, DEF_STR( On ) )
246 
247 	PORT_START	/* DSW #3 */
248 	PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) )
249 	PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
250 	PORT_DIPSETTING(    0x00, DEF_STR( On ) )
251 	PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) )
252 	PORT_DIPSETTING(    0x02, DEF_STR( Off ) )
253 	PORT_DIPSETTING(    0x00, DEF_STR( On ) )
254 	PORT_SERVICE( 0x04, IP_ACTIVE_LOW )
255 	PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) )
256 	PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
257 	PORT_DIPSETTING(    0x00, DEF_STR( On ) )
258 	PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED )
259 
260 	PORT_START	/* COINSW */
261 	PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
262 	PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
263 	PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN3 )
264 	PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START1 )
265 	PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START2 )
266 	PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
267 	PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED )
268 	PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED )
269 
270 	PORT_START	/* PLAYER 1 INPUTS */
271 	PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  | IPF_8WAY | IPF_PLAYER1 )
272 	PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_8WAY | IPF_PLAYER1 )
273 	PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    | IPF_8WAY | IPF_PLAYER1 )
274 	PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN  | IPF_8WAY | IPF_PLAYER1 )
275 	PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 | IPF_PLAYER1 )
276 	PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 | IPF_PLAYER1 )
277 	PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED )
278 	PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED )
279 
280 	PORT_START	/* PLAYER 2 INPUTS */
281 	PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  | IPF_8WAY | IPF_PLAYER2 )
282 	PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_8WAY | IPF_PLAYER2 )
283 	PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    | IPF_8WAY | IPF_PLAYER2 )
284 	PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN  | IPF_8WAY | IPF_PLAYER2 )
285 	PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 | IPF_PLAYER2 )
286 	PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 | IPF_PLAYER2 )
287 	PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED )
288 	PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED )
289 
290 INPUT_PORTS_END
291 
292 
293 /***************************************************************************
294 
295 	Machine Driver
296 
297 ***************************************************************************/
298 
299 static void volume_callback(int v)
300 {
301 	K007232_set_volume(0,0,(v >> 4) * 0x11,0);
302 	K007232_set_volume(0,1,0,(v & 0x0f) * 0x11);
303 }
304 
305 static struct K007232_interface k007232_interface =
306 {
307 	1,		/* number of chips */
308 	{ REGION_SOUND1 },	/* memory regions */
309 	{ K007232_VOL(30,MIXER_PAN_CENTER,30,MIXER_PAN_CENTER) },	/* volume */
310 	{ volume_callback }	/* external port callback */
311 };
312 
313 static struct YM2151interface ym2151_interface =
314 {
315 	1, /* 1 chip */
316 	3579545, /* 3.579545 MHz */
317 	{ YM3012_VOL(60,MIXER_PAN_LEFT,60,MIXER_PAN_RIGHT) },
318 	{ 0 },
319 	{ 0 }
320 };
321 
322 static struct MachineDriver machine_driver_gbusters =
323 {
324 	/* basic machine hardware */
325 	{
326 		{
327 			CPU_KONAMI,		/* Konami custom 052526 */
328 			3000000,		/* ? */
329 			gbusters_readmem,gbusters_writemem,0,0,
330             gbusters_interrupt,1
331         },
332 		{
333 			CPU_Z80 | CPU_AUDIO_CPU,
334 			3579545,		/* ? */
335 			gbusters_readmem_sound, gbusters_writemem_sound,0,0,
336 			ignore_interrupt,0	/* interrupts are triggered by the main CPU */
337 		}
338 	},
339 	60, DEFAULT_60HZ_VBLANK_DURATION,	/* frames per second, vblank duration */
340 	1,	/* 1 CPU slice per frame - interleaving is forced when a sound command is written */
341 	gbusters_init_machine,
342 
343 	/* video hardware */
344 	64*8, 32*8, { 14*8, (64-14)*8-1, 2*8, 30*8-1 },
345 	0,	/* gfx decoded by konamiic.c */
346 	1024, 1024,
347 	0,
348 
349 	VIDEO_TYPE_RASTER | VIDEO_MODIFIES_PALETTE,
350 	0,
351 	gbusters_vh_start,
352 	gbusters_vh_stop,
353 	gbusters_vh_screenrefresh,
354 
355 	/* sound hardware */
356 	0,0,0,0,
357 	{
358 		{
359 			SOUND_YM2151,
360 			&ym2151_interface
361 		},
362 		{
363 			SOUND_K007232,
364 			&k007232_interface
365 		}
366 	}
367 };
368 
369 
370 /***************************************************************************
371 
372   Game ROMs
373 
374 ***************************************************************************/
375 
376 ROM_START( gbusters )
377 	ROM_REGION( 0x30800, REGION_CPU1 ) /* code + banked roms + space for banked RAM */
378 	ROM_LOAD( "878n02.rom", 0x10000, 0x08000, 0x51697aaa )	/* ROM K13 */
379 	ROM_CONTINUE(           0x08000, 0x08000 )
380 	ROM_LOAD( "878j03.rom", 0x20000, 0x10000, 0x3943a065 )	/* ROM K15 */
381 
382 	ROM_REGION( 0x10000, REGION_CPU2 ) /* 64k for the sound CPU */
383 	ROM_LOAD( "878h01.rom", 0x00000, 0x08000, 0x96feafaa )
384 
385 	ROM_REGION( 0x80000, REGION_GFX1 ) /* graphics (addressable by the main CPU) */
386 	ROM_LOAD( "878c07.rom", 0x00000, 0x40000, 0xeeed912c )	/* tiles */
387 	ROM_LOAD( "878c08.rom", 0x40000, 0x40000, 0x4d14626d )	/* tiles */
388 
389 	ROM_REGION( 0x80000, REGION_GFX2 ) /* graphics (addressable by the main CPU) */
390 	ROM_LOAD( "878c05.rom", 0x00000, 0x40000, 0x01f4aea5 )	/* sprites */
391 	ROM_LOAD( "878c06.rom", 0x40000, 0x40000, 0xedfaaaaf )	/* sprites */
392 
393 	ROM_REGION( 0x0100, REGION_PROMS )
394 	ROM_LOAD( "878a09.rom",   0x0000, 0x0100, 0xe2d09a1b )	/* priority encoder (not used) */
395 
396 	ROM_REGION( 0x40000, REGION_SOUND1 ) /* samples for 007232 */
397 	ROM_LOAD( "878c04.rom",  0x00000, 0x40000, 0x9e982d1c )
398 ROM_END
399 
ROM_START(crazycop)400 ROM_START( crazycop )
401 	ROM_REGION( 0x30800, REGION_CPU1 ) /* code + banked roms + space for banked RAM */
402 	ROM_LOAD( "878m02.bin", 0x10000, 0x08000, 0x9c1c9f52 )	/* ROM K13 */
403 	ROM_CONTINUE(           0x08000, 0x08000 )
404 	ROM_LOAD( "878j03.rom", 0x20000, 0x10000, 0x3943a065 )	/* ROM K15 */
405 
406 	ROM_REGION( 0x10000, REGION_CPU2 ) /* 64k for the sound CPU */
407 	ROM_LOAD( "878h01.rom", 0x00000, 0x08000, 0x96feafaa )
408 
409 	ROM_REGION( 0x80000, REGION_GFX1 ) /* graphics (addressable by the main CPU) */
410 	ROM_LOAD( "878c07.rom", 0x00000, 0x40000, 0xeeed912c )	/* tiles */
411 	ROM_LOAD( "878c08.rom", 0x40000, 0x40000, 0x4d14626d )	/* tiles */
412 
413 	ROM_REGION( 0x80000, REGION_GFX2 ) /* graphics (addressable by the main CPU) */
414 	ROM_LOAD( "878c05.rom", 0x00000, 0x40000, 0x01f4aea5 )	/* sprites */
415 	ROM_LOAD( "878c06.rom", 0x40000, 0x40000, 0xedfaaaaf )	/* sprites */
416 
417 	ROM_REGION( 0x0100, REGION_PROMS )
418 	ROM_LOAD( "878a09.rom",   0x0000, 0x0100, 0xe2d09a1b )	/* priority encoder (not used) */
419 
420 	ROM_REGION( 0x40000, REGION_SOUND1 ) /* samples for 007232 */
421 	ROM_LOAD( "878c04.rom",  0x00000, 0x40000, 0x9e982d1c )
422 ROM_END
423 
424 
425 static void gbusters_banking( int lines )
426 {
427 	unsigned char *RAM = memory_region(REGION_CPU1);
428 	int offs = 0x10000;
429 
430 	/* bits 0-3 ROM bank */
431 	offs += (lines & 0x0f)*0x2000;
432 	cpu_setbank( 1, &RAM[offs] );
433 
434 	//if (lines & 0xf0){
435 		//logerror("%04x: (lines) write %02x\n",cpu_get_pc(), lines);
436 		//usrintf_showmessage("lines = %02x", lines);
437 	//}
438 
439 	/* other bits unknown */
440 }
441 
gbusters_init_machine(void)442 static void gbusters_init_machine( void )
443 {
444 	unsigned char *RAM = memory_region(REGION_CPU1);
445 
446 	konami_cpu_setlines_callback = gbusters_banking;
447 
448 	/* mirror address for banked ROM */
449 	memcpy(&RAM[0x18000], &RAM[0x10000], 0x08000 );
450 
451 	paletteram = &RAM[0x30000];
452 }
453 
454 
init_gbusters(void)455 static void init_gbusters(void)
456 {
457 	konami_rom_deinterleave_2(REGION_GFX1);
458 	konami_rom_deinterleave_2(REGION_GFX2);
459 }
460 
461 
462 
463 GAME( 1988, gbusters, 0,        gbusters, gbusters, gbusters, ROT90, "Konami", "Gang Busters" )
464 GAME( 1988, crazycop, gbusters, gbusters, gbusters, gbusters, ROT90, "Konami", "Crazy Cop (Japan)" )
465