1 /*
2 Diet Go Go
3 Driver by Bryan McPhail and David Haywood.
4
5 Hold both START buttons on bootup to display version notice.
6 Diet Go Go (Japan) DATA EAST
7 NAME LOCATION TYPE
8 -----------------------
9 JW-02 14M 27C512
10 JW-01-2 5H 27C2001
11 JW-00-2 4H "
12 PAL16L8B 7H
13 PAL16L8B 6H
14 PAL16R6A 11H
15 */
16 #include "driver.h"
17 #include "cpu/m68000/m68000.h"
18 #include "cpu/h6280/h6280.h"
19 #include "decocrpt.h"
20 #include "decoprot.h"
21 #include "deco16ic.h"
22
23
24 static int flip_screen;
25 static data16_t *spriteram16;
26 static unsigned int spriteram_size;
27
28
dietgogo_drawsprites(struct mame_bitmap * bitmap,const struct rectangle * cliprect)29 static void dietgogo_drawsprites(struct mame_bitmap *bitmap,const struct rectangle *cliprect)
30 {
31 int offs;
32
33 for (offs = 0;offs < 0x400;offs += 4)
34 {
35 int x,y,sprite,colour,multi,fx,fy,inc,flash,mult;
36
37 sprite = spriteram16[offs+1];
38 if (!sprite) continue;
39
40 y = spriteram16[offs];
41 flash=y&0x1000;
42 if (flash && (cpu_getcurrentframe() & 1)) continue;
43
44 x = spriteram16[offs+2];
45 colour = (x >>9) & 0x1f;
46
47 fx = y & 0x2000;
48 fy = y & 0x4000;
49 multi = (1 << ((y & 0x0600) >> 9)) - 1; /* 1x, 2x, 4x, 8x height */
50
51 x = x & 0x01ff;
52 y = y & 0x01ff;
53 if (x >= 320) x -= 512;
54 if (y >= 256) y -= 512;
55 y = 240 - y;
56 x = 304 - x;
57
58 if (x>320) continue;
59
60 sprite &= ~multi;
61 if (fy)
62 inc = -1;
63 else
64 {
65 sprite += multi;
66 inc = 1;
67 }
68
69 if (flip_screen)
70 {
71 y=240-y;
72 x=304-x;
73 if (fx) fx=0; else fx=1;
74 if (fy) fy=0; else fy=1;
75 mult=16;
76 }
77 else mult=-16;
78
79 while (multi >= 0)
80 {
81 drawgfx(bitmap,Machine->gfx[2],
82 sprite - multi * inc,
83 colour,
84 fx,fy,
85 x,y + mult * multi,
86 cliprect,TRANSPARENCY_PEN,0);
87
88 multi--;
89 }
90 }
91 }
92
dietgo_bank_callback(const int bank)93 static int dietgo_bank_callback(const int bank)
94 {
95 return (bank & 0x7) * 0x1000;
96 }
97
VIDEO_START(dietgo)98 VIDEO_START(dietgo)
99 {
100 if (deco16_1_video_init())
101 return 1;
102
103 deco16_set_tilemap_bank_callback(0, dietgo_bank_callback);
104 deco16_set_tilemap_bank_callback(1, dietgo_bank_callback);
105
106 return 0;
107 }
108
VIDEO_UPDATE(dietgo)109 VIDEO_UPDATE(dietgo)
110 {
111 flip_screen = deco16_pf12_control[0]&0x80;
112 deco16_pf12_update(deco16_pf1_rowscroll,deco16_pf2_rowscroll);
113
114 fillbitmap(bitmap,Machine->pens[256],cliprect); /* not verified */
115
116 deco16_tilemap_2_draw(bitmap,cliprect,TILEMAP_IGNORE_TRANSPARENCY,0);
117 deco16_tilemap_1_draw(bitmap,cliprect,0,0);
118
119 dietgogo_drawsprites(bitmap,cliprect);
120 }
121
READ16_HANDLER(dietgo_298)122 static READ16_HANDLER( dietgo_298 )
123 {
124 /* iq_132, Apparently MAME 0.78's auto-vblank handling sucks.*/
125 /* Just flip it on and off every other read so that the game*/
126 /* doesn't take a massive dump all over everything.*/
127
128 unsigned short ret;
129 static int vblank_fake;
130
131 vblank_fake ^= 0x08;
132
133 ret = input_port_0_word_r(0,0);
134 ret &= ~8;
135 ret ^= vblank_fake;
136
137 /* printf ("%4.4x\n", ret);*/
138
139 return ret;
140 }
141
142
MEMORY_READ16_START(dietgo_readmem)143 static MEMORY_READ16_START( dietgo_readmem )
144 { 0x000000, 0x07ffff, MRA16_ROM },
145 { 0x200000, 0x20000f, MRA16_RAM },
146 { 0x210000, 0x211fff, MRA16_RAM },
147 { 0x212000, 0x213fff, MRA16_RAM },
148 { 0x220000, 0x2207ff, MRA16_RAM },
149 { 0x222000, 0x2227ff, MRA16_RAM },
150 { 0x280000, 0x2807ff, MRA16_RAM },
151 { 0x300000, 0x300bff, MRA16_RAM },
152 { 0x340298, 0x340299, dietgo_298 }, /*Fake V-blank hack and input_port_0_word_r*/
153 { 0x340342, 0x340343, input_port_1_word_r },
154 { 0x340506, 0x340507, input_port_2_word_r },
155 /* { 0x340000, 0x3407ff, dietgo_104_prot_r }, Bypass the prot read via the above hack.*/
156 { 0x380000, 0x38ffff, MRA16_RAM },
157 MEMORY_END
158
159 static MEMORY_WRITE16_START( dietgo_writemem )
160 { 0x000000, 0x07ffff, MWA16_ROM },
161 { 0x200000, 0x20000f, MWA16_RAM, &deco16_pf12_control },
162 { 0x210000, 0x211fff, deco16_pf1_data_w, &deco16_pf1_data },
163 { 0x212000, 0x213fff, deco16_pf2_data_w, &deco16_pf2_data },
164 { 0x220000, 0x2207ff, MWA16_RAM, &deco16_pf1_rowscroll },
165 { 0x222000, 0x2227ff, MWA16_RAM, &deco16_pf2_rowscroll },
166 { 0x280000, 0x2807ff, MWA16_RAM, &spriteram16, &spriteram_size },
167 { 0x300000, 0x300bff, deco16_nonbuffered_palette_w, &paletteram16 },
168 { 0x340000, 0x3407ff, dietgo_104_prot_w },
169 { 0x380000, 0x38ffff, MWA16_RAM },
170 MEMORY_END
171
172 static MEMORY_READ_START( sound_readmem )
173 { 0x000000, 0x00ffff, MRA_ROM },
174 { 0x100000, 0x100001, MRA_NOP },
175 { 0x110000, 0x110001, YM2151_status_port_0_r },
176 { 0x120000, 0x120001, OKIM6295_status_0_r },
177 { 0x130000, 0x130001, MRA_NOP },
178 { 0x140000, 0x140001, soundlatch_r },
179 { 0x1f0000, 0x1f1fff, MRA_BANK8 },
180 MEMORY_END
181
182 static MEMORY_WRITE_START( sound_writemem )
183 { 0x000000, 0x00ffff, MWA_ROM },
184 { 0x100000, 0x100001, MWA_NOP },
185 { 0x110000, 0x110001, YM2151_word_0_w },
186 { 0x120000, 0x120001, OKIM6295_data_0_w },
187 { 0x130000, 0x130001, MWA_NOP },
188 { 0x1f0000, 0x1f1fff, MWA_BANK8 },
189 { 0x1fec00, 0x1fec01, H6280_timer_w },
190 { 0x1ff402, 0x1ff403, H6280_irq_status_w },
191 MEMORY_END
192
193
194 INPUT_PORTS_START( dietgo )
195 PORT_START /* Verified as 4 bit input port only */
196 PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
197 PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 )
198 PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_SERVICE1 )
199 PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_VBLANK )
200
201 PORT_START /* 16bit */
202 PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP | IPF_8WAY )
203 PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN | IPF_8WAY )
204 PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT | IPF_8WAY )
205 PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_8WAY )
206 PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 | IPF_8WAY )
207 PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 | IPF_8WAY )
208 PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 | IPF_8WAY )
209 PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START1 )
210 PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP | IPF_8WAY | IPF_PLAYER2 )
211 PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN | IPF_8WAY | IPF_PLAYER2 )
212 PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT | IPF_8WAY | IPF_PLAYER2 )
213 PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_8WAY | IPF_PLAYER2 )
214 PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 | IPF_PLAYER2 )
215 PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 | IPF_PLAYER2 )
216 PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 | IPF_PLAYER2 )
217 PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START2 )
218
219 PORT_START /* Dip switch bank 1 */
220 PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) )
221 PORT_DIPSETTING( 0x0000, DEF_STR( 3C_1C ) )
222 PORT_DIPSETTING( 0x0001, DEF_STR( 2C_1C ) )
223 PORT_DIPSETTING( 0x0007, DEF_STR( 1C_1C ) )
224 PORT_DIPSETTING( 0x0006, DEF_STR( 1C_2C ) )
225 PORT_DIPSETTING( 0x0005, DEF_STR( 1C_3C ) )
226 PORT_DIPSETTING( 0x0004, DEF_STR( 1C_4C ) )
227 PORT_DIPSETTING( 0x0003, DEF_STR( 1C_5C ) )
228 PORT_DIPSETTING( 0x0002, DEF_STR( 1C_6C ) )
229 PORT_DIPNAME( 0x0038, 0x0038, DEF_STR( Coin_B ) )
230 PORT_DIPSETTING( 0x0000, DEF_STR( 3C_1C ) )
231 PORT_DIPSETTING( 0x0008, DEF_STR( 2C_1C ) )
232 PORT_DIPSETTING( 0x0038, DEF_STR( 1C_1C ) )
233 PORT_DIPSETTING( 0x0030, DEF_STR( 1C_2C ) )
234 PORT_DIPSETTING( 0x0028, DEF_STR( 1C_3C ) )
235 PORT_DIPSETTING( 0x0020, DEF_STR( 1C_4C ) )
236 PORT_DIPSETTING( 0x0018, DEF_STR( 1C_5C ) )
237 PORT_DIPSETTING( 0x0010, DEF_STR( 1C_6C ) )
238 PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Flip_Screen ) )
239 PORT_DIPSETTING( 0x0040, DEF_STR( Off ) )
240 PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
241 PORT_DIPNAME( 0x0080, 0x0080, "Continue Coin" )
242 PORT_DIPSETTING( 0x0080, "1 Start/1 Continue" )
243 PORT_DIPSETTING( 0x0000, "2 Start/1 Continue" )
244
245 /* Dip switch bank 2 */
246 PORT_DIPNAME( 0x0300, 0x0300, DEF_STR( Lives ) )
247 PORT_DIPSETTING( 0x0100, "1" )
248 PORT_DIPSETTING( 0x0000, "2" )
249 PORT_DIPSETTING( 0x0300, "3" )
250 PORT_DIPSETTING( 0x0200, "4" )
251 PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Difficulty ) )
252 PORT_DIPSETTING( 0x0800, "Easy" )
253 PORT_DIPSETTING( 0x0c00, "Normal" )
254 PORT_DIPSETTING( 0x0400, "Hard" )
255 PORT_DIPSETTING( 0x0000, "Hardest" )
256 PORT_DIPNAME( 0x1000, 0x1000, DEF_STR( Free_Play ) )
257 PORT_DIPSETTING( 0x1000, DEF_STR( Off ) )
258 PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
259 PORT_DIPNAME( 0x2000, 0x2000, DEF_STR( Unknown ) )
260 PORT_DIPSETTING( 0x2000, DEF_STR( Off ) )
261 PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
262 PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Unknown ) ) /* Demo_Sounds ) )*/
263 PORT_DIPSETTING( 0x4000, DEF_STR( Off ) ) /* Players dont move in attract mode if on!?*/
264 PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
265 PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Unknown ) )
266 PORT_DIPSETTING( 0x8000, DEF_STR( Off ) )
267 PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
268 INPUT_PORTS_END
269
270 static struct GfxLayout tile_8x8_layout =
271 {
272 8,8,
273 RGN_FRAC(1,2),
274 4,
275 { RGN_FRAC(1,2)+8,RGN_FRAC(1,2)+0,RGN_FRAC(0,2)+8,RGN_FRAC(0,2)+0 },
276 { 0, 1, 2, 3, 4, 5, 6, 7 },
277 { 0*16, 1*16, 2*16, 3*16, 4*16, 5*16, 6*16, 7*16 },
278 8*16
279 };
280
281 static struct GfxLayout tile_16x16_layout =
282 {
283 16,16,
284 RGN_FRAC(1,2),
285 4,
286 { RGN_FRAC(1,2)+8,RGN_FRAC(1,2)+0,RGN_FRAC(0,2)+8,RGN_FRAC(0,2)+0 },
287 { 256,257,258,259,260,261,262,263,0, 1, 2, 3, 4, 5, 6, 7 },
288 { 0*16, 1*16, 2*16, 3*16, 4*16, 5*16, 6*16, 7*16,8*16,9*16,10*16,11*16,12*16,13*16,14*16,15*16 },
289 32*16
290 };
291
292 static struct GfxLayout spritelayout =
293 {
294 16,16,
295 RGN_FRAC(1,1),
296 4,
297 { 24,8,16,0 },
298 { 512,513,514,515,516,517,518,519, 0, 1, 2, 3, 4, 5, 6, 7 },
299 { 0*32, 1*32, 2*32, 3*32, 4*32, 5*32, 6*32, 7*32,
300 8*32, 9*32,10*32,11*32,12*32,13*32,14*32,15*32},
301 32*32
302 };
303
304 static struct GfxDecodeInfo gfxdecodeinfo[] =
305 {
306 { REGION_GFX1, 0, &tile_8x8_layout, 0, 32 }, /* Tiles (8x8) */
307 { REGION_GFX1, 0, &tile_16x16_layout, 0, 32 }, /* Tiles (16x16) */
308 { REGION_GFX2, 0, &spritelayout, 0x200, 16 }, /* Tiles (16x16) */
309 { -1 } /* end of array */
310 };
311
sound_irq(int state)312 static void sound_irq(int state)
313 {
314 cpu_set_irq_line(1,1,state); /* IRQ 2 */
315 }
316
317 static struct YM2151interface ym2151_interface =
318 {
319 1,
320 32220000/9, /* Accurate, audio section crystal is 32.220 MHz */
321 { YM3012_VOL(40,MIXER_PAN_LEFT,40,MIXER_PAN_RIGHT) },
322 { sound_irq },
323 };
324
325 static struct OKIM6295interface okim6295_interface =
326 {
327 1,
328 { 32220000/32/132 },/* Frequency */
329 { REGION_SOUND1 },
330 { 60 }
331 };
332
333 static MACHINE_DRIVER_START( dietgo )
334 /* basic machine hardware */
335 MDRV_CPU_ADD(M68000, 14000000)
336 MDRV_CPU_MEMORY(dietgo_readmem,dietgo_writemem)
337 MDRV_CPU_VBLANK_INT(irq6_line_hold,1)
338
339 MDRV_CPU_ADD(H6280,32220000/4/3)
340 MDRV_CPU_FLAGS(CPU_AUDIO_CPU)
341 MDRV_CPU_MEMORY(sound_readmem,sound_writemem)
342
343 MDRV_FRAMES_PER_SECOND(58)
344 MDRV_VBLANK_DURATION(TIME_IN_USEC(2500))
345
346 /* video hardware */
347 MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER)
348 MDRV_SCREEN_SIZE(40*8, 32*8)
349 MDRV_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1)
350 MDRV_GFXDECODE(gfxdecodeinfo)
351 MDRV_PALETTE_LENGTH(1024)
352
353 MDRV_VIDEO_START(dietgo)
354 MDRV_VIDEO_UPDATE(dietgo)
355
356 /* sound hardware */
357 MDRV_SOUND_ATTRIBUTES(SOUND_SUPPORTS_STEREO)
358 MDRV_SOUND_ADD(YM2151, ym2151_interface)
359 MDRV_SOUND_ADD(OKIM6295, okim6295_interface)
360 MACHINE_DRIVER_END
361
362
363 /* Diet Go Go */
364
365 ROM_START( dietgo )
366 ROM_REGION( 0x80000, REGION_CPU1, 0 ) /* DE102 code (encrypted) */
367 ROM_LOAD16_BYTE( "jy00-2.h4", 0x000001, 0x040000, CRC(014dcf62) SHA1(1a28ce4a643ec8b6f062b1200342ed4dc6db38a1) )
368 ROM_LOAD16_BYTE( "jy01-2.h5", 0x000000, 0x040000, CRC(793ebd83) SHA1(b9178f18ce6e9fca848cbbf9dce3f3856672bf94) )
369
370 ROM_REGION( 0x10000, REGION_CPU2, 0 )
371 ROM_LOAD( "jy02.m14", 0x00000, 0x10000, CRC(4e3492a5) SHA1(5f302bdbacbf95ea9f3694c48545a1d6bba4b019) )
372
373 ROM_REGION( 0x100000, REGION_GFX1, 0 )
374 ROM_LOAD( "may00", 0x00000, 0x100000, CRC(234d1f8d) SHA1(42d23aad20df20cbd2359cc12bdd47636b2027d3) )
375
376 ROM_REGION( 0x200000, REGION_GFX2, 0 )
377 ROM_LOAD16_BYTE( "may01", 0x000000, 0x100000, CRC(2da57d04) SHA1(3898e9fef365ecaa4d86aa11756b527a4fffb494) )
378 ROM_LOAD16_BYTE( "may02", 0x000001, 0x100000, CRC(3a66a713) SHA1(beeb99156332cf4870738f7769b719a02d7b40af) )
379
380 ROM_REGION( 0x80000, REGION_SOUND1, 0 ) /* Oki samples */
381 ROM_LOAD( "may03", 0x00000, 0x80000, CRC(b6e42bae) SHA1(c282cdf7db30fb63340cc609bf00f5ab63a75583) )
382 ROM_END
383
384 ROM_START( dietgou )
385 ROM_REGION( 0x80000, REGION_CPU1, 0 ) /* DE102 code (encrypted) */
386 ROM_LOAD16_BYTE( "jx.00", 0x000001, 0x040000, CRC(1a9de04f) SHA1(7ce1e7cf4cdce2b02da4df2a6ae9a9e665e24422) )
387 ROM_LOAD16_BYTE( "jx.01", 0x000000, 0x040000, CRC(79c097c8) SHA1(be49055ee324535e1118d243bd49e74ec1d2a2d7) )
388
389 ROM_REGION( 0x10000, REGION_CPU2, 0 )
390 ROM_LOAD( "jx.02", 0x00000, 0x10000, CRC(4e3492a5) SHA1(5f302bdbacbf95ea9f3694c48545a1d6bba4b019) )
391
392 ROM_REGION( 0x100000, REGION_GFX1, 0 )
393 ROM_LOAD( "may00", 0x00000, 0x100000, CRC(234d1f8d) SHA1(42d23aad20df20cbd2359cc12bdd47636b2027d3) )
394
395 ROM_REGION( 0x200000, REGION_GFX2, 0 )
396 ROM_LOAD16_BYTE( "may01", 0x000000, 0x100000, CRC(2da57d04) SHA1(3898e9fef365ecaa4d86aa11756b527a4fffb494) )
397 ROM_LOAD16_BYTE( "may02", 0x000001, 0x100000, CRC(3a66a713) SHA1(beeb99156332cf4870738f7769b719a02d7b40af) )
398
399 ROM_REGION( 0x80000, REGION_SOUND1, 0 ) /* Oki samples */
400 ROM_LOAD( "may03", 0x00000, 0x80000, CRC(b6e42bae) SHA1(c282cdf7db30fb63340cc609bf00f5ab63a75583) )
401 ROM_END
402
403 ROM_START( dietgoe )
404 ROM_REGION( 0x80000, REGION_CPU1, 0 ) /* DE102 code (encrypted) */
405 ROM_LOAD16_BYTE( "jy00-1.4h", 0x000001, 0x040000, CRC(8bce137d) SHA1(55f5b1c89330803c6147f9656f2cabe8d1de8478) )
406 ROM_LOAD16_BYTE( "jy01-1.5h", 0x000000, 0x040000, CRC(eca50450) SHA1(1a24117e3b1b66d7dbc5484c94cc2c627d34e6a3) )
407
408 ROM_REGION( 0x10000, REGION_CPU2, 0 )
409 ROM_LOAD( "jy02.m14", 0x00000, 0x10000, CRC(4e3492a5) SHA1(5f302bdbacbf95ea9f3694c48545a1d6bba4b019) )
410
411 ROM_REGION( 0x100000, REGION_GFX1, 0 )
412 ROM_LOAD( "may00", 0x00000, 0x100000, CRC(234d1f8d) SHA1(42d23aad20df20cbd2359cc12bdd47636b2027d3) )
413
414 ROM_REGION( 0x200000, REGION_GFX2, 0 )
415 ROM_LOAD16_BYTE( "may01", 0x000000, 0x100000, CRC(2da57d04) SHA1(3898e9fef365ecaa4d86aa11756b527a4fffb494) )
416 ROM_LOAD16_BYTE( "may02", 0x000001, 0x100000, CRC(3a66a713) SHA1(beeb99156332cf4870738f7769b719a02d7b40af) )
417
418 ROM_REGION( 0x80000, REGION_SOUND1, 0 ) /* Oki samples */
419 ROM_LOAD( "may03", 0x00000, 0x80000, CRC(b6e42bae) SHA1(c282cdf7db30fb63340cc609bf00f5ab63a75583) )
420 ROM_END
421
422 ROM_START( dietgoj )
423 ROM_REGION( 0x80000, REGION_CPU1, 0 ) /* DE102 code (encrypted) */
424 ROM_LOAD16_BYTE( "jw-00-2.4h", 0x000001, 0x040000, CRC(e6ba6c49) SHA1(d5eaea81f1353c58c03faae67428f7ee98e766b1) )
425 ROM_LOAD16_BYTE( "jw-01-2.5h", 0x000000, 0x040000, CRC(684a3d57) SHA1(bd7a57ba837a1dc8f92b5ebcb46e50db1f98524f) )
426
427 ROM_REGION( 0x10000, REGION_CPU2, 0 )
428 ROM_LOAD( "jx.02", 0x00000, 0x10000, CRC(4e3492a5) SHA1(5f302bdbacbf95ea9f3694c48545a1d6bba4b019) )
429
430 ROM_REGION( 0x100000, REGION_GFX1, 0 )
431 ROM_LOAD( "may00", 0x00000, 0x100000, CRC(234d1f8d) SHA1(42d23aad20df20cbd2359cc12bdd47636b2027d3) )
432
433 ROM_REGION( 0x200000, REGION_GFX2, 0 )
434 ROM_LOAD16_BYTE( "may01", 0x000000, 0x100000, CRC(2da57d04) SHA1(3898e9fef365ecaa4d86aa11756b527a4fffb494) )
435 ROM_LOAD16_BYTE( "may02", 0x000001, 0x100000, CRC(3a66a713) SHA1(beeb99156332cf4870738f7769b719a02d7b40af) )
436
437 ROM_REGION( 0x80000, REGION_SOUND1, 0 ) /* Oki samples */
438 ROM_LOAD( "may03", 0x00000, 0x80000, CRC(b6e42bae) SHA1(c282cdf7db30fb63340cc609bf00f5ab63a75583) )
439 ROM_END
440
441 extern void deco102_decrypt_cpu(int address_xor, int data_select_xor, int opcode_select_xor);
442
DRIVER_INIT(dietgo)443 static DRIVER_INIT( dietgo )
444 {
445 deco56_decrypt(REGION_GFX1);
446 deco102_decrypt_cpu(0xe9ba, 0x01, 0x19);
447 }
448
449 GAME( 1992, dietgo, 0, dietgo, dietgo, dietgo, ROT0, "Data East Corporation", "Diet Go Go (Euro v1.1)" )
450 GAME( 1992, dietgoe, dietgo, dietgo, dietgo, dietgo, ROT0, "Data East Corporation", "Diet Go Go (Euro v1.1,1992.08.04)" ) /* weird, still version 1.1 but different date*/
451 GAME( 1992, dietgou, dietgo, dietgo, dietgo, dietgo, ROT0, "Data East Corporation", "Diet Go Go (USA v1.1)" )
452 GAME( 1992, dietgoj, dietgo, dietgo, dietgo, dietgo, ROT0, "Data East Corporation", "Diet Go Go (Japan v1.1)" )
453