~ubuntu-branches/debian/sid/mame/sid

« back to all changes in this revision

Viewing changes to mess/src/mame/drivers/thedeep.c

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach, Jordi Mallach, Emmanuel Kasper
  • Date: 2011-12-19 22:56:27 UTC
  • mfrom: (0.1.2)
  • Revision ID: package-import@ubuntu.com-20111219225627-ub5oga1oys4ogqzm
Tags: 0.144-1
[ Jordi Mallach ]
* Fix syntax errors in DEP5 copyright file (lintian).
* Use a versioned copyright Format specification field.
* Update Vcs-* URLs.
* Move transitional packages to the new metapackages section, and make
  them priority extra.
* Remove references to GNU/Linux and MESS sources from copyright.
* Add build variables for s390x.
* Use .xz tarballs as it cuts 4MB for the upstream sources.
* Add nplayers.ini as a patch. Update copyright file to add CC-BY-SA-3.0.

[ Emmanuel Kasper ]
* New upstream release. Closes: #651538.
* Add Free Desktop compliant png icons of various sizes taken from
  the hydroxygen iconset
* Mess is now built from a new source package, to avoid possible source
  incompatibilities between mame and the mess overlay.
* Mame-tools are not built from the mame source package anymore, but
  from the mess source package

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
 
3
 
                            -= Run Deep / The Deep =-
4
 
 
5
 
                    driver by   Luca Elia (l.elia@tin.it)
6
 
 
7
 
Main CPU    :   Z80 (LH0080B @ 6MHz) + i8751 (Intel C8751H-88, protection)
8
 
 
9
 
Sound CPU   :   65C02 (R65C02P2 @ 2MHz)
10
 
 
11
 
Sound Chips :   YM2203C
12
 
 
13
 
Video Chips :   L7B0073 DATA EAST MXC 06 8746
14
 
                L7A0072 DATA EAST BAC 06 VAE8713
15
 
 
16
 
Board       :   DE-0298-1
17
 
 
18
 
Notes:
19
 
 
20
 
- The MCU handles coins and the bank switching of the roms for the main cpu.
21
 
  It additionally provides some z80 code that is copied to ram.
22
 
 
23
 
- One ROM (FI-1) is not used.
24
 
 
25
 
***************************************************************************/
26
 
 
27
 
#include "emu.h"
28
 
#include "cpu/z80/z80.h"
29
 
#include "cpu/m6502/m6502.h"
30
 
#include "deprecat.h"
31
 
#include "includes/thedeep.h"
32
 
#include "sound/2203intf.h"
33
 
 
34
 
/***************************************************************************
35
 
 
36
 
                            Main CPU + MCU simulation
37
 
 
38
 
***************************************************************************/
39
 
 
40
 
 
41
 
static WRITE8_HANDLER( thedeep_nmi_w )
42
 
{
43
 
        thedeep_state *state = space->machine().driver_data<thedeep_state>();
44
 
        state->m_nmi_enable = data;
45
 
}
46
 
 
47
 
static WRITE8_HANDLER( thedeep_sound_w )
48
 
{
49
 
        soundlatch_w(space, 0, data);
50
 
        cputag_set_input_line(space->machine(), "audiocpu", INPUT_LINE_NMI, PULSE_LINE);
51
 
}
52
 
 
53
 
 
54
 
static MACHINE_RESET( thedeep )
55
 
{
56
 
        thedeep_state *state = machine.driver_data<thedeep_state>();
57
 
        memory_set_bankptr(machine, "bank1", machine.region("maincpu")->base() + 0x10000 + 0 * 0x4000);
58
 
        state->m_scroll[0] = 0;
59
 
        state->m_scroll[1] = 0;
60
 
        state->m_scroll[2] = 0;
61
 
        state->m_scroll[3] = 0;
62
 
        state->m_protection_command = 0;
63
 
        state->m_protection_index = -1;
64
 
        state->m_protection_irq = 0;
65
 
        state->m_rombank = -1;
66
 
}
67
 
 
68
 
static WRITE8_HANDLER( thedeep_protection_w )
69
 
{
70
 
        thedeep_state *state = space->machine().driver_data<thedeep_state>();
71
 
        state->m_protection_command = data;
72
 
        switch (state->m_protection_command)
73
 
        {
74
 
                case 0x11:
75
 
                        flip_screen_set(space->machine(), 1);
76
 
                break;
77
 
 
78
 
                case 0x20:
79
 
                        flip_screen_set(space->machine(), 0);
80
 
                break;
81
 
 
82
 
                case 0x30:
83
 
                case 0x31:
84
 
                case 0x32:
85
 
                case 0x33:
86
 
                {
87
 
                        UINT8 *rom;
88
 
                        int new_rombank = state->m_protection_command & 3;
89
 
                        if (state->m_rombank == new_rombank)    break;
90
 
                        state->m_rombank = new_rombank;
91
 
                        rom = space->machine().region("maincpu")->base();
92
 
                        memory_set_bankptr(space->machine(), "bank1", rom + 0x10000 + state->m_rombank * 0x4000);
93
 
                        /* there's code which falls through from the fixed ROM to bank #1, I have to */
94
 
                        /* copy it there otherwise the CPU bank switching support will not catch it. */
95
 
                        memcpy(rom + 0x08000, rom + 0x10000 + state->m_rombank * 0x4000, 0x4000);
96
 
                }
97
 
                break;
98
 
 
99
 
                case 0x59:
100
 
                {
101
 
                        if (state->m_protection_index < 0)
102
 
                                state->m_protection_index = 0;
103
 
 
104
 
                        if ( state->m_protection_index < 0x19b )
105
 
// d000-d00c:   hl += a * b
106
 
// d00d-d029:   input a (e.g. $39) output hl (e.g. h=$03 l=$09).
107
 
//              Replace trainling 0's with space ($10). 00 -> '  '
108
 
// d02a-d039:   input a (e.g. $39) output hl (e.g. h=$03 l=$09).
109
 
//              Replace trainling 0's with space ($10). 00 -> ' 0'
110
 
// d03a-d046:   input a (e.g. $39) output hl (e.g. h=$03 l=$09). 00 -> '00'
111
 
// d047-d086:   a /= e (e can be 0!)
112
 
// d087-d0a4:   print ASCII string from HL to IX (sub $30 to every char)
113
 
// d0a4-d0be:   print any string from HL to IX
114
 
// d0bf-d109:   print ASCII string from HL to IX. Color is in c. (e.g. "game over")
115
 
// d10a-d11f:   print 2 digit decimal number in hl to ix, color c. change ix
116
 
// d120-d157:   update score: add 3 BCD bytes at ix to those at iy, then clear those at ix
117
 
// d158-d165:   print digit: (IX+0) <- H; (IX+1) <-L. ix+=40
118
 
// d166-d174:   hl = (hl + 2*a)
119
 
// d175-d181:   hl *= e (e must be non zero)
120
 
// d182-d19a:   hl /= de
121
 
                                state->m_protection_data = space->machine().region("cpu3")->base()[0x185+state->m_protection_index++];
122
 
                        else
123
 
                                state->m_protection_data = 0xc9;
124
 
 
125
 
                        state->m_protection_irq  = 1;
126
 
                }
127
 
                break;
128
 
 
129
 
                default:
130
 
                        logerror( "pc %04x: protection_command %02x\n", cpu_get_pc(&space->device()),state->m_protection_command);
131
 
        }
132
 
}
133
 
 
134
 
static READ8_HANDLER( thedeep_e004_r )
135
 
{
136
 
        thedeep_state *state = space->machine().driver_data<thedeep_state>();
137
 
        return state->m_protection_irq ? 1 : 0;
138
 
}
139
 
 
140
 
static READ8_HANDLER( thedeep_protection_r )
141
 
{
142
 
        thedeep_state *state = space->machine().driver_data<thedeep_state>();
143
 
        state->m_protection_irq = 0;
144
 
        return state->m_protection_data;
145
 
}
146
 
 
147
 
static WRITE8_HANDLER( thedeep_e100_w )
148
 
{
149
 
        if (data != 1)
150
 
                logerror("pc %04x: e100 = %02x\n", cpu_get_pc(&space->device()),data);
151
 
}
152
 
 
153
 
static ADDRESS_MAP_START( main_map, AS_PROGRAM, 8 )
154
 
        AM_RANGE(0x0000, 0x7fff) AM_ROM
155
 
        AM_RANGE(0x8000, 0xbfff) AM_ROMBANK("bank1")    // ROM (banked)
156
 
        AM_RANGE(0xc000, 0xcfff) AM_RAM
157
 
        AM_RANGE(0xd000, 0xdfff) AM_RAM                                         // RAM (MCU data copied here)
158
 
        AM_RANGE(0xe000, 0xe000) AM_READWRITE(thedeep_protection_r, thedeep_protection_w        )       // To MCU
159
 
        AM_RANGE(0xe004, 0xe004) AM_READWRITE(thedeep_e004_r, thedeep_nmi_w                     )       //
160
 
        AM_RANGE(0xe008, 0xe008) AM_READ_PORT("e008")                   // P1 (Inputs)
161
 
        AM_RANGE(0xe009, 0xe009) AM_READ_PORT("e009")                   // P2
162
 
        AM_RANGE(0xe00a, 0xe00a) AM_READ_PORT("e00a")                   // DSW1
163
 
        AM_RANGE(0xe00b, 0xe00b) AM_READ_PORT("e00b")                   // DSW2
164
 
        AM_RANGE(0xe00c, 0xe00c) AM_WRITE(thedeep_sound_w               )       // To Sound CPU
165
 
        AM_RANGE(0xe100, 0xe100) AM_WRITE(thedeep_e100_w                )       // ?
166
 
        AM_RANGE(0xe210, 0xe213) AM_WRITEONLY AM_BASE_MEMBER(thedeep_state, m_scroll                            )       // Scroll
167
 
        AM_RANGE(0xe400, 0xe7ff) AM_RAM AM_BASE_SIZE_MEMBER(thedeep_state, m_spriteram, m_spriteram_size)       // Sprites
168
 
        AM_RANGE(0xe800, 0xefff) AM_RAM_WRITE(thedeep_vram_1_w) AM_BASE_MEMBER(thedeep_state, m_vram_1          )       // Text Layer
169
 
        AM_RANGE(0xf000, 0xf7ff) AM_RAM_WRITE(thedeep_vram_0_w) AM_BASE_MEMBER(thedeep_state, m_vram_0          )       // Background Layer
170
 
        AM_RANGE(0xf800, 0xf83f) AM_RAM AM_BASE_MEMBER(thedeep_state, m_scroll2                         )       // Column Scroll
171
 
        AM_RANGE(0xf840, 0xffff) AM_RAM
172
 
ADDRESS_MAP_END
173
 
 
174
 
 
175
 
/***************************************************************************
176
 
 
177
 
                                    Sound CPU
178
 
 
179
 
***************************************************************************/
180
 
 
181
 
static ADDRESS_MAP_START( audio_map, AS_PROGRAM, 8 )
182
 
        AM_RANGE(0x0000, 0x07ff) AM_RAM
183
 
        AM_RANGE(0x0800, 0x0801) AM_DEVWRITE("ymsnd", ym2203_w  )       //
184
 
        AM_RANGE(0x3000, 0x3000) AM_READ(soundlatch_r                           )       // From Main CPU
185
 
        AM_RANGE(0x8000, 0xffff) AM_ROM
186
 
ADDRESS_MAP_END
187
 
 
188
 
 
189
 
/***************************************************************************
190
 
 
191
 
                                Input Ports
192
 
 
193
 
***************************************************************************/
194
 
 
195
 
static INPUT_PORTS_START( thedeep )
196
 
        PORT_START("e008")
197
 
        PORT_BIT(  0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    )    // Up / down shown in service mode
198
 
        PORT_BIT(  0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN  )
199
 
        PORT_BIT(  0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  )
200
 
        PORT_BIT(  0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT )
201
 
        PORT_BIT(  0x10, IP_ACTIVE_LOW, IPT_BUTTON1 )
202
 
        PORT_BIT(  0x20, IP_ACTIVE_LOW, IPT_BUTTON2 )
203
 
        PORT_BIT(  0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
204
 
        PORT_BIT(  0x80, IP_ACTIVE_LOW, IPT_START1  )
205
 
 
206
 
        PORT_START("e009")
207
 
        PORT_BIT(  0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2)
208
 
        PORT_BIT(  0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2)
209
 
        PORT_BIT(  0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2)
210
 
        PORT_BIT(  0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2)
211
 
        PORT_BIT(  0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
212
 
        PORT_BIT(  0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2)
213
 
        PORT_BIT(  0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
214
 
        PORT_BIT(  0x80, IP_ACTIVE_LOW, IPT_START2  )
215
 
 
216
 
        PORT_START("e00a")
217
 
        PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_A ) )
218
 
        PORT_DIPSETTING(    0x03, DEF_STR( 1C_1C ) )
219
 
        PORT_DIPSETTING(    0x02, DEF_STR( 1C_2C ) )
220
 
        PORT_DIPSETTING(    0x01, DEF_STR( 1C_3C ) )
221
 
        PORT_DIPSETTING(    0x00, DEF_STR( 1C_4C ) )
222
 
        PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Coin_B ) )
223
 
        PORT_DIPSETTING(    0x00, DEF_STR( 4C_1C ) )
224
 
        PORT_DIPSETTING(    0x04, DEF_STR( 3C_1C ) )
225
 
        PORT_DIPSETTING(    0x08, DEF_STR( 2C_1C ) )
226
 
        PORT_DIPSETTING(    0x0c, DEF_STR( 1C_1C ) )
227
 
        PORT_DIPNAME( 0x10, 0x10, "Invulnerability (Cheat)")
228
 
        PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
229
 
        PORT_DIPSETTING(    0x00, DEF_STR( On ) )
230
 
        PORT_DIPNAME( 0x20, 0x20, "Start Stage" )
231
 
        PORT_DIPSETTING(    0x20, "1" )
232
 
        PORT_DIPSETTING(    0x00, "4" )
233
 
        PORT_DIPNAME( 0x40, 0x00, DEF_STR( Demo_Sounds ) )
234
 
        PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
235
 
        PORT_DIPSETTING(    0x00, DEF_STR( On ) )
236
 
        PORT_DIPNAME( 0x80, 0x80, DEF_STR( Flip_Screen ) )
237
 
        PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
238
 
        PORT_DIPSETTING(    0x00, DEF_STR( On ) )
239
 
 
240
 
        PORT_START("e00b")
241
 
        PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) )
242
 
        PORT_DIPSETTING(    0x02, DEF_STR( Easy ) )
243
 
        PORT_DIPSETTING(    0x03, DEF_STR( Normal ) )
244
 
        PORT_DIPSETTING(    0x01, DEF_STR( Harder ) )
245
 
        PORT_DIPSETTING(    0x00, DEF_STR( Hardest ) )
246
 
        PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Lives ) )
247
 
        PORT_DIPSETTING(    0x0c, "3" )
248
 
        PORT_DIPSETTING(    0x08, "4" )
249
 
        PORT_DIPSETTING(    0x04, "5" )
250
 
        PORT_DIPSETTING(    0x00, "6" )
251
 
        PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) )
252
 
        PORT_DIPSETTING(    0x00, "50k" )
253
 
        PORT_DIPSETTING(    0x30, "50k 70k" )
254
 
        PORT_DIPSETTING(    0x20, "60k 80k" )
255
 
        PORT_DIPSETTING(    0x10, "80k 100k" )
256
 
        PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unused ) ) /* Listed as "Unused" in the manual */
257
 
        PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
258
 
        PORT_DIPSETTING(    0x00, DEF_STR( On ) )
259
 
        PORT_SERVICE( 0x80, IP_ACTIVE_LOW )
260
 
 
261
 
        PORT_START("MCU")       // Read by the mcu
262
 
        PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_IMPULSE(1)
263
 
        PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_IMPULSE(1)
264
 
        PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SERVICE1 ) PORT_IMPULSE(1)
265
 
INPUT_PORTS_END
266
 
 
267
 
 
268
 
/***************************************************************************
269
 
 
270
 
                                Graphics Layouts
271
 
 
272
 
***************************************************************************/
273
 
 
274
 
static const gfx_layout layout_8x8x2 =
275
 
{
276
 
        8,8,
277
 
        RGN_FRAC(1,2),
278
 
        2,
279
 
        { 0, 4 },
280
 
        { STEP4(RGN_FRAC(1,2),1), STEP4(RGN_FRAC(0,2),1) },
281
 
        { STEP8(0,8) },
282
 
        8*8
283
 
};
284
 
 
285
 
static const gfx_layout layout_16x16x4 =
286
 
{
287
 
        16,16,
288
 
        RGN_FRAC(1,4),
289
 
        4,
290
 
        { RGN_FRAC(0,4),RGN_FRAC(1,4),RGN_FRAC(2,4),RGN_FRAC(3,4) },
291
 
        { STEP8(8*8*2,1), STEP8(0,1) },
292
 
        { STEP16(0,8) },
293
 
        16*16
294
 
};
295
 
 
296
 
static GFXDECODE_START( thedeep )
297
 
        GFXDECODE_ENTRY( "sprites", 0, layout_16x16x4,  0x080,  8 ) // [0] Sprites
298
 
        GFXDECODE_ENTRY( "bg_gfx", 0, layout_16x16x4,   0x100, 16 ) // [1] Background Layer
299
 
        GFXDECODE_ENTRY( "text", 0, layout_8x8x2,       0x000, 16 ) // [2] Text Layer
300
 
GFXDECODE_END
301
 
 
302
 
 
303
 
 
304
 
/***************************************************************************
305
 
 
306
 
                                Machine Drivers
307
 
 
308
 
***************************************************************************/
309
 
 
310
 
static void irqhandler(device_t *device, int irq)
311
 
{
312
 
        cputag_set_input_line(device->machine(), "audiocpu", 0, irq ? ASSERT_LINE : CLEAR_LINE);
313
 
}
314
 
 
315
 
static const ym2203_interface thedeep_ym2203_intf =
316
 
{
317
 
        {
318
 
                AY8910_LEGACY_OUTPUT,
319
 
                AY8910_DEFAULT_LOADS,
320
 
                DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL
321
 
        },
322
 
        irqhandler
323
 
};
324
 
 
325
 
static INTERRUPT_GEN( thedeep_interrupt )
326
 
{
327
 
        thedeep_state *state = device->machine().driver_data<thedeep_state>();
328
 
        if (cpu_getiloops(device))
329
 
        {
330
 
                if (state->m_protection_command != 0x59)
331
 
                {
332
 
                        int coins = input_port_read(device->machine(), "MCU");
333
 
                        if              (coins & 1)     state->m_protection_data = 1;
334
 
                        else if (coins & 2)     state->m_protection_data = 2;
335
 
                        else if (coins & 4)     state->m_protection_data = 3;
336
 
                        else                            state->m_protection_data = 0;
337
 
 
338
 
                        if (state->m_protection_data)
339
 
                                state->m_protection_irq = 1;
340
 
                }
341
 
                if (state->m_protection_irq)
342
 
                        device_set_input_line(device, 0, HOLD_LINE);
343
 
        }
344
 
        else
345
 
        {
346
 
                if (state->m_nmi_enable)
347
 
                {
348
 
                        device_set_input_line(device, INPUT_LINE_NMI, ASSERT_LINE);
349
 
                        device_set_input_line(device, INPUT_LINE_NMI, CLEAR_LINE);
350
 
                }
351
 
        }
352
 
}
353
 
 
354
 
static MACHINE_CONFIG_START( thedeep, thedeep_state )
355
 
 
356
 
        /* basic machine hardware */
357
 
        MCFG_CPU_ADD("maincpu", Z80, XTAL_12MHz/2)              /* verified on pcb */
358
 
        MCFG_CPU_PROGRAM_MAP(main_map)
359
 
        MCFG_CPU_VBLANK_INT_HACK(thedeep_interrupt,2)   /* IRQ by MCU, NMI by vblank (maskable) */
360
 
 
361
 
        MCFG_CPU_ADD("audiocpu", M65C02, XTAL_12MHz/8)          /* verified on pcb */
362
 
        MCFG_CPU_PROGRAM_MAP(audio_map)
363
 
        /* IRQ by YM2203, NMI by when sound latch written by main cpu */
364
 
 
365
 
        /* CPU3 is a i8751 running at 8Mhz (8mhz xtal)*/
366
 
 
367
 
        MCFG_MACHINE_RESET(thedeep)
368
 
 
369
 
        /* video hardware */
370
 
        MCFG_SCREEN_ADD("screen", RASTER)
371
 
        MCFG_SCREEN_REFRESH_RATE(60)
372
 
        MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0))
373
 
        MCFG_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
374
 
        MCFG_SCREEN_SIZE(0x100, 0xf8)
375
 
        MCFG_SCREEN_VISIBLE_AREA(0, 0x100-1, 0, 0xf8-1)
376
 
        MCFG_SCREEN_UPDATE(thedeep)
377
 
 
378
 
        MCFG_GFXDECODE(thedeep)
379
 
        MCFG_PALETTE_LENGTH(512)
380
 
 
381
 
        MCFG_PALETTE_INIT(thedeep)
382
 
        MCFG_VIDEO_START(thedeep)
383
 
 
384
 
        /* sound hardware */
385
 
        MCFG_SPEAKER_STANDARD_MONO("mono")
386
 
 
387
 
        MCFG_SOUND_ADD("ymsnd", YM2203, XTAL_12MHz/4)  /* verified on pcb */
388
 
        MCFG_SOUND_CONFIG(thedeep_ym2203_intf)
389
 
        MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
390
 
MACHINE_CONFIG_END
391
 
 
392
 
 
393
 
 
394
 
/***************************************************************************
395
 
 
396
 
                                ROMs Loading
397
 
 
398
 
***************************************************************************/
399
 
 
400
 
/***************************************************************************
401
 
 
402
 
Here are the proms for The Deep!
403
 
NOTE: This game is Vertical.
404
 
I couldn't test this board so I don't know the manufakturer, sorry.
405
 
1 Z80
406
 
1 R6502
407
 
1 YM 2203
408
 
1 OSC 12 Mhz
409
 
1 OSC 8 Mhz
410
 
1 MPU 8751 (which is read-protected)
411
 
 
412
 
If you need more info or if this package doesn't
413
 
Work, mail me.
414
 
 
415
 
..............CaBBe!...................................
416
 
 
417
 
***************************************************************************/
418
 
 
419
 
ROM_START( thedeep )
420
 
        ROM_REGION( 0x20000, "maincpu", 0 )             /* Z80 Code */
421
 
        ROM_LOAD( "dp-10.rom", 0x00000, 0x08000, CRC(7480b7a5) SHA1(ac6f121873a70c8077576322c201b7089c7b8a91) )
422
 
        ROM_LOAD( "dp-09.rom", 0x10000, 0x10000, CRC(c630aece) SHA1(809916a1ba1c8e0af4c228b0f26ac638e2abf81e) )
423
 
 
424
 
        ROM_REGION( 0x10000, "audiocpu", 0 )            /* 65C02 Code */
425
 
        ROM_LOAD( "dp-12.rom", 0x8000, 0x8000, CRC(c4e848c4) SHA1(d2dec5c8d7d59703f5485cab9124bf4f835fe728) )
426
 
 
427
 
        ROM_REGION( 0x1000, "cpu3", 0 )         /* i8751 Code */
428
 
        ROM_LOAD( "dp-14", 0x0000, 0x1000, CRC(0b886dad) SHA1(487192764342f8b0a320d20a378bf94f84592da9) )       // 1xxxxxxxxxxx = 0xFF
429
 
 
430
 
        ROM_REGION( 0x40000, "sprites", 0 )     /* Sprites */
431
 
        ROM_LOAD( "dp-08.rom", 0x00000, 0x10000, CRC(c5624f6b) SHA1(a3c0b13cddae760f30c7344d718cd69cad990054) )
432
 
        ROM_LOAD( "dp-07.rom", 0x10000, 0x10000, CRC(c76768c1) SHA1(e41ace1cb06ebe7f676b3b179b7dd01d00cf4d6a) )
433
 
        ROM_LOAD( "dp-06.rom", 0x20000, 0x10000, CRC(98adea78) SHA1(6a1af70de995a0a5e42fd395dd9454b7e2d9cb82) )
434
 
        ROM_LOAD( "dp-05.rom", 0x30000, 0x10000, CRC(76ea7dd1) SHA1(c29abb44a1182b47da749eeeb2db025ae3f28ea7) )
435
 
 
436
 
        ROM_REGION( 0x40000, "bg_gfx", 0 )      /* 16x16x4 Background Layer */
437
 
        ROM_LOAD( "dp-03.rom", 0x00000, 0x10000, CRC(6bf5d819) SHA1(74079632d7c88ec22010c1a5bece0e36847fdab9) )
438
 
        ROM_LOAD( "dp-01.rom", 0x10000, 0x10000, CRC(e56be2fe) SHA1(25acc0f6d9cb5a727c9bac3e80aeb85a4727ddb0) )
439
 
        ROM_LOAD( "dp-04.rom", 0x20000, 0x10000, CRC(4db02c3c) SHA1(6284541372dec1113570cef31ca3c1a202fb4add) )
440
 
        ROM_LOAD( "dp-02.rom", 0x30000, 0x10000, CRC(1add423b) SHA1(b565340d719044ba2c428aab74f43f5a7cf7e2a3) )
441
 
 
442
 
        ROM_REGION( 0x4000, "text", 0 ) /* 8x8x2 Text Layer */
443
 
        ROM_LOAD( "dp-11.rom", 0x0000, 0x4000, CRC(196e23d1) SHA1(ed14e63fccb3e5dce462d9b8155e78749eaf9b3b) )
444
 
 
445
 
        ROM_REGION( 0x600, "proms", 0 ) /* Colors */
446
 
        ROM_LOAD( "fi-1", 0x000, 0x200, CRC(f31efe09) SHA1(808c90fe02ed7b4000967c331b8773c4168b8a97) )  // FIXED BITS (xxxxxx0xxxxxx0x0)
447
 
        ROM_LOAD( "fi-2", 0x200, 0x200, CRC(f305c8d5) SHA1(f82c709dc75a3c681d6f0ebf2702cb90110b1f0c) )  // FIXED BITS (0000xxxx)
448
 
        ROM_LOAD( "fi-3", 0x400, 0x200, CRC(f61a9686) SHA1(24082f60b72268d240ceca6999bdf18872625cd2) )
449
 
ROM_END
450
 
 
451
 
ROM_START( rundeep )
452
 
        ROM_REGION( 0x20000, "maincpu", 0 )             /* Z80 Code */
453
 
        ROM_LOAD( "3", 0x00000, 0x08000, CRC(c9c9e194) SHA1(e9552c3321585f0902f29b55a7de8e2316885713) )
454
 
        ROM_LOAD( "9", 0x10000, 0x10000, CRC(931f4e67) SHA1(f4942c5f0fdbcd6cdb96ddbbf2015f938b56b466) )
455
 
 
456
 
        ROM_REGION( 0x10000, "audiocpu", 0 )            /* 65C02 Code */
457
 
        ROM_LOAD( "dp-12.rom", 0x8000, 0x8000, CRC(c4e848c4) SHA1(d2dec5c8d7d59703f5485cab9124bf4f835fe728) )
458
 
 
459
 
        ROM_REGION( 0x1000, "cpu3", 0 )         /* i8751 Code */
460
 
        ROM_LOAD( "dp-14", 0x0000, 0x1000, CRC(0b886dad) SHA1(487192764342f8b0a320d20a378bf94f84592da9) )       // 1xxxxxxxxxxx = 0xFF
461
 
 
462
 
        ROM_REGION( 0x40000, "sprites", 0 )     /* Sprites */
463
 
        ROM_LOAD( "dp-08.rom", 0x00000, 0x10000, CRC(c5624f6b) SHA1(a3c0b13cddae760f30c7344d718cd69cad990054) )
464
 
        ROM_LOAD( "dp-07.rom", 0x10000, 0x10000, CRC(c76768c1) SHA1(e41ace1cb06ebe7f676b3b179b7dd01d00cf4d6a) )
465
 
        ROM_LOAD( "dp-06.rom", 0x20000, 0x10000, CRC(98adea78) SHA1(6a1af70de995a0a5e42fd395dd9454b7e2d9cb82) )
466
 
        ROM_LOAD( "dp-05.rom", 0x30000, 0x10000, CRC(76ea7dd1) SHA1(c29abb44a1182b47da749eeeb2db025ae3f28ea7) )
467
 
 
468
 
        ROM_REGION( 0x40000, "bg_gfx", 0 )      /* 16x16x4 Background Layer */
469
 
        ROM_LOAD( "dp-03.rom", 0x00000, 0x10000, CRC(6bf5d819) SHA1(74079632d7c88ec22010c1a5bece0e36847fdab9) )
470
 
        ROM_LOAD( "dp-01.rom", 0x10000, 0x10000, CRC(e56be2fe) SHA1(25acc0f6d9cb5a727c9bac3e80aeb85a4727ddb0) )
471
 
        ROM_LOAD( "dp-04.rom", 0x20000, 0x10000, CRC(4db02c3c) SHA1(6284541372dec1113570cef31ca3c1a202fb4add) )
472
 
        ROM_LOAD( "dp-02.rom", 0x30000, 0x10000, CRC(1add423b) SHA1(b565340d719044ba2c428aab74f43f5a7cf7e2a3) )
473
 
 
474
 
        ROM_REGION( 0x4000, "text", 0 ) /* 8x8x2 Text Layer */
475
 
        ROM_LOAD( "11", 0x0000, 0x4000, CRC(5d29e4b9) SHA1(608345291062e9ce329ebe9a8c1e65d52e358785) )
476
 
 
477
 
        ROM_REGION( 0x600, "proms", 0 ) /* Colors */
478
 
        ROM_LOAD( "fi-1", 0x000, 0x200, CRC(f31efe09) SHA1(808c90fe02ed7b4000967c331b8773c4168b8a97) )  // FIXED BITS (xxxxxx0xxxxxx0x0)
479
 
        ROM_LOAD( "fi-2", 0x200, 0x200, CRC(f305c8d5) SHA1(f82c709dc75a3c681d6f0ebf2702cb90110b1f0c) )  // FIXED BITS (0000xxxx)
480
 
        ROM_LOAD( "fi-3", 0x400, 0x200, CRC(f61a9686) SHA1(24082f60b72268d240ceca6999bdf18872625cd2) )
481
 
ROM_END
482
 
 
483
 
GAME( 1987, thedeep, 0,      thedeep, thedeep, 0, ROT270, "Wood Place Inc.", "The Deep (Japan)", 0 )
484
 
GAME( 1988, rundeep, thedeep,thedeep, thedeep, 0, ROT270, "bootleg (Cream)", "Run Deep", 0 )