1 // license:BSD-3-Clause
2 // copyright-holders:Manuel Abadia
3 /***************************************************************************
4
5 Crime Fighters (Konami GX821) (c) 1989 Konami
6
7 Preliminary driver by:
8 Manuel Abadia <emumanu+mame@gmail.com>
9
10
11 2008-08
12 Dip locations verified with manual (US)
13
14 ***************************************************************************/
15
16 #include "emu.h"
17 #include "includes/konamipt.h"
18 #include "includes/crimfght.h"
19
20 #include "cpu/z80/z80.h"
21 #include "machine/watchdog.h"
22 #include "sound/ym2151.h"
23 #include "speaker.h"
24
25
crimfght_coin_w(uint8_t data)26 void crimfght_state::crimfght_coin_w(uint8_t data)
27 {
28 machine().bookkeeping().coin_counter_w(0, data & 1);
29 machine().bookkeeping().coin_counter_w(1, data & 2);
30 }
31
k052109_051960_r(offs_t offset)32 uint8_t crimfght_state::k052109_051960_r(offs_t offset)
33 {
34 if (m_k052109->get_rmrd_line() == CLEAR_LINE)
35 {
36 if (offset >= 0x3800 && offset < 0x3808)
37 return m_k051960->k051937_r(offset - 0x3800);
38 else if (offset < 0x3c00)
39 return m_k052109->read(offset);
40 else
41 return m_k051960->k051960_r(offset - 0x3c00);
42 }
43 else
44 return m_k052109->read(offset);
45 }
46
k052109_051960_w(offs_t offset,uint8_t data)47 void crimfght_state::k052109_051960_w(offs_t offset, uint8_t data)
48 {
49 if (offset >= 0x3800 && offset < 0x3808)
50 m_k051960->k051937_w(offset - 0x3800, data);
51 else if (offset < 0x3c00)
52 m_k052109->write(offset, data);
53 else
54 m_k051960->k051960_w(offset - 0x3c00, data);
55 }
56
sound_w(uint8_t data)57 void crimfght_state::sound_w(uint8_t data)
58 {
59 // writing the latch asserts the irq line
60 m_soundlatch->write(data);
61 m_audiocpu->set_input_line(INPUT_LINE_IRQ0, ASSERT_LINE);
62 }
63
IRQ_CALLBACK_MEMBER(crimfght_state::audiocpu_irq_ack)64 IRQ_CALLBACK_MEMBER( crimfght_state::audiocpu_irq_ack )
65 {
66 // irq ack cycle clears irq via flip-flop u86
67 m_audiocpu->set_input_line(INPUT_LINE_IRQ0, CLEAR_LINE);
68 return 0xff;
69 }
70
ym2151_ct_w(uint8_t data)71 void crimfght_state::ym2151_ct_w(uint8_t data)
72 {
73 // one output from the 007232 is connected to a ls399 which
74 // has inputs connected to the ct1 and ct2 outputs from
75 // the ym2151 used to select the bank
76
77 int bank_a = BIT(data, 1);
78 int bank_b = BIT(data, 0);
79
80 m_k007232->set_bank(bank_a, bank_b);
81 }
82
crimfght_map(address_map & map)83 void crimfght_state::crimfght_map(address_map &map)
84 {
85 map(0x0000, 0x03ff).m(m_bank0000, FUNC(address_map_bank_device::amap8));
86 map(0x0400, 0x1fff).ram();
87 map(0x2000, 0x5fff).rw(FUNC(crimfght_state::k052109_051960_r), FUNC(crimfght_state::k052109_051960_w)); /* video RAM + sprite RAM */
88 map(0x3f80, 0x3f80).portr("SYSTEM");
89 map(0x3f81, 0x3f81).portr("P1");
90 map(0x3f82, 0x3f82).portr("P2");
91 map(0x3f83, 0x3f83).portr("DSW2");
92 map(0x3f84, 0x3f84).portr("DSW3");
93 map(0x3f85, 0x3f85).portr("P3");
94 map(0x3f86, 0x3f86).portr("P4");
95 map(0x3f87, 0x3f87).portr("DSW1");
96 map(0x3f88, 0x3f88).mirror(0x03).r("watchdog", FUNC(watchdog_timer_device::reset_r)).w(FUNC(crimfght_state::crimfght_coin_w)); // 051550
97 map(0x3f8c, 0x3f8c).mirror(0x03).w(FUNC(crimfght_state::sound_w));
98 map(0x6000, 0x7fff).bankr("rombank"); /* banked ROM */
99 map(0x8000, 0xffff).rom().region("maincpu", 0x18000);
100 }
101
bank0000_map(address_map & map)102 void crimfght_state::bank0000_map(address_map &map)
103 {
104 map(0x0000, 0x03ff).ram();
105 map(0x0400, 0x07ff).ram().w(m_palette, FUNC(palette_device::write8)).share("palette");
106 }
107
108 // full memory map derived from schematics
crimfght_sound_map(address_map & map)109 void crimfght_state::crimfght_sound_map(address_map &map)
110 {
111 map(0x0000, 0x7fff).rom();
112 map(0x8000, 0x87ff).mirror(0x1800).ram();
113 map(0xa000, 0xa001).mirror(0x1ffe).rw("ymsnd", FUNC(ym2151_device::read), FUNC(ym2151_device::write));
114 map(0xc000, 0xc000).mirror(0x1fff).r(m_soundlatch, FUNC(generic_latch_8_device::read));
115 map(0xe000, 0xe00f).mirror(0x1ff0).rw(m_k007232, FUNC(k007232_device::read), FUNC(k007232_device::write));
116 }
117
118 /***************************************************************************
119
120 Input Ports
121
122 ***************************************************************************/
123
124 static INPUT_PORTS_START( crimfght )
125 PORT_START("DSW1")
DEF_STR(Coin_A)126 PORT_DIPNAME(0x0f, 0x0f, DEF_STR( Coin_A )) PORT_DIPLOCATION("SW1:1,2,3,4")
127 PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ))
128 PORT_DIPSETTING( 0x05, DEF_STR( 3C_1C ))
129 PORT_DIPSETTING( 0x08, DEF_STR( 2C_1C ))
130 PORT_DIPSETTING( 0x04, DEF_STR( 3C_2C ))
131 PORT_DIPSETTING( 0x01, DEF_STR( 4C_3C ))
132 PORT_DIPSETTING( 0x0f, DEF_STR( 1C_1C ))
133 PORT_DIPSETTING( 0x03, DEF_STR( 3C_4C ))
134 PORT_DIPSETTING( 0x07, DEF_STR( 2C_3C ))
135 PORT_DIPSETTING( 0x0e, DEF_STR( 1C_2C ))
136 PORT_DIPSETTING( 0x06, DEF_STR( 2C_5C ))
137 PORT_DIPSETTING( 0x0d, DEF_STR( 1C_3C ))
138 PORT_DIPSETTING( 0x0c, DEF_STR( 1C_4C ))
139 PORT_DIPSETTING( 0x0b, DEF_STR( 1C_5C ))
140 PORT_DIPSETTING( 0x0a, DEF_STR( 1C_6C ))
141 PORT_DIPSETTING( 0x09, DEF_STR( 1C_7C ))
142 PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ))
143 PORT_DIPNAME(0xf0, 0xf0, "Coin B") PORT_DIPLOCATION("SW1:5,6,7,8")
144 PORT_DIPSETTING( 0x20, DEF_STR( 4C_1C ))
145 PORT_DIPSETTING( 0x50, DEF_STR( 3C_1C ))
146 PORT_DIPSETTING( 0x80, DEF_STR( 2C_1C ))
147 PORT_DIPSETTING( 0x40, DEF_STR( 3C_2C ))
148 PORT_DIPSETTING( 0x10, DEF_STR( 4C_3C ))
149 PORT_DIPSETTING( 0xf0, DEF_STR( 1C_1C ))
150 PORT_DIPSETTING( 0x30, DEF_STR( 3C_4C ))
151 PORT_DIPSETTING( 0x70, DEF_STR( 2C_3C ))
152 PORT_DIPSETTING( 0xe0, DEF_STR( 1C_2C ))
153 PORT_DIPSETTING( 0x60, DEF_STR( 2C_5C ))
154 PORT_DIPSETTING( 0xd0, DEF_STR( 1C_3C ))
155 PORT_DIPSETTING( 0xc0, DEF_STR( 1C_4C ))
156 PORT_DIPSETTING( 0xb0, DEF_STR( 1C_5C ))
157 PORT_DIPSETTING( 0xa0, DEF_STR( 1C_6C ))
158 PORT_DIPSETTING( 0x90, DEF_STR( 1C_7C ))
159 PORT_DIPSETTING( 0x00, DEF_STR( Unused ))
160
161 PORT_START("DSW2")
162 PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:1,2")
163 PORT_DIPSETTING( 0x03, "1" )
164 PORT_DIPSETTING( 0x02, "2" )
165 PORT_DIPSETTING( 0x01, "3" )
166 PORT_DIPSETTING( 0x00, "4" )
167 PORT_DIPUNUSED_DIPLOC(0x04, 0x04, "SW2:3")
168 PORT_DIPUNUSED_DIPLOC(0x08, 0x08, "SW2:4")
169 PORT_DIPUNUSED_DIPLOC(0x10, 0x10, "SW2:5")
170 PORT_DIPNAME(0x60, 0x40, DEF_STR( Difficulty )) PORT_DIPLOCATION("SW2:6,7")
171 PORT_DIPSETTING( 0x60, DEF_STR( Easy ))
172 PORT_DIPSETTING( 0x40, DEF_STR( Normal ))
173 PORT_DIPSETTING( 0x20, DEF_STR( Difficult ))
174 PORT_DIPSETTING( 0x00, DEF_STR( Very_Difficult ))
175 PORT_DIPNAME(0x80, 0x00, DEF_STR( Demo_Sounds )) PORT_DIPLOCATION("SW2:8")
176 PORT_DIPSETTING( 0x80, DEF_STR( Off ))
177 PORT_DIPSETTING( 0x00, DEF_STR( On ))
178
179 PORT_START("DSW3")
180 PORT_DIPNAME(0x01, 0x01, DEF_STR( Flip_Screen )) PORT_DIPLOCATION("SW3:1")
181 PORT_DIPSETTING( 0x01, DEF_STR( Off ))
182 PORT_DIPSETTING( 0x00, DEF_STR( On ))
183 PORT_DIPUNUSED_DIPLOC(0x02, IP_ACTIVE_LOW, "SW3:2")
184 PORT_SERVICE_DIPLOC( 0x04, IP_ACTIVE_LOW, "SW3:3")
185 PORT_DIPUNUSED_DIPLOC(0x08, IP_ACTIVE_LOW, "SW3:4")
186 PORT_BIT(0xf0, IP_ACTIVE_HIGH, IPT_CUSTOM) PORT_CUSTOM_MEMBER(crimfght_state, system_r)
187
188 PORT_START("P1")
189 KONAMI8_B123_START(1)
190
191 PORT_START("P2")
192 KONAMI8_B123_START(2)
193
194 PORT_START("P3")
195 PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN )
196
197 PORT_START("P4")
198 PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN )
199
200 PORT_START("SYSTEM")
201 PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_COIN1)
202 PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_COIN2)
203 PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_UNKNOWN)
204 PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_UNKNOWN)
205 PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_SERVICE1)
206 PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_SERVICE2)
207 PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_UNKNOWN)
208 PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_UNKNOWN)
209 INPUT_PORTS_END
210
211 static INPUT_PORTS_START( crimfghtu )
212 PORT_INCLUDE( crimfght )
213
214 PORT_MODIFY("DSW1")
215 PORT_DIPNAME(0xf0, 0x00, "Coin B (Unused)") PORT_DIPLOCATION("SW1:5,6,7,8")
216 PORT_DIPSETTING( 0x20, DEF_STR( 4C_1C ))
217 PORT_DIPSETTING( 0x50, DEF_STR( 3C_1C ))
218 PORT_DIPSETTING( 0x80, DEF_STR( 2C_1C ))
219 PORT_DIPSETTING( 0x40, DEF_STR( 3C_2C ))
220 PORT_DIPSETTING( 0x10, DEF_STR( 4C_3C ))
221 PORT_DIPSETTING( 0xf0, DEF_STR( 1C_1C ))
222 PORT_DIPSETTING( 0x30, DEF_STR( 3C_4C ))
223 PORT_DIPSETTING( 0x70, DEF_STR( 2C_3C ))
224 PORT_DIPSETTING( 0xe0, DEF_STR( 1C_2C ))
225 PORT_DIPSETTING( 0x60, DEF_STR( 2C_5C ))
226 PORT_DIPSETTING( 0xd0, DEF_STR( 1C_3C ))
227 PORT_DIPSETTING( 0xc0, DEF_STR( 1C_4C ))
228 PORT_DIPSETTING( 0xb0, DEF_STR( 1C_5C ))
229 PORT_DIPSETTING( 0xa0, DEF_STR( 1C_6C ))
230 PORT_DIPSETTING( 0x90, DEF_STR( 1C_7C ))
231 PORT_DIPSETTING( 0x00, DEF_STR( Unused ))
232
233 PORT_MODIFY("DSW2")
234 PORT_DIPUNUSED_DIPLOC(0x01, 0x01, "SW2:1")
235 PORT_DIPUNUSED_DIPLOC(0x02, 0x02, "SW2:2")
236
237 PORT_MODIFY("P1")
238 KONAMI8_B12_UNK(1)
239
240 PORT_MODIFY("P2")
241 KONAMI8_B12_UNK(2)
242
243 PORT_MODIFY("P3")
244 KONAMI8_B12_UNK(3)
245
246 PORT_MODIFY("P4")
247 KONAMI8_B12_UNK(4)
248
249 PORT_MODIFY("SYSTEM")
250 PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN3 )
251 PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN4 )
252 PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE3 )
253 PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE4 )
254 INPUT_PORTS_END
255
256
257 /***************************************************************************
258
259 Machine Driver
260
261 ***************************************************************************/
262
263 void crimfght_state::volume_callback(uint8_t data)
264 {
265 m_k007232->set_volume(0, (data & 0x0f) * 0x11, 0);
266 m_k007232->set_volume(1, 0, (data >> 4) * 0x11);
267 }
268
machine_start()269 void crimfght_state::machine_start()
270 {
271 m_rombank->configure_entries(0, 16, memregion("maincpu")->base(), 0x2000);
272 m_rombank->set_entry(0);
273 }
274
banking_callback(uint8_t data)275 void crimfght_state::banking_callback(uint8_t data)
276 {
277 m_rombank->set_entry(data & 0x0f);
278
279 /* bit 5 = select work RAM or palette */
280 m_woco = BIT(data, 5);
281 m_bank0000->set_bank(m_woco);
282
283 /* bit 6 = enable char ROM reading through the video RAM */
284 m_rmrd = BIT(data, 6);
285 m_k052109->set_rmrd_line(m_rmrd ? ASSERT_LINE : CLEAR_LINE);
286
287 m_init = BIT(data, 7);
288 }
289
CUSTOM_INPUT_MEMBER(crimfght_state::system_r)290 CUSTOM_INPUT_MEMBER( crimfght_state::system_r )
291 {
292 uint8_t data = 0;
293
294 data |= 1 << 4; // VCC
295 data |= m_woco << 5;
296 data |= m_rmrd << 6;
297 data |= m_init << 7;
298
299 return data >> 4;
300 }
301
crimfght(machine_config & config)302 void crimfght_state::crimfght(machine_config &config)
303 {
304 /* basic machine hardware */
305 KONAMI(config, m_maincpu, XTAL(24'000'000)/8); /* 052001 (verified on pcb) */
306 m_maincpu->set_addrmap(AS_PROGRAM, &crimfght_state::crimfght_map);
307 m_maincpu->line().set(FUNC(crimfght_state::banking_callback));
308
309 Z80(config, m_audiocpu, XTAL(3'579'545)); /* verified on pcb */
310 m_audiocpu->set_addrmap(AS_PROGRAM, &crimfght_state::crimfght_sound_map);
311 m_audiocpu->set_irq_acknowledge_callback(FUNC(crimfght_state::audiocpu_irq_ack));
312
313 ADDRESS_MAP_BANK(config, "bank0000").set_map(&crimfght_state::bank0000_map).set_options(ENDIANNESS_BIG, 8, 11, 0x400);
314
315 WATCHDOG_TIMER(config, "watchdog");
316
317 /* video hardware */
318 screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));
319 screen.set_raw(XTAL(24'000'000)/3, 528, 96, 416, 256, 16, 240); // measured 59.17
320 // 6MHz dotclock is more realistic, however needs drawing updates. replace when ready
321 // screen.set_raw(XTAL(24'000'000)/4, 396, hbend, hbstart, 256, 16, 240);
322 screen.set_screen_update(FUNC(crimfght_state::screen_update_crimfght));
323 screen.set_palette(m_palette);
324
325 PALETTE(config, m_palette).set_format(palette_device::xBGR_555, 512);
326 m_palette->enable_shadows();
327
328 K052109(config, m_k052109, 0);
329 m_k052109->set_palette(m_palette);
330 m_k052109->set_screen(nullptr);
331 m_k052109->set_tile_callback(FUNC(crimfght_state::tile_callback));
332
333 K051960(config, m_k051960, 0);
334 m_k051960->set_palette(m_palette);
335 m_k051960->set_screen("screen");
336 m_k051960->set_sprite_callback(FUNC(crimfght_state::sprite_callback));
337 m_k051960->irq_handler().set_inputline(m_maincpu, KONAMI_IRQ_LINE);
338
339 /* sound hardware */
340 SPEAKER(config, "lspeaker").front_left();
341 SPEAKER(config, "rspeaker").front_right();
342
343 GENERIC_LATCH_8(config, m_soundlatch);
344
345 ym2151_device &ymsnd(YM2151(config, "ymsnd", XTAL(3'579'545))); /* verified on pcb */
346 ymsnd.port_write_handler().set(FUNC(crimfght_state::ym2151_ct_w));
347 ymsnd.add_route(0, "lspeaker", 1.0);
348 ymsnd.add_route(1, "rspeaker", 1.0);
349
350 K007232(config, m_k007232, XTAL(3'579'545)); /* verified on pcb */
351 m_k007232->port_write().set(FUNC(crimfght_state::volume_callback));
352 m_k007232->add_route(0, "lspeaker", 0.20);
353 m_k007232->add_route(0, "rspeaker", 0.20);
354 m_k007232->add_route(1, "lspeaker", 0.20);
355 m_k007232->add_route(1, "rspeaker", 0.20);
356 }
357
358 /***************************************************************************
359
360 Game ROMs
361
362 ***************************************************************************/
363
364 ROM_START( crimfght )
365 ROM_REGION( 0x20000, "maincpu", 0 ) /* code + banked roms */
366 ROM_LOAD( "821r02.f24", 0x00000, 0x20000, CRC(4ecdd923) SHA1(78e5260c4bb9b18d7818fb6300d7e1d3a577fb63) )
367
368 ROM_REGION( 0x10000, "audiocpu", 0 ) /* 64k for the sound CPU */
369 ROM_LOAD( "821l01.h4", 0x0000, 0x8000, CRC(0faca89e) SHA1(21c9c6d736b398a29e8709e1187c5bf3cacdc99d) )
370
371 ROM_REGION( 0x080000, "k052109", 0 ) /* tiles */
372 ROM_LOAD32_WORD( "821k06.k13", 0x000000, 0x040000, CRC(a1eadb24) SHA1(ca305b904b34e03918ad07281fda86ad63caa44f) )
373 ROM_LOAD32_WORD( "821k07.k19", 0x000002, 0x040000, CRC(060019fa) SHA1(c3bca007aaa5f1c534d2a75fe4f96d01a740dd58) )
374
375 ROM_REGION( 0x100000, "k051960", 0 ) /* sprites */
376 ROM_LOAD32_WORD( "821k04.k2", 0x000000, 0x080000, CRC(00e0291b) SHA1(39d5db6cf36826e47cdf5308eff9bfa8afc82050) )
377 ROM_LOAD32_WORD( "821k05.k8", 0x000002, 0x080000, CRC(e09ea05d) SHA1(50ac9a2117ce63fe774c48d769ec445a83f1269e) )
378
379 ROM_REGION( 0x0100, "proms", 0 )
380 ROM_LOAD( "821a08.i15", 0x0000, 0x0100, CRC(7da55800) SHA1(3826f73569c8ae0431510a355bdfa082152b74a5) ) /* priority encoder (not used) */
381
382 ROM_REGION( 0x40000, "k007232", 0 ) /* data for the 007232 */
383 ROM_LOAD( "821k03.e5", 0x00000, 0x40000, CRC(fef8505a) SHA1(5c5121609f69001838963e961cb227d6b64e4f5f) )
384 ROM_END
385
386 ROM_START( crimfghtj )
387 ROM_REGION( 0x20000, "maincpu", 0 ) /* code + banked roms */
388 ROM_LOAD( "821p02.f24", 0x00000, 0x20000, CRC(f33fa2e1) SHA1(00fc9e8250fa51386f3af2fca0f137bec9e1c220) )
389
390 ROM_REGION( 0x10000, "audiocpu", 0 ) /* 64k for the sound CPU */
391 ROM_LOAD( "821l01.h4", 0x0000, 0x8000, CRC(0faca89e) SHA1(21c9c6d736b398a29e8709e1187c5bf3cacdc99d) )
392
393 ROM_REGION( 0x080000, "k052109", 0 ) /* tiles */
394 ROM_LOAD32_WORD( "821k06.k13", 0x000000, 0x040000, CRC(a1eadb24) SHA1(ca305b904b34e03918ad07281fda86ad63caa44f) )
395 ROM_LOAD32_WORD( "821k07.k19", 0x000002, 0x040000, CRC(060019fa) SHA1(c3bca007aaa5f1c534d2a75fe4f96d01a740dd58) )
396
397 ROM_REGION( 0x100000, "k051960", 0 ) /* sprites */
398 ROM_LOAD32_WORD( "821k04.k2", 0x000000, 0x080000, CRC(00e0291b) SHA1(39d5db6cf36826e47cdf5308eff9bfa8afc82050) ) /* sprites */
399 ROM_LOAD32_WORD( "821k05.k8", 0x000002, 0x080000, CRC(e09ea05d) SHA1(50ac9a2117ce63fe774c48d769ec445a83f1269e) )
400
401 ROM_REGION( 0x0100, "proms", 0 )
402 ROM_LOAD( "821a08.i15", 0x0000, 0x0100, CRC(7da55800) SHA1(3826f73569c8ae0431510a355bdfa082152b74a5) ) /* priority encoder (not used) */
403
404 ROM_REGION( 0x40000, "k007232", 0 ) /* data for the 007232 */
405 ROM_LOAD( "821k03.e5", 0x00000, 0x40000, CRC(fef8505a) SHA1(5c5121609f69001838963e961cb227d6b64e4f5f) )
406 ROM_END
407
408 ROM_START( crimfghtu )
409 ROM_REGION( 0x20000, "maincpu", 0 ) /* code + banked roms */
410 ROM_LOAD( "821l02.f24", 0x00000, 0x20000, CRC(588e7da6) SHA1(285febb3bcca31f82b34af3695a59eafae01cd30) )
411
412 ROM_REGION( 0x10000, "audiocpu", 0 ) /* 64k for the sound CPU */
413 ROM_LOAD( "821l01.h4", 0x0000, 0x8000, CRC(0faca89e) SHA1(21c9c6d736b398a29e8709e1187c5bf3cacdc99d) )
414
415 ROM_REGION( 0x080000, "k052109", 0 ) /* tiles */
416 ROM_LOAD32_WORD( "821k06.k13", 0x000000, 0x040000, CRC(a1eadb24) SHA1(ca305b904b34e03918ad07281fda86ad63caa44f) )
417 ROM_LOAD32_WORD( "821k07.k19", 0x000002, 0x040000, CRC(060019fa) SHA1(c3bca007aaa5f1c534d2a75fe4f96d01a740dd58) )
418
419 ROM_REGION( 0x100000, "k051960", 0 ) /* sprites */
420 ROM_LOAD32_WORD( "821k04.k2", 0x000000, 0x080000, CRC(00e0291b) SHA1(39d5db6cf36826e47cdf5308eff9bfa8afc82050) ) /* sprites */
421 ROM_LOAD32_WORD( "821k05.k8", 0x000002, 0x080000, CRC(e09ea05d) SHA1(50ac9a2117ce63fe774c48d769ec445a83f1269e) )
422
423 ROM_REGION( 0x0100, "proms", 0 )
424 ROM_LOAD( "821a08.i15", 0x0000, 0x0100, CRC(7da55800) SHA1(3826f73569c8ae0431510a355bdfa082152b74a5) ) /* priority encoder (not used) */
425
426 ROM_REGION( 0x40000, "k007232", 0 ) /* data for the 007232 */
427 ROM_LOAD( "821k03.e5", 0x00000, 0x40000, CRC(fef8505a) SHA1(5c5121609f69001838963e961cb227d6b64e4f5f) )
428 ROM_END
429
430 /***************************************************************************
431
432 Game driver(s)
433
434 ***************************************************************************/
435
436 GAME( 1989, crimfght, 0, crimfght, crimfght, crimfght_state, empty_init, ROT0, "Konami", "Crime Fighters (World 2 players)", MACHINE_SUPPORTS_SAVE )
437 GAME( 1989, crimfghtu, crimfght, crimfght, crimfghtu, crimfght_state, empty_init, ROT0, "Konami", "Crime Fighters (US 4 Players)", MACHINE_SUPPORTS_SAVE )
438 GAME( 1989, crimfghtj, crimfght, crimfght, crimfght, crimfght_state, empty_init, ROT0, "Konami", "Crime Fighters (Japan 2 Players)", MACHINE_SUPPORTS_SAVE )
439