1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
|
// license:BSD-3-Clause
// copyright-holders:Ernesto Corvi
/***************************************************************************
Side Pocket - (c) 1986 Data East
The original board has an 8751 protection mcu
Ernesto Corvi
ernesto@imagina.com
Thanks must go to Mirko Buffoni for testing the music.
i8751 protection simulation and other fixes by Bryan McPhail, 15/10/00.
ToDo:
- sidepcktj: Intermission screen's background for player 2 is completely screwed (Cause is currently unknown)
Stephh's notes (based on the games M6809 code and some tests) :
1) 'sidepckt'
- World version.
- Credits are BCD coded on 1 byte (range 0x00-0x99) at location 0x0007.
- Bonus lives settings don't match the Dip Switches page : even if the table at 0x40af (4 * 2 words) is good,
there's a ingame bug in code at 0x4062 :
4062: CE 40 AF LDU #$40AF U = 40AF
4065: F6 30 03 LDB $3003
4068: 53 COMB
4069: 54 LSRB
406A: 54 LSRB
406B: C4 0C ANDB #$0C
406D: EC C5 LDD B,U U still = 40AF
406F: 33 42 LEAU $2,U U ALWAYS = 40B1
So 2nd and next extra lives are ALWAYS set to 50k+ regardless of the Dip Switches settings !
- Player 2 controls are never used ingame for player 2 due to extra code at 0x5a35 :
5A2E: 96 1A LDA $1A
5A30: 84 01 ANDA #$01 A = 00 for player 1 and 01 for player 2
5A32: 8E 30 00 LDX #$3000
5A35: D6 CA LDB $CA B ALWAYS = 01 due to initialisation of $CA at 0x43f4
5A37: C5 01 BITB #$01
5A39: 26 02 BNE $5A3D always jumps to 0x53ad
5A3B: 30 86 LEAX A,X this instruction is NEVER executed
5A3D: A6 84 LDA ,X
- Player 2 controls are also never used for player 2 when entering initials due to extra code at 0x8baf :
8BAF: 96 1A LDA $1A
8BB1: 84 01 ANDA #$01 A = 00 for player 1 and 01 for player 2
8BB3: D6 CA LDB $CA B ALWAYS = 01 due to initialisation of $CA at 0x43f4
8BB5: 27 02 BEQ $8BB9 never jumps to 0x8bb9
8BB7: 86 00 LDA #$00
8BB9: 8E 30 00 LDX #$3000
8BBC: A6 86 LDA A,X
- Screen never flips ingame or in "continue" screen for player 2 due to code at 0x662f :
662F: 0F 0A CLR $0A $CA = 0
6631: D6 1A LDB $1A
6633: 27 00 BEQ $6635 continue regardless of player
6635: CC 00 00 LDD #$0000
75DF: D6 0A LDB $0A
75E1: F7 30 0C STB $300C
Surprinsingly, the screen might flip for player 2 after GAME OVER due to original code at 0x4de8 :
4DE8: D6 1A LDB $1A A = 00 for player 1 and 01 for player 2
4DEA: 27 03 BEQ $4DEF
4DEC: F7 30 0C STB $300C
4DEF: C6 20 LDB #$20
2) 'sidepcktj'
- Japan version.
- Credits are coded on 1 byte (range 0x00-0xff) at location 0x0007, but their display is limited to 9.
- Same bonus lives ingame bug as in 'sidepckt'.
- Player 2 controls are always used ingame for player 2 due to code at 0x58ab :
58AB: 96 1A LDA $1A
58AD: 84 01 ANDA #$01 A = 00 for player 1 and 01 for player 2
58AF: 8E 30 00 LDX #$3000
58B2: A6 86 LDA A,X
- Player 2 controls are also always used for player 2 when entering initials due to extra code at 0x8b9f :
8B9F: 96 1A LDA $1A
8BA1: 84 01 ANDA #$01 A = 00 for player 1 and 01 for player 2
8BA3: 8E 30 00 LDX #$3000
8BA6: A6 86 LDA A,X
- Screen always flips ingame or in "continue" screen for player 2 due to code at 0x662f :
6473: 0F 0A CLR $0A $CA = 0
6475: D6 1A LDB $1A A = 00 for player 1 and 01 for player 2
6477: 27 04 BEQ $647D jumps if player 1
6479: 86 20 LDA #$20
647B: 97 0A STA $0A $CA = 0x20
647D: CC 00 00 LDD #$0000
75A0: D6 0A LDB $0A
75A2: F7 30 0C STB $300C
After GAME OVER, code at 0x4d16 is slightly different than in 'sidepckt' :
4D16: D6 1A LDB $1A A = 00 for player 1 and 01 for player 2
4D18: 27 07 BEQ $4D21 jumps if player 1
4D1A: C6 20 LDB #$20
4D1C: D7 0A STB $0A $CA = 0x20
4D1E: F7 30 0C STB $300C flip screen
4D21: C6 20 LDB #$20
3) 'sidepcktb'
- Bootleg heavily based on the World version, so ingame bugs about bonus lives, player 2 inputs and screen flipping are still there.
- 2 little differences :
* Lives settings (table at 0x4696) : 06 03 02 instead of 06 03 09
* Timer settings (table at 0x9d99) : 30 20 18 instead of 40 30 20, so the timer is faster
Additional notes:
----------------
- sidepckt and sidepcktb don't have cocktail mode at all, while sidepcktj has a 'cooperative' cocktail mode; when it's the p2 turn,
the screen scrolls and a 'flipped score area' is shown on the other side, so the 2nd player just continues the same game.
Note that the screen never flips in any case.
***************************************************************************/
#include "emu.h"
#include "includes/sidepckt.h"
#include "cpu/m6809/m6809.h"
#include "cpu/m6502/m6502.h"
#include "sound/ymopn.h"
#include "sound/ymopl.h"
#include "screen.h"
#include "speaker.h"
//**************************************************************************
// PROTECTION MCU
//**************************************************************************
uint8_t sidepckt_state::mcu_r()
{
return m_mcu_p1;
}
void sidepckt_state::mcu_w(uint8_t data)
{
m_mcu_p2 = data;
m_mcu->set_input_line(MCS51_INT0_LINE, ASSERT_LINE);
}
void sidepckt_state::mcu_p1_w(uint8_t data)
{
m_mcu_p1 = data;
}
uint8_t sidepckt_state::mcu_p2_r()
{
return m_mcu_p2;
}
void sidepckt_state::mcu_p3_w(uint8_t data)
{
// 765432-- unused
// ------1- mcu int ack
// -------0 cpu firq
if (BIT(data, 0) == 0 && BIT(m_mcu_p3, 0) == 1)
m_maincpu->set_input_line(M6809_FIRQ_LINE, ASSERT_LINE);
if (BIT(data, 0) == 1 && BIT(m_mcu_p3, 0) == 0)
m_maincpu->set_input_line(M6809_FIRQ_LINE, CLEAR_LINE);
if (BIT(data, 1) == 0 && BIT(m_mcu_p3, 1) == 1)
m_mcu->set_input_line(MCS51_INT0_LINE, CLEAR_LINE);
m_mcu_p3 = data;
}
/******************************************************************************/
void sidepckt_state::sidepckt_map(address_map &map)
{
map(0x0000, 0x0fff).ram();
map(0x1000, 0x13ff).mirror(0x400).ram().w(FUNC(sidepckt_state::videoram_w)).share("videoram");
map(0x1800, 0x1bff).mirror(0x400).ram().w(FUNC(sidepckt_state::colorram_w)).share("colorram");
map(0x2000, 0x20ff).ram().share("spriteram");
map(0x2100, 0x24ff).nopw(); // ??? (Unused spriteram? The game writes some values at boot, but never read)
map(0x3000, 0x3000).portr("P1");
map(0x3001, 0x3001).portr("P2");
map(0x3002, 0x3002).portr("DSW1");
map(0x3003, 0x3003).portr("DSW2");
map(0x3004, 0x3004).w(m_soundlatch, FUNC(generic_latch_8_device::write));
map(0x300c, 0x300c).rw(FUNC(sidepckt_state::scroll_y_r), FUNC(sidepckt_state::scroll_y_w));
map(0x3014, 0x3014).r(FUNC(sidepckt_state::mcu_r));
map(0x3018, 0x3018).w(FUNC(sidepckt_state::mcu_w));
map(0x4000, 0xffff).rom();
}
void sidepckt_state::sidepcktb_map(address_map &map)
{
sidepckt_map(map);
map(0x3014, 0x3014).nopr();
map(0x3018, 0x3018).nopw();
}
void sidepckt_state::sound_map(address_map &map)
{
map(0x0000, 0x0fff).ram();
map(0x1000, 0x1001).w("ym1", FUNC(ym2203_device::write));
map(0x2000, 0x2001).w("ym2", FUNC(ym3526_device::write));
map(0x3000, 0x3000).r(m_soundlatch, FUNC(generic_latch_8_device::read));
map(0x8000, 0xffff).rom();
}
/******************************************************************************/
/* verified from M6809 code */
static INPUT_PORTS_START( sidepckt )
PORT_START("P1")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 )
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 )
PORT_START("P2") /* see notes */
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 )
PORT_START("DSW1")
PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_B ) )
PORT_DIPSETTING( 0x03, DEF_STR( 1C_2C ) )
PORT_DIPSETTING( 0x02, DEF_STR( 1C_3C ) )
PORT_DIPSETTING( 0x01, DEF_STR( 1C_4C ) )
PORT_DIPSETTING( 0x00, DEF_STR( 1C_6C ) )
PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Coin_A ) )
PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) )
PORT_DIPSETTING( 0x04, DEF_STR( 3C_1C ) )
PORT_DIPSETTING( 0x08, DEF_STR( 2C_1C ) )
PORT_DIPSETTING( 0x0c, DEF_STR( 1C_1C ) )
PORT_DIPUNUSED( 0x10, IP_ACTIVE_LOW )
PORT_DIPUNUSED( 0x20, IP_ACTIVE_LOW )
PORT_DIPNAME( 0x40, 0x40, DEF_STR( Demo_Sounds ) )
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING( 0x40, DEF_STR( On ) )
PORT_DIPUNUSED( 0x80, IP_ACTIVE_LOW )
PORT_START("DSW2")
PORT_DIPNAME( 0x03, 0x03, "Timer Speed" ) /* table at 0x9d99 */
PORT_DIPSETTING( 0x00, "Stopped (Cheat)")
PORT_DIPSETTING( 0x03, "Slow" ) /* 0x40 - "Normal" in the Dip Switches page */
PORT_DIPSETTING( 0x02, DEF_STR( Medium ) ) /* 0x30 - "Bit fast" in the Dip Switches page */
PORT_DIPSETTING( 0x01, "Fast" ) /* 0x20 - "Fast" in the Dip Switches page */
PORT_DIPNAME( 0x0c, 0x08, DEF_STR( Lives ) )
PORT_DIPSETTING( 0x08, "3" )
PORT_DIPSETTING( 0x0c, "6" )
PORT_DIPSETTING( 0x04, "9" )
PORT_DIPSETTING( 0x00, "Infinite (Cheat)") /* always gives 6 balls */
PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) /* table at 0x40af (4 * 2 words) - see notes */
PORT_DIPSETTING( 0x30, "10k 60k 50k+" ) /* "10000, after each 50000" in the Dip Switches page */
PORT_DIPSETTING( 0x20, "20k 70k 50k+" ) /* "20000, after each 70000" in the Dip Switches page */
PORT_DIPSETTING( 0x10, "30k 80k 50k+" ) /* "30000, after each 100000" in the Dip Switches page */
// PORT_DIPSETTING( 0x00, "20k 70k 50k+" ) /* "20000" in the Dip Switches page */
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE1 )
PORT_DIPUNUSED( 0x80, IP_ACTIVE_LOW )
INPUT_PORTS_END
/* verified from M6809 code */
static INPUT_PORTS_START( sidepcktj )
PORT_INCLUDE(sidepckt)
PORT_MODIFY("DSW1")
PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_B ) )
PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) )
PORT_DIPSETTING( 0x03, DEF_STR( 1C_1C ) )
PORT_DIPSETTING( 0x02, DEF_STR( 1C_2C ) )
PORT_DIPSETTING( 0x01, DEF_STR( 1C_3C ) )
PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Coin_A ) )
PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) )
PORT_DIPSETTING( 0x0c, DEF_STR( 1C_1C ) )
PORT_DIPSETTING( 0x08, DEF_STR( 1C_2C ) )
PORT_DIPSETTING( 0x04, DEF_STR( 1C_3C ) )
INPUT_PORTS_END
/* verified from M6809 code */
static INPUT_PORTS_START( sidepcktb )
PORT_INCLUDE(sidepckt)
PORT_MODIFY("DSW2")
PORT_DIPNAME( 0x03, 0x03, "Timer Speed" )
PORT_DIPSETTING( 0x00, "Stopped (Cheat)")
PORT_DIPSETTING( 0x03, DEF_STR( Medium ) ) /* 0x30 */
PORT_DIPSETTING( 0x02, "Fast" ) /* 0x20 */
PORT_DIPSETTING( 0x01, "Fastest" ) /* 0x18 */
PORT_DIPNAME( 0x0c, 0x08, DEF_STR( Lives ) )
PORT_DIPSETTING( 0x04, "2" )
PORT_DIPSETTING( 0x08, "3" )
PORT_DIPSETTING( 0x0c, "6" )
PORT_DIPSETTING( 0x00, "Infinite (Cheat)") /* always gives 6 balls */
INPUT_PORTS_END
static const gfx_layout charlayout =
{
8,8, /* 8*8 characters */
2048, /* 2048 characters */
3, /* 3 bits per pixel */
{ 0, 0x8000*8, 0x10000*8 }, /* the bitplanes are separated */
{ 0, 1, 2, 3, 4, 5, 6, 7 },
{ 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 },
8*8 /* every char takes 8 consecutive bytes */
};
static const gfx_layout spritelayout =
{
16,16, /* 16*16 sprites */
1024, /* 1024 sprites */
3, /* 3 bits per pixel */
{ 0, 0x8000*8, 0x10000*8 }, /* the bitplanes are separated */
{ 128+0, 128+1, 128+2, 128+3, 128+4, 128+5, 128+6, 128+7, 0, 1, 2, 3, 4, 5, 6, 7 },
{ 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 },
32*8 /* every char takes 8 consecutive bytes */
};
static GFXDECODE_START( gfx_sidepckt )
GFXDECODE_ENTRY( "gfx1", 0, charlayout, 128, 4 ) /* colors 128-159 */
GFXDECODE_ENTRY( "gfx2", 0, spritelayout, 0, 16 ) /* colors 0-127 */
GFXDECODE_END
void sidepckt_state::machine_reset()
{
m_scroll_y = 0;
}
void sidepckt_state::sidepckt(machine_config &config)
{
/* basic machine hardware */
MC6809E(config, m_maincpu, 12_MHz_XTAL/6); /* MC68B09EP, 2 MHz */
m_maincpu->set_addrmap(AS_PROGRAM, &sidepckt_state::sidepckt_map);
M6502(config, m_audiocpu, 12_MHz_XTAL/8); /* 1.5 MHz */
m_audiocpu->set_addrmap(AS_PROGRAM, &sidepckt_state::sound_map);
I8751(config, m_mcu, 8_MHz_XTAL); // 8.0MHz OSC on PCB
m_mcu->port_out_cb<1>().set(FUNC(sidepckt_state::mcu_p1_w));
m_mcu->port_in_cb<2>().set(FUNC(sidepckt_state::mcu_p2_r));
m_mcu->port_out_cb<3>().set(FUNC(sidepckt_state::mcu_p3_w));
// needs a tight sync with the mcu
config.set_perfect_quantum(m_maincpu);
/* video hardware */
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));
screen.set_refresh_hz(58); /* VERIFY: May be 55 or 56 */
screen.set_vblank_time(ATTOSECONDS_IN_USEC(2500)); /* not accurate */
screen.set_size(32*8, 32*8);
screen.set_visarea(0*8, 32*8-1, 2*8, 30*8-1);
screen.set_screen_update(FUNC(sidepckt_state::screen_update));
screen.set_palette(m_palette);
screen.screen_vblank().set_inputline(m_maincpu, INPUT_LINE_NMI);
GFXDECODE(config, m_gfxdecode, m_palette, gfx_sidepckt);
PALETTE(config, m_palette, FUNC(sidepckt_state::sidepckt_palette), 256);
/* sound hardware */
SPEAKER(config, "mono").front_center();
GENERIC_LATCH_8(config, m_soundlatch);
m_soundlatch->data_pending_callback().set_inputline(m_audiocpu, INPUT_LINE_NMI);
ym2203_device &ym1(YM2203(config, "ym1", 12_MHz_XTAL/8)); /* 1.5 MHz */
ym1.add_route(ALL_OUTPUTS, "mono", 0.25);
ym3526_device &ym2(YM3526(config, "ym2", 12_MHz_XTAL/4)); /* 3 MHz */
ym2.irq_handler().set_inputline(m_audiocpu, M6502_IRQ_LINE);
ym2.add_route(ALL_OUTPUTS, "mono", 1.0);
}
void sidepckt_state::sidepcktb(machine_config &config)
{
sidepckt(config);
/* basic machine hardware */
m_maincpu->set_addrmap(AS_PROGRAM, &sidepckt_state::sidepcktb_map);
config.device_remove("mcu");
}
/***************************************************************************
Game driver(s)
***************************************************************************/
ROM_START( sidepckt ) // DE-0245-2
ROM_REGION( 0x10000, "maincpu", 0 )
ROM_LOAD( "dh00-e.3c", 0x00000, 0x10000, CRC(251b316e) SHA1(c777d87621b8fefe0e33156be03da8aed733db9a) )
ROM_REGION( 0x10000, "audiocpu", 0 )
ROM_LOAD( "dh04.3h", 0x08000, 0x8000, CRC(d076e62e) SHA1(720ff1a6a58697b4a9c7c4f31c24a2cf8a04900a) ) // is this really DH-04-E??
ROM_REGION( 0x1000, "mcu", 0 ) // i8751 MCU (BAD_DUMP because it was created from the Japanese version)
ROM_LOAD( "dh-e.6d", 0x0000, 0x1000, BAD_DUMP CRC(00654574) SHA1(7d775e7b7cbb548c50b9b838a525a12bf7a32f8e) )
ROM_REGION( 0x18000, "gfx1", 0 )
ROM_LOAD( "dh07-e.13k", 0x00000, 0x8000, CRC(9d6f7969) SHA1(583852be0861a89c63ce09eb39146ec379b9e12d) ) // characters
ROM_LOAD( "dh06-e.13j", 0x08000, 0x8000, CRC(580e4e43) SHA1(de152a5d4fbc52d80e3eb9af17835ecb6258d45e) )
ROM_LOAD( "dh05-e.13h", 0x10000, 0x8000, CRC(05ab71d2) SHA1(6f06d1d1440a5fb05c01f712457d0bb167e93099) )
ROM_REGION( 0x18000, "gfx2", 0 )
ROM_LOAD( "dh01.14a", 0x00000, 0x8000, CRC(a2cdfbea) SHA1(0721e538e3306d616f11008f784cf21e679f330d) ) // sprites
ROM_LOAD( "dh02.15a", 0x08000, 0x8000, CRC(eeb5c3e7) SHA1(57eda1cc29124e04fe5025a904634d8ca52c0f12) )
ROM_LOAD( "dh03.17a", 0x10000, 0x8000, CRC(8e18d21d) SHA1(74f0ddf1fcbed386332eba882b4136295b4f096d) )
ROM_REGION( 0x0200, "proms", 0 ) // color PROMs
ROM_LOAD( "dh-09.16l", 0x0000, 0x0100, CRC(ce049b4f) SHA1(e4918cef7b319dd40cf1722eb8bf5e79be04fd6c) ) // MMI 6309-1N BPROM
ROM_LOAD( "dh-08.15l", 0x0100, 0x0100, CRC(cdf2180f) SHA1(123215d096f88b66396d40d7a579380d0b5b2b89) ) // MMI 6303-1N BPROM
ROM_END
ROM_START( sidepcktj ) // DE-0245-1
ROM_REGION( 0x10000, "maincpu", 0 )
ROM_LOAD( "dh00-1.3c", 0x00000, 0x10000, CRC(a66bc28d) SHA1(cd62ce1dce6fe42d9745eec50d11e86b076d28e1) )
ROM_REGION( 0x10000, "audiocpu", 0 )
ROM_LOAD( "dh04_6-19.3h", 0x08000, 0x8000, CRC(053ff83a) SHA1(e6e3ce15a86172bdc6094b4999e52d1aafc0ae10) ) // handwritten 6-19 on label
ROM_REGION( 0x1000, "mcu", 0 ) // i8751 MCU
ROM_LOAD( "dh.6d", 0x0000, 0x1000, CRC(f7e099b6) SHA1(8e718384489a589acebc19ca361e0aa8a4c6b63b) )
ROM_REGION( 0x18000, "gfx1", 0 )
ROM_LOAD( "dh07.13k", 0x00000, 0x8000, CRC(7d0ce858) SHA1(3a158f218a762e6841d2611f41ace67a1afefb35) ) // characters
ROM_LOAD( "dh06.13j", 0x08000, 0x8000, CRC(b86ddf72) SHA1(7596dd1b646971d8df1bc4fd157ccf161a712d59) )
ROM_LOAD( "dh05.13h", 0x10000, 0x8000, CRC(df6f94f2) SHA1(605796191f37cb76d496aa459243655070bb90c0) )
ROM_REGION( 0x18000, "gfx2", 0 )
ROM_LOAD( "dh01.14a", 0x00000, 0x8000, CRC(a2cdfbea) SHA1(0721e538e3306d616f11008f784cf21e679f330d) ) // sprites
ROM_LOAD( "dh02.15a", 0x08000, 0x8000, CRC(eeb5c3e7) SHA1(57eda1cc29124e04fe5025a904634d8ca52c0f12) )
ROM_LOAD( "dh03.17a", 0x10000, 0x8000, CRC(8e18d21d) SHA1(74f0ddf1fcbed386332eba882b4136295b4f096d) )
ROM_REGION( 0x0200, "proms", 0 ) // color PROMs
ROM_LOAD( "dh-09.16l", 0x0000, 0x0100, CRC(ce049b4f) SHA1(e4918cef7b319dd40cf1722eb8bf5e79be04fd6c) ) // MMI 6309-1N BPROM
ROM_LOAD( "dh-08.15l", 0x0100, 0x0100, CRC(cdf2180f) SHA1(123215d096f88b66396d40d7a579380d0b5b2b89) ) // MMI 6303-1N BPROM
ROM_END
ROM_START( sidepcktb )
ROM_REGION( 0x10000, "maincpu", 0 )
ROM_LOAD( "sp_09.bin", 0x04000, 0x4000, CRC(3c6fe54b) SHA1(4025ac48d75f171f4c979d3fcd6a2f8da18cef4f) )
ROM_LOAD( "sp_08.bin", 0x08000, 0x8000, CRC(347f81cd) SHA1(5ab06130f35788e51a881cc0f387649532145bd6) )
ROM_REGION( 0x10000, "audiocpu", 0 )
ROM_LOAD( "dh04.3h", 0x08000, 0x8000, CRC(d076e62e) SHA1(720ff1a6a58697b4a9c7c4f31c24a2cf8a04900a) )
ROM_REGION( 0x18000, "gfx1", 0 )
ROM_LOAD( "dh07-e.13k", 0x00000, 0x8000, CRC(9d6f7969) SHA1(583852be0861a89c63ce09eb39146ec379b9e12d) ) // characters
ROM_LOAD( "dh06-e.13j", 0x08000, 0x8000, CRC(580e4e43) SHA1(de152a5d4fbc52d80e3eb9af17835ecb6258d45e) )
ROM_LOAD( "dh05-e.13h", 0x10000, 0x8000, CRC(05ab71d2) SHA1(6f06d1d1440a5fb05c01f712457d0bb167e93099) )
ROM_REGION( 0x18000, "gfx2", 0 )
ROM_LOAD( "dh01.14a", 0x00000, 0x8000, CRC(a2cdfbea) SHA1(0721e538e3306d616f11008f784cf21e679f330d) ) // sprites
ROM_LOAD( "dh02.15a", 0x08000, 0x8000, CRC(eeb5c3e7) SHA1(57eda1cc29124e04fe5025a904634d8ca52c0f12) )
ROM_LOAD( "dh03.17a", 0x10000, 0x8000, CRC(8e18d21d) SHA1(74f0ddf1fcbed386332eba882b4136295b4f096d) )
ROM_REGION( 0x0200, "proms", 0 ) // color PROMs
ROM_LOAD( "dh-09.16l", 0x0000, 0x0100, CRC(ce049b4f) SHA1(e4918cef7b319dd40cf1722eb8bf5e79be04fd6c) )
ROM_LOAD( "dh-08.15l", 0x0100, 0x0100, CRC(cdf2180f) SHA1(123215d096f88b66396d40d7a579380d0b5b2b89) )
ROM_END
void sidepckt_state::init_sidepckt()
{
save_item(NAME(m_mcu_p1));
save_item(NAME(m_mcu_p2));
save_item(NAME(m_mcu_p3));
}
GAME( 1986, sidepckt, 0, sidepckt, sidepckt, sidepckt_state, init_sidepckt, ROT0, "Data East Corporation", "Side Pocket (World)", MACHINE_SUPPORTS_SAVE )
GAME( 1986, sidepcktj, sidepckt, sidepckt, sidepcktj, sidepckt_state, init_sidepckt, ROT0, "Data East Corporation", "Side Pocket (Japan, Cocktail)", MACHINE_SUPPORTS_SAVE )
GAME( 1986, sidepcktb, sidepckt, sidepcktb, sidepcktb, sidepckt_state, empty_init, ROT0, "bootleg", "Side Pocket (bootleg)", MACHINE_SUPPORTS_SAVE )
|