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