1 /***************************************************************************
2 
3 Loco-Motion
4 
5 driver by Nicola Salmoria
6 
7 Notes:
8 - PROM 7a controls the video shape. This is used to hide the rightmost 4 char
9   columns in Locomotion and Commando, while showing them in Jungler and
10   Tactician.
11 
12 
13 CPU #1
14 0000-4fff ROM (empty space at 5000-5fff for diagnostic ROM)
15 8040-83ff video RAM (top 8 rows of screen)
16 8440-87ff video RAM
17 8840-8bff color RAM (top 8 rows of screen)
18 8c40-8fff color RAM
19 8000-803f sprite RAM #1
20 8800-883f sprite RAM #2
21 9800-9fff RAM
22 
23 read:
24 a000      IN0
25 a080      IN1
26 a100      IN2
27 a180      DSW
28 
29 write:
30 a080      watchdog reset
31 a100      command for the audio CPU
32 a180      interrupt trigger on audio CPU
33 a181      interrupt enable
34 
35 
36 CPU #2:
37 2000-23ff RAM
38 
39 read:
40 4000      8910 #0 read
41 6000      8910 #1 read
42 
43 write:
44 5000      8910 #0 control
45 4000      8910 #0 write
46 7000      8910 #1 control
47 6000      8910 #1 write
48 
49 ***************************************************************************/
50 
51 #include "driver.h"
52 #include "vidhrdw/generic.h"
53 #include "sndhrdw/timeplt.h"
54 
55 
56 extern unsigned char *rallyx_videoram2,*rallyx_colorram2;
57 extern unsigned char *rallyx_radarx,*rallyx_radary,*rallyx_radarattr;
58 extern size_t rallyx_radarram_size;
59 extern unsigned char *rallyx_scrollx,*rallyx_scrolly;
60 WRITE_HANDLER( rallyx_videoram2_w );
61 WRITE_HANDLER( rallyx_colorram2_w );
62 WRITE_HANDLER( rallyx_flipscreen_w );
63 PALETTE_INIT( locomotn );
64 VIDEO_START( rallyx );
65 VIDEO_UPDATE( locomotn );
66 VIDEO_UPDATE( jungler );
67 VIDEO_UPDATE( commsega );
68 
69 
WRITE_HANDLER(coin_1_w)70 static WRITE_HANDLER( coin_1_w )
71 {
72 	coin_counter_w(0,data & 1);
73 }
WRITE_HANDLER(coin_2_w)74 static WRITE_HANDLER( coin_2_w )
75 {
76 	coin_counter_w(1,data & 1);
77 }
78 
79 
80 
MEMORY_READ_START(readmem)81 static MEMORY_READ_START( readmem )
82 	{ 0x0000, 0x7fff, MRA_ROM },
83 	{ 0x8000, 0x8fff, MRA_RAM },
84 	{ 0x9800, 0x9fff, MRA_RAM },
85 	{ 0xa000, 0xa000, input_port_0_r },	/* IN0 */
86 	{ 0xa080, 0xa080, input_port_1_r },	/* IN1 */
87 	{ 0xa100, 0xa100, input_port_2_r },	/* IN2 */
88 	{ 0xa180, 0xa180, input_port_3_r },	/* DSW */
89 MEMORY_END
90 
91 static MEMORY_WRITE_START( writemem )
92 	{ 0x0000, 0x7fff, MWA_ROM },
93 	{ 0x8000, 0x83ff, videoram_w, &videoram, &videoram_size },
94 	{ 0x8400, 0x87ff, rallyx_videoram2_w, &rallyx_videoram2 },
95 	{ 0x8800, 0x8bff, colorram_w, &colorram },
96 	{ 0x8c00, 0x8fff, rallyx_colorram2_w, &rallyx_colorram2 },
97 	{ 0x9800, 0x9fff, MWA_RAM },
98 	{ 0xa004, 0xa00f, MWA_RAM, &rallyx_radarattr },
99 	{ 0xa080, 0xa080, watchdog_reset_w },
100 	{ 0xa100, 0xa100, soundlatch_w },
101 	{ 0xa130, 0xa130, MWA_RAM, &rallyx_scrollx },
102 	{ 0xa140, 0xa140, MWA_RAM, &rallyx_scrolly },
103 	{ 0xa170, 0xa170, MWA_NOP },	/* ????? */
104 	{ 0xa180, 0xa180, timeplt_sh_irqtrigger_w },
105 	{ 0xa181, 0xa181, interrupt_enable_w },
106 /*	{ 0xa182, 0xa182, MWA_NOP },	sound mute*/
107 	{ 0xa183, 0xa183, rallyx_flipscreen_w },
108 	{ 0xa184, 0xa184, coin_1_w },
109 	{ 0xa186, 0xa186, coin_2_w },
110 /*	{ 0xa187, 0xa187, MWA_NOP },	stars enable*/
111 	{ 0x8014, 0x801f, MWA_RAM, &spriteram, &spriteram_size },	/* these are here just to initialize */
112 	{ 0x8814, 0x881f, MWA_RAM, &spriteram_2 },	/* the pointers. */
113 	{ 0x8034, 0x803f, MWA_RAM, &rallyx_radarx, &rallyx_radarram_size },	/* ditto */
114 	{ 0x8834, 0x883f, MWA_RAM, &rallyx_radary },
115 MEMORY_END
116 
117 static MEMORY_WRITE_START( jungler_writemem )
118 	{ 0x0000, 0x7fff, MWA_ROM },
119 	{ 0x8000, 0x83ff, videoram_w, &videoram, &videoram_size },
120 	{ 0x8400, 0x87ff, rallyx_videoram2_w, &rallyx_videoram2 },
121 	{ 0x8800, 0x8bff, colorram_w, &colorram },
122 	{ 0x8c00, 0x8fff, rallyx_colorram2_w, &rallyx_colorram2 },
123 	{ 0x9800, 0x9fff, MWA_RAM },
124 	{ 0xa034, 0xa03f, MWA_RAM, &rallyx_radarattr },
125 	{ 0xa080, 0xa080, watchdog_reset_w },
126 	{ 0xa100, 0xa100, soundlatch_w },
127 	{ 0xa130, 0xa130, MWA_RAM, &rallyx_scrollx },
128 	{ 0xa140, 0xa140, MWA_RAM, &rallyx_scrolly },
129 	{ 0xa170, 0xa170, MWA_NOP },	/* ????? */
130 	{ 0xa180, 0xa180, timeplt_sh_irqtrigger_w },
131 	{ 0xa181, 0xa181, interrupt_enable_w },
132 /*	{ 0xa182, 0xa182, MWA_NOP },	sound mute*/
133 	{ 0xa183, 0xa183, rallyx_flipscreen_w },
134 	{ 0xa184, 0xa184, coin_1_w },
135 	{ 0xa186, 0xa186, coin_2_w },
136 /*	{ 0xa187, 0xa187, MWA_NOP },	stars enable*/
137 	{ 0x8014, 0x801f, MWA_RAM, &spriteram, &spriteram_size },	/* these are here just to initialize */
138 	{ 0x8814, 0x881f, MWA_RAM, &spriteram_2 },	/* the pointers. */
139 	{ 0x8034, 0x803f, MWA_RAM, &rallyx_radarx, &rallyx_radarram_size },	/* ditto */
140 	{ 0x8834, 0x883f, MWA_RAM, &rallyx_radary },
141 MEMORY_END
142 
143 static MEMORY_WRITE_START( commsega_writemem )
144 	{ 0x0000, 0x7fff, MWA_ROM },
145 	{ 0x8000, 0x83ff, videoram_w, &videoram, &videoram_size },
146 	{ 0x8400, 0x87ff, rallyx_videoram2_w, &rallyx_videoram2 },
147 	{ 0x8800, 0x8bff, colorram_w, &colorram },
148 	{ 0x8c00, 0x8fff, rallyx_colorram2_w, &rallyx_colorram2 },
149 	{ 0x9800, 0x9fff, MWA_RAM },
150 	{ 0xa000, 0xa00f, MWA_RAM, &rallyx_radarattr },
151 	{ 0xa080, 0xa080, watchdog_reset_w },
152 	{ 0xa100, 0xa100, soundlatch_w },
153 	{ 0xa130, 0xa130, MWA_RAM, &rallyx_scrollx },
154 	{ 0xa140, 0xa140, MWA_RAM, &rallyx_scrolly },
155 	{ 0xa170, 0xa170, MWA_NOP },	/* ????? */
156 	{ 0xa180, 0xa180, timeplt_sh_irqtrigger_w },
157 	{ 0xa181, 0xa181, interrupt_enable_w },
158 /*	{ 0xa182, 0xa182, MWA_NOP },	sound mute*/
159 	{ 0xa183, 0xa183, rallyx_flipscreen_w },
160 	{ 0xa184, 0xa184, coin_1_w },
161 	{ 0xa186, 0xa186, coin_2_w },
162 /*	{ 0xa187, 0xa187, MWA_NOP },	stars enable*/
163 	{ 0x8000, 0x801f, MWA_RAM, &spriteram, &spriteram_size },	/* these are here just to initialize */
164 	{ 0x8800, 0x881f, MWA_RAM, &spriteram_2 },	/* the pointers. */
165 	{ 0x8020, 0x803f, MWA_RAM, &rallyx_radarx, &rallyx_radarram_size },	/* ditto */
166 	{ 0x8820, 0x883f, MWA_RAM, &rallyx_radary },
167 MEMORY_END
168 
169 
170 
171 INPUT_PORTS_START( jungler )
172 	PORT_START      /* IN0 */
173 	PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    | IPF_4WAY | IPF_COCKTAIL )
174 	PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED )
175 	PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 )
176 	PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 )
177 	PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  | IPF_4WAY )
178 	PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_4WAY )
179 	PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 )
180 	PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 )
181 
182 	PORT_START      /* IN1 */
183 	PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    | IPF_4WAY )
184 	PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN  | IPF_4WAY | IPF_COCKTAIL )
185 	PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED )
186 	PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 | IPF_COCKTAIL )
187 	PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_4WAY | IPF_COCKTAIL )
188 	PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  | IPF_4WAY | IPF_COCKTAIL )
189 	PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 )
190 	PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 )
191 
192 	PORT_START      /* DSW0 */
193 	PORT_BIT( 0x7f, IP_ACTIVE_LOW, IPT_UNUSED )
194 	PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN  | IPF_4WAY )
195 
196 	PORT_START      /* DSW1 */
197 	PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_A ) )
198 	PORT_DIPSETTING(    0x01, DEF_STR( 4C_1C ) )
199 	PORT_DIPSETTING(    0x02, DEF_STR( 3C_1C ) )
200 	PORT_DIPSETTING(    0x03, DEF_STR( 2C_1C ) )
201 	PORT_DIPSETTING(    0x00, DEF_STR( 4C_3C ) )
202 	PORT_DIPSETTING(    0x07, DEF_STR( 1C_1C ) )
203 	PORT_DIPSETTING(    0x06, DEF_STR( 1C_2C ) )
204 	PORT_DIPSETTING(    0x05, DEF_STR( 1C_3C ) )
205 	PORT_DIPSETTING(    0x04, DEF_STR( 1C_4C ) )
206 	PORT_DIPNAME( 0x38, 0x38, DEF_STR( Coin_B ) )
207 	PORT_DIPSETTING(    0x08, DEF_STR( 4C_1C ) )
208 	PORT_DIPSETTING(    0x10, DEF_STR( 3C_1C ) )
209 	PORT_DIPSETTING(    0x18, DEF_STR( 2C_1C ) )
210 	PORT_DIPSETTING(    0x00, DEF_STR( 4C_3C ) )
211 	PORT_DIPSETTING(    0x38, DEF_STR( 1C_1C ) )
212 	PORT_DIPSETTING(    0x30, DEF_STR( 1C_2C ) )
213 	PORT_DIPSETTING(    0x28, DEF_STR( 1C_3C ) )
214 	PORT_DIPSETTING(    0x20, DEF_STR( 1C_4C ) )
215 	PORT_DIPNAME( 0x40, 0x00, DEF_STR( Cabinet ) )
216 	PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
217 	PORT_DIPSETTING(    0x40, DEF_STR( Cocktail ) )
218 	PORT_BITX(    0x80, 0x80, IPT_DIPSWITCH_NAME | IPF_CHEAT, "Debug Mode", IP_KEY_NONE, IP_JOY_NONE )
219 	PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
220 	PORT_DIPSETTING(    0x00, DEF_STR( On ) )				/* Gives 255 lives*/
221 INPUT_PORTS_END
222 
223 
224 INPUT_PORTS_START( locomotn )
225 	PORT_START      /* IN0 */
226 	PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    | IPF_4WAY | IPF_COCKTAIL )
227 	PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED )
228 	PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 )
229 	PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 )
230 	PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  | IPF_4WAY )
231 	PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_4WAY )
232 	PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 )
233 	PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 )
234 
235 	PORT_START      /* IN1 */
236 	PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    | IPF_4WAY )
237 	PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN  | IPF_4WAY | IPF_COCKTAIL )
238 	PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED )
239 	PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 | IPF_COCKTAIL )
240 	PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_4WAY | IPF_COCKTAIL )
241 	PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  | IPF_4WAY | IPF_COCKTAIL )
242 	PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 )
243 	PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 )
244 
245 	PORT_START      /* DSW0 */
246 	PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) )
247 	PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
248 	PORT_DIPSETTING(    0x00, DEF_STR( On ) )
249 	PORT_DIPNAME( 0x02, 0x02, "Intermissions" )
250 	PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
251 	PORT_DIPSETTING(    0x02, DEF_STR( On ) )
252 	PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unused ) )
253 	PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
254 	PORT_DIPSETTING(    0x00, DEF_STR( On ) )
255 	PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) )
256 	PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
257 	PORT_DIPSETTING(    0x08, DEF_STR( Cocktail ) )
258 	PORT_DIPNAME( 0x30, 0x30, DEF_STR( Lives ) )
259 	PORT_DIPSETTING(    0x30, "3" )
260 	PORT_DIPSETTING(    0x20, "4" )
261 	PORT_DIPSETTING(    0x10, "5" )
262 	PORT_BITX(0,  0x00, IPT_DIPSWITCH_SETTING | IPF_CHEAT, "255", IP_KEY_NONE, IP_JOY_NONE )
263 	PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED )
264 	PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN  | IPF_4WAY )
265 
266 	PORT_START      /* DSW1 */
267 	PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) )
268 	PORT_DIPSETTING(    0x04, DEF_STR( 4C_1C ) )
269 	PORT_DIPSETTING(    0x0a, DEF_STR( 3C_1C ) )
270 	PORT_DIPSETTING(    0x01, DEF_STR( 2C_1C ) )
271 	PORT_DIPSETTING(    0x02, DEF_STR( 3C_2C ) )
272 	PORT_DIPSETTING(    0x08, DEF_STR( 4C_3C ) )
273 	PORT_DIPSETTING(    0x0f, DEF_STR( 1C_1C ) )
274 	PORT_DIPSETTING(    0x0c, DEF_STR( 3C_4C ) )
275 	PORT_DIPSETTING(    0x0e, DEF_STR( 2C_3C ) )
276 	PORT_DIPSETTING(    0x07, DEF_STR( 1C_2C ) )
277 	PORT_DIPSETTING(    0x06, DEF_STR( 2C_5C ) )
278 	PORT_DIPSETTING(    0x0b, DEF_STR( 1C_3C ) )
279 	PORT_DIPSETTING(    0x03, DEF_STR( 1C_4C ) )
280 	PORT_DIPSETTING(    0x0d, DEF_STR( 1C_5C ) )
281 	PORT_DIPSETTING(    0x05, DEF_STR( 1C_6C ) )
282 	PORT_DIPSETTING(    0x09, DEF_STR( 1C_7C ) )
283 	PORT_DIPSETTING(    0x00, DEF_STR( Free_Play ) )
284 	PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) )
285 	PORT_DIPSETTING(    0x40, DEF_STR( 4C_1C ) )
286 	PORT_DIPSETTING(    0xa0, DEF_STR( 3C_1C ) )
287 	PORT_DIPSETTING(    0x10, DEF_STR( 2C_1C ) )
288 	PORT_DIPSETTING(    0x20, DEF_STR( 3C_2C ) )
289 	PORT_DIPSETTING(    0x80, DEF_STR( 4C_3C ) )
290 	PORT_DIPSETTING(    0xf0, DEF_STR( 1C_1C ) )
291 	PORT_DIPSETTING(    0xc0, DEF_STR( 3C_4C ) )
292 	PORT_DIPSETTING(    0xe0, DEF_STR( 2C_3C ) )
293 	PORT_DIPSETTING(    0x70, DEF_STR( 1C_2C ) )
294 	PORT_DIPSETTING(    0x60, DEF_STR( 2C_5C ) )
295 	PORT_DIPSETTING(    0xb0, DEF_STR( 1C_3C ) )
296 	PORT_DIPSETTING(    0x30, DEF_STR( 1C_4C ) )
297 	PORT_DIPSETTING(    0xd0, DEF_STR( 1C_5C ) )
298 	PORT_DIPSETTING(    0x50, DEF_STR( 1C_6C ) )
299 	PORT_DIPSETTING(    0x90, DEF_STR( 1C_7C ) )
300 	PORT_DIPSETTING(    0x00, "Disabled" )
301 INPUT_PORTS_END
302 
303 
304 INPUT_PORTS_START( tactcian )
305 	PORT_START      /* IN0 */
306 	PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    | IPF_4WAY | IPF_COCKTAIL )
307 	PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
308 	PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 )
309 	PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 )
310 	PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  | IPF_4WAY )
311 	PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_4WAY )
312 	PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 )
313 	PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 )
314 
315 	PORT_START      /* IN1 */
316 	PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    | IPF_4WAY )
317 	PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN  | IPF_4WAY | IPF_COCKTAIL )
318 	PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 | IPF_COCKTAIL )
319 	PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 | IPF_COCKTAIL )
320 	PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_4WAY | IPF_COCKTAIL )
321 	PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  | IPF_4WAY | IPF_COCKTAIL )
322 	PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 )
323 	PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 )
324 
325 	PORT_START      /* DSW0 */
326 	PORT_DIPNAME( 0x01, 0x00, DEF_STR( Bonus_Life ) )
327 	PORT_DIPSETTING(    0x00, "10k, 80k then every 100k" )
328 	PORT_DIPSETTING(    0x01, "20k, 80k then every 100k" )
329 	PORT_DIPNAME( 0x06, 0x00, DEF_STR( Coinage ) )			/* Mode 1*/
330 	PORT_DIPSETTING(    0x06, DEF_STR( 4C_1C ) )
331 	PORT_DIPSETTING(    0x02, DEF_STR( 2C_1C ) )
332 	PORT_DIPSETTING(    0x00, DEF_STR( 1C_1C ) )
333 	PORT_DIPSETTING(    0x04, DEF_STR( 1C_2C ) )
334 	/*
335 	PORT_DIPNAME( 0x06, 0x00, DEF_STR( Coinage ) )			// Mode 2
336 	PORT_DIPSETTING(    0x02, DEF_STR( 2C_1C ) )
337 	PORT_DIPSETTING(    0x04, "A 2C/1C  B 1C/3C" )
338 	PORT_DIPSETTING(    0x00, DEF_STR( 1C_1C ) )
339 	PORT_DIPSETTING(    0x06, "A 1C/1C  B 1C/6C" )
340 	*/
341 	PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) )
342 	PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
343 	PORT_DIPSETTING(    0x08, DEF_STR( Cocktail ) )
344 	PORT_DIPNAME( 0x30, 0x00, DEF_STR( Lives ) )
345 	PORT_DIPSETTING(    0x00, "3" )
346 	PORT_DIPSETTING(    0x10, "4" )
347 	PORT_DIPSETTING(    0x20, "5" )
348 	PORT_BITX(0,  0x30, IPT_DIPSWITCH_SETTING | IPF_CHEAT, "255", IP_KEY_NONE, IP_JOY_NONE )
349 	PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED )
350 	PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN  | IPF_4WAY )
351 
352 	PORT_START      /* DSW1 */
353 	PORT_DIPNAME( 0x01, 0x00, "Coin Mode" )
354 	PORT_DIPSETTING(    0x00, "Mode 1" )
355 	PORT_DIPSETTING(    0x01, "Mode 2" )
356 	PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unused ) )
357 	PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
358 	PORT_DIPSETTING(    0x02, DEF_STR( On ) )
359 	PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unused ) )
360 	PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
361 	PORT_DIPSETTING(    0x04, DEF_STR( On ) )
362 	PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unused ) )
363 	PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
364 	PORT_DIPSETTING(    0x08, DEF_STR( On ) )
365 	PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unused ) )
366 	PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
367 	PORT_DIPSETTING(    0x10, DEF_STR( On ) )
368 	PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unused ) )
369 	PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
370 	PORT_DIPSETTING(    0x20, DEF_STR( On ) )
371 	PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unused ) )
372 	PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
373 	PORT_DIPSETTING(    0x40, DEF_STR( On ) )
374 	PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unused ) )
375 	PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
376 	PORT_DIPSETTING(    0x80, DEF_STR( On ) )
377 INPUT_PORTS_END
378 
379 
380 /* Due to an ingame bug at 0x1259, bit 3 of DSW1 ALSO affects the "Bonus Life" value :
381      - when bit 3 is OFF, you get an extra life at 30000 points
382      - when bit 3 is ON , you get an extra life at 50000 points
383    In the IRQ handler (0x0038) of CPU0, there is code to give infinite lives for player 1
384    when bit 3 of DSW0 is ON. I can't tell however when it is supposed to be called.
385 */
386 INPUT_PORTS_START( commsega )
387 	PORT_START      /* IN0 */
388 	PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    | IPF_4WAY | IPF_COCKTAIL )
389 	PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED )
390 	PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED )
391 	PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON2 )
392 	PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  | IPF_4WAY )
393 	PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_4WAY )
394 	PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 )
395 	PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 )
396 
397 	PORT_START      /* IN1 */
398 	PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    | IPF_4WAY )
399 	PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN  | IPF_4WAY | IPF_COCKTAIL )
400 	PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 | IPF_COCKTAIL )
401 	PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON2 | IPF_COCKTAIL )
402 	PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_4WAY | IPF_COCKTAIL )
403 	PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  | IPF_4WAY | IPF_COCKTAIL )
404 	PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 )
405 	PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 )
406 
407 	PORT_START      /* DSW0 */
408 	PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coin_B ) )
409 	PORT_DIPSETTING(    0x04, DEF_STR( 4C_1C ) )
410 	PORT_DIPSETTING(    0x05, DEF_STR( 3C_1C ) )
411 	PORT_DIPSETTING(    0x06, DEF_STR( 2C_1C ) )
412 	PORT_DIPSETTING(    0x07, DEF_STR( 1C_1C ) )
413 	PORT_DIPSETTING(    0x01, DEF_STR( 2C_3C ) )
414 	PORT_DIPSETTING(    0x03, DEF_STR( 1C_2C ) )
415 	PORT_DIPSETTING(    0x02, DEF_STR( 1C_3C ) )
416 	PORT_DIPSETTING(    0x00, DEF_STR( Free_Play ) )
417 	PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) )			/* "Infinite Lives" - See notes*/
418 	PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
419 	PORT_DIPSETTING(    0x00, DEF_STR( On ) )
420 	PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unused ) )
421 	PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
422 	PORT_DIPSETTING(    0x00, DEF_STR( On ) )
423 	PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unused ) )
424 	PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
425 	PORT_DIPSETTING(    0x00, DEF_STR( On ) )
426 	PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 )
427 	PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN  | IPF_4WAY )
428 
429 	PORT_START      /* DSW1 */
430 	PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) )
431 	PORT_DIPSETTING(    0x03, "3" )
432 	PORT_DIPSETTING(    0x02, "4" )
433 	PORT_DIPSETTING(    0x01, "5" )
434 	PORT_DIPSETTING(    0x00, "6" )
435 	PORT_DIPNAME( 0x1c, 0x1c, DEF_STR( Coin_A ) )
436 	PORT_DIPSETTING(    0x10, DEF_STR( 4C_1C ) )			/* Bonus Life : 50000 points*/
437 	PORT_DIPSETTING(    0x14, DEF_STR( 3C_1C ) )			/* Bonus Life : 50000 points*/
438 	PORT_DIPSETTING(    0x18, DEF_STR( 2C_1C ) )			/* Bonus Life : 30000 points*/
439 	PORT_DIPSETTING(    0x1c, DEF_STR( 1C_1C ) )			/* Bonus Life : 30000 points*/
440 	PORT_DIPSETTING(    0x04, DEF_STR( 2C_3C ) )			/* Bonus Life : 50000 points*/
441 	PORT_DIPSETTING(    0x0c, DEF_STR( 1C_2C ) )			/* Bonus Life : 30000 points*/
442 	PORT_DIPSETTING(    0x08, DEF_STR( 1C_3C ) )			/* Bonus Life : 30000 points*/
443 	PORT_DIPSETTING(    0x00, DEF_STR( Free_Play ) )		/* Bonus Life : 50000 points*/
444 	PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unused ) )
445 	PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
446 	PORT_DIPSETTING(    0x00, DEF_STR( On ) )
447 	PORT_DIPNAME( 0x40, 0x40, DEF_STR( Difficulty ) )		/* Check code at 0x1fc5*/
448 	PORT_DIPSETTING(    0x40, "Easy" )					/* 16 flying enemies to kill*/
449 	PORT_DIPSETTING(    0x00, "Hard" )					/* 24 flying enemies to kill*/
450 	PORT_DIPNAME( 0x80, 0x00, DEF_STR( Cabinet ) )
451 	PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
452 	PORT_DIPSETTING(    0x80, DEF_STR( Cocktail ) )
453 INPUT_PORTS_END
454 
455 
456 
457 static struct GfxLayout charlayout =
458 {
459 	8,8,	/* 8*8 characters */
460 	512,	/* 512 characters (256 in Jungler) */
461 	2,	/* 2 bits per pixel */
462 	{ 4, 0 },
463 	{ 8*8+0,8*8+1,8*8+2,8*8+3, 0, 1, 2, 3 },
464 	{ 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 },
465 	16*8	/* every char takes 16 consecutive bytes */
466 };
467 
468 static struct GfxLayout spritelayout =
469 {
470 	16,16,	/* 16*16 sprites */
471 	128,	/* 128 sprites (64 in Jungler) */
472 	2,	/* 2 bits per pixel */
473 	{ 4, 0 },
474 	{ 8*8, 8*8+1, 8*8+2, 8*8+3, 0, 1, 2, 3,
475 			24*8+0, 24*8+1, 24*8+2, 24*8+3, 16*8+0, 16*8+1, 16*8+2, 16*8+3 },
476 	{ 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8,
477 			32*8, 33*8, 34*8, 35*8, 36*8, 37*8, 38*8, 39*8 },
478 	64*8	/* every sprite takes 64 consecutive bytes */
479 };
480 
481 static struct GfxLayout dotlayout =
482 {
483 	4,4,	/* 4*4 characters */
484 	8,	/* 8 characters */
485 	2,	/* 2 bits per pixel */
486 	{ 6, 7 },
487 	{ 0*8, 1*8, 2*8, 3*8 },
488 	{ 0*32, 1*32, 2*32, 3*32 },
489 	16*8	/* every char takes 16 consecutive bytes */
490 };
491 
492 static struct GfxDecodeInfo gfxdecodeinfo[] =
493 {
494 	{ REGION_GFX1, 0, &charlayout,      0, 64 },
495 	{ REGION_GFX1, 0, &spritelayout,    0, 64 },
496 	{ REGION_GFX2, 0, &dotlayout,    64*4,  1 },
497 	{ -1 } /* end of array */
498 };
499 
500 
501 
502 static MACHINE_DRIVER_START( tactcian )
503 
504 	/* basic machine hardware */
505 	MDRV_CPU_ADD_TAG("main", Z80, 18432000/6)	/* 3.072 MHz */
506 	MDRV_CPU_MEMORY(readmem,writemem)
507 	MDRV_CPU_VBLANK_INT(nmi_line_pulse,1)
508 
509 	MDRV_CPU_ADD(Z80, 14318180/8)	/* 1.789772727 MHz */
510 	MDRV_CPU_FLAGS(CPU_AUDIO_CPU)
511 	MDRV_CPU_MEMORY(timeplt_sound_readmem,timeplt_sound_writemem)
512 
513 	MDRV_FRAMES_PER_SECOND(60)
514 	MDRV_VBLANK_DURATION(DEFAULT_60HZ_VBLANK_DURATION)	/* frames per second, vblank duration */
515 
516 	/* video hardware */
517 	MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER)
518 	MDRV_SCREEN_SIZE(36*8, 28*8)
519 	MDRV_VISIBLE_AREA(0*8, 36*8-1, 0*8, 28*8-1)
520 	MDRV_GFXDECODE(gfxdecodeinfo)
521 	MDRV_PALETTE_LENGTH(32)
522 	MDRV_COLORTABLE_LENGTH(64*4+4)
523 
524 	MDRV_PALETTE_INIT(locomotn)
525 	MDRV_VIDEO_START(rallyx)
526 	MDRV_VIDEO_UPDATE(locomotn)
527 
528 	/* sound hardware */
529 	MDRV_SOUND_ADD(AY8910, timeplt_ay8910_interface)
530 MACHINE_DRIVER_END
531 
532 
533 static MACHINE_DRIVER_START( jungler )
534 
535 	/* basic machine hardware */
536 	MDRV_IMPORT_FROM(tactcian)
537 	MDRV_CPU_MODIFY("main")
538 	MDRV_CPU_MEMORY(readmem,jungler_writemem)
539 
540 	/* video hardware */
541 	MDRV_VIDEO_UPDATE(jungler)
542 MACHINE_DRIVER_END
543 
544 
545 static MACHINE_DRIVER_START( locomotn )
546 
547 	/* basic machine hardware */
548 	MDRV_IMPORT_FROM(tactcian)
549 
550 	/* video hardware */
551 	MDRV_VISIBLE_AREA(0*8, 32*8-1, 0*8, 28*8-1)
552 MACHINE_DRIVER_END
553 
554 
555 static MACHINE_DRIVER_START( commsega )
556 
557 	/* basic machine hardware */
558 	MDRV_IMPORT_FROM(tactcian)
559 	MDRV_CPU_MODIFY("main")
560 	MDRV_CPU_MEMORY(readmem,commsega_writemem)
561 
562 	/* video hardware */
563 	MDRV_VISIBLE_AREA(0*8, 32*8-1, 0*8, 28*8-1)
564 	MDRV_VIDEO_UPDATE(commsega)
565 MACHINE_DRIVER_END
566 
567 
568 /***************************************************************************
569 
570   Game driver(s)
571 
572 ***************************************************************************/
573 
574 ROM_START( jungler )
575 	ROM_REGION( 0x10000, REGION_CPU1, 0 )	/* 64k for code */
576 	ROM_LOAD( "jungr1",       0x0000, 0x1000, CRC(5bd6ad15) SHA1(608de86e19c6726bb7d21e7dc0e936f00121a3f4) )
577 	ROM_LOAD( "jungr2",       0x1000, 0x1000, CRC(dc99f1e3) SHA1(942405f6c7d816139e36289126fe883a6a9a0a08) )
578 	ROM_LOAD( "jungr3",       0x2000, 0x1000, CRC(3dcc03da) SHA1(2c328a46511c4c9eec6515b9316a586de6503152) )
579 	ROM_LOAD( "jungr4",       0x3000, 0x1000, CRC(f92e9940) SHA1(d72a4d0a0ab7c9a1dcbb7925eb8530052640a234) )
580 
581 	ROM_REGION( 0x10000, REGION_CPU2, 0 )	/* 64k for the audio CPU */
582 	ROM_LOAD( "1b",           0x0000, 0x1000, CRC(f86999c3) SHA1(4660bd7826219b1bad7d9178918823196d4fd8d6) )
583 
584 	ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE )
585 	ROM_LOAD( "5k",           0x0000, 0x0800, CRC(924262bf) SHA1(593f59630b3bd369aef0819992106b4e6e6a241f) )
586 	ROM_LOAD( "5m",           0x0800, 0x0800, CRC(131a08ac) SHA1(167a0710a2a153f7f7c6839d2340e5aa725ef039) )
587 	/* 1000-1fff empty for my convenience */
588 
589 	ROM_REGION( 0x0100, REGION_GFX2, ROMREGION_DISPOSE )
590 	ROM_LOAD( "82s129.10g",   0x0000, 0x0100, CRC(c59c51b7) SHA1(e8ac60fed9ba16c61a4c3c09e27f8c3f4e254014) ) /* dots */
591 
592 	ROM_REGION( 0x0160, REGION_PROMS, 0 )
593 	ROM_LOAD( "18s030.8b",    0x0000, 0x0020, CRC(55a7e6d1) SHA1(f9e4ff3b165235db2fd8dab94c43bc686c3ad29b) ) /* palette */
594 	ROM_LOAD( "tbp24s10.9d",  0x0020, 0x0100, CRC(d223f7b8) SHA1(87b62f09d4eda09c16d99d1554017d18e52b5886) ) /* loookup table */
595 	ROM_LOAD( "18s030.7a",    0x0120, 0x0020, CRC(8f574815) SHA1(4f84162db9d58b64742c67dc689eb665b9862fb3) ) /* video layout (not used) */
596 	ROM_LOAD( "6331-1.10a",   0x0140, 0x0020, CRC(b8861096) SHA1(26fad384ed7a1a1e0ba719b5578e2dbb09334a25) ) /* video timing (not used) */
597 ROM_END
598 
599 ROM_START( junglers )
600 	ROM_REGION( 0x10000, REGION_CPU1, 0 )	/* 64k for code */
601 	ROM_LOAD( "5c",           0x0000, 0x1000, CRC(edd71b28) SHA1(6bdd85bc1c24ca57573252fd636e05759164de8a) )
602 	ROM_LOAD( "5a",           0x1000, 0x1000, CRC(61ea4d46) SHA1(575ffe9fc7d5777c8f2d2b449623c353f42a4249) )
603 	ROM_LOAD( "4d",           0x2000, 0x1000, CRC(557c7925) SHA1(84d8eb2fdb7ee9098805be9f457a37f51e4bc3b8) )
604 	ROM_LOAD( "4c",           0x3000, 0x1000, CRC(51aac9a5) SHA1(2c8a24b4ce8cec96c6e09332f3f63bd7d25ae4c6) )
605 
606 	ROM_REGION( 0x10000, REGION_CPU2, 0 )	/* 64k for the audio CPU */
607 	ROM_LOAD( "1b",           0x0000, 0x1000, CRC(f86999c3) SHA1(4660bd7826219b1bad7d9178918823196d4fd8d6) )
608 
609 	ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE )
610 	ROM_LOAD( "5k",           0x0000, 0x0800, CRC(924262bf) SHA1(593f59630b3bd369aef0819992106b4e6e6a241f) )
611 	ROM_LOAD( "5m",           0x0800, 0x0800, CRC(131a08ac) SHA1(167a0710a2a153f7f7c6839d2340e5aa725ef039) )
612 	/* 1000-1fff empty for my convenience */
613 
614 	ROM_REGION( 0x0100, REGION_GFX2, ROMREGION_DISPOSE )
615 	ROM_LOAD( "82s129.10g",   0x0000, 0x0100, CRC(c59c51b7) SHA1(e8ac60fed9ba16c61a4c3c09e27f8c3f4e254014) ) /* dots */
616 
617 	ROM_REGION( 0x0160, REGION_PROMS, 0 )
618 	ROM_LOAD( "18s030.8b",    0x0000, 0x0020, CRC(55a7e6d1) SHA1(f9e4ff3b165235db2fd8dab94c43bc686c3ad29b) ) /* palette */
619 	ROM_LOAD( "tbp24s10.9d",  0x0020, 0x0100, CRC(d223f7b8) SHA1(87b62f09d4eda09c16d99d1554017d18e52b5886) ) /* loookup table */
620 	ROM_LOAD( "18s030.7a",    0x0120, 0x0020, CRC(8f574815) SHA1(4f84162db9d58b64742c67dc689eb665b9862fb3) ) /* video layout (not used) */
621 	ROM_LOAD( "6331-1.10a",   0x0140, 0x0020, CRC(b8861096) SHA1(26fad384ed7a1a1e0ba719b5578e2dbb09334a25) ) /* video timing (not used) */
622 ROM_END
623 
624 ROM_START( tactcian )
625 	ROM_REGION( 0x10000, REGION_CPU1, 0 )	/* 64k for code */
626 	ROM_LOAD( "tacticia.001", 0x0000, 0x1000, CRC(99163e39) SHA1(0a863f358a0bb065a9e2c41fcf4c20d370001dfe) )
627 	ROM_LOAD( "tacticia.002", 0x1000, 0x1000, CRC(6d3e8a69) SHA1(2b4b3f2b7401064540f59070ef6742d1f44ca839) )
628 	ROM_LOAD( "tacticia.003", 0x2000, 0x1000, CRC(0f71d0fa) SHA1(cb55243853b8b33034af7a6438f9a7c85a774d71) )
629 	ROM_LOAD( "tacticia.004", 0x3000, 0x1000, CRC(5e15f3b3) SHA1(01979f64b281a958f0a4effe2be21bf0e0a812bf) )
630 	ROM_LOAD( "tacticia.005", 0x4000, 0x1000, CRC(76456106) SHA1(580428f3c8cf442ee5c0f56db973644229aa8093) )
631 	ROM_LOAD( "tacticia.006", 0x5000, 0x1000, CRC(b33ca9ea) SHA1(0299c1cb9a3c6368bbbacb60c6f5c6854035a7bf) )
632 
633 	ROM_REGION( 0x10000, REGION_CPU2, 0 )	/* 64k for the audio CPU */
634 	ROM_LOAD( "tacticia.s2",  0x0000, 0x1000, CRC(97d145a7) SHA1(7aee9004287590a25e153d45b95dfaac89fbe996) )
635 	ROM_LOAD( "tacticia.s1",  0x1000, 0x1000, CRC(067f781b) SHA1(640bc7813c239e497644e53a080d81366fcd04df) )
636 
637 	ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE )
638 	ROM_LOAD( "tacticia.c1",  0x0000, 0x1000, CRC(5d3ee965) SHA1(654c033291f3d139fb94f7aacbc2d1917856deb6) )
639 	ROM_LOAD( "tacticia.c2",  0x1000, 0x1000, CRC(e8c59c4f) SHA1(e4881f2e2e08bb8af37cc679c4e2367528ac4804) )
640 
641 	ROM_REGION( 0x0100, REGION_GFX2, ROMREGION_DISPOSE )
642 	ROM_LOAD( "tact6301.004", 0x0000, 0x0100, CRC(88b0b511) SHA1(785eded1ba761cdb59db579eb8a786516ff58152) ) /* dots */	/* tac.a7*/
643 
644 	ROM_REGION( 0x0160, REGION_PROMS, 0 )
645 	ROM_LOAD( "tact6331.002", 0x0000, 0x0020, CRC(b7ef83b7) SHA1(5ffab25c2dc5be0856a43a93711d39c4aec6660b) ) /* palette */
646 	ROM_LOAD( "tact6301.003", 0x0020, 0x0100, CRC(a92796f2) SHA1(0faab2dc0f868f4023a34ecfcf972d1c86a224a0) ) /* loookup table */	/* tac.b4*/
647 	ROM_LOAD( "tact6331.001", 0x0120, 0x0020, CRC(8f574815) SHA1(4f84162db9d58b64742c67dc689eb665b9862fb3) ) /* video layout (not used) */
648 /*	ROM_LOAD( "10a.bpr",      0x0140, 0x0020, CRC(b8861096) SHA1(26fad384ed7a1a1e0ba719b5578e2dbb09334a25) )  // video timing (not used) /*/
649 ROM_END
650 
651 ROM_START( tactcan2 )
652 	ROM_REGION( 0x10000, REGION_CPU1, 0 )	/* 64k for code */
653 	ROM_LOAD( "tan1",         0x0000, 0x1000, CRC(ddf38b75) SHA1(bad66fd6ae0ab3b91989fca14a8696ed855dc852) )
654 	ROM_LOAD( "tan2",         0x1000, 0x1000, CRC(f065ee2e) SHA1(f2362c471981af3348465f3c8a5ffb38058432a5) )
655 	ROM_LOAD( "tan3",         0x2000, 0x1000, CRC(2dba64fe) SHA1(8d312a6db99d2248fef2bbc590ceba333b0fde8b) )
656 	ROM_LOAD( "tan4",         0x3000, 0x1000, CRC(2ba07847) SHA1(3cd7cd0621ed930cb5955fc2ffe3239f6e176321) )
657 	ROM_LOAD( "tan5",         0x4000, 0x1000, CRC(1dae4c61) SHA1(70283b8412b0725f1c2acc281625c582a4fae39d) )
658 	ROM_LOAD( "tan6",         0x5000, 0x1000, CRC(2b36a18d) SHA1(bea8f36ec98975438ab267509bd9d1d1eb605945) )
659 
660 	ROM_REGION( 0x10000, REGION_CPU2, 0 )	/* 64k for the audio CPU */
661 	/* sound ROMs were missing - using the ones from the other set */
662 	ROM_LOAD( "tacticia.s2",  0x0000, 0x1000, CRC(97d145a7) SHA1(7aee9004287590a25e153d45b95dfaac89fbe996) )
663 	ROM_LOAD( "tacticia.s1",  0x1000, 0x1000, CRC(067f781b) SHA1(640bc7813c239e497644e53a080d81366fcd04df) )
664 
665 	ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE )
666 	ROM_LOAD( "c1",           0x0000, 0x1000, CRC(5399471f) SHA1(66aea0df982ccbd6caaa24c258b2ba364bc1ecfd) )
667 	ROM_LOAD( "c2",           0x1000, 0x1000, CRC(8e8861e8) SHA1(38728418b09df06356c1e45a26cf438b93517ce5) )
668 
669 	ROM_REGION( 0x0100, REGION_GFX2, ROMREGION_DISPOSE )
670 	ROM_LOAD( "tact6301.004", 0x0000, 0x0100, CRC(88b0b511) SHA1(785eded1ba761cdb59db579eb8a786516ff58152) ) /* dots */	/* tac.a7*/
671 
672 	ROM_REGION( 0x0160, REGION_PROMS, 0 )
673 	ROM_LOAD( "tact6331.002", 0x0000, 0x0020, CRC(b7ef83b7) SHA1(5ffab25c2dc5be0856a43a93711d39c4aec6660b) ) /* palette */
674 	ROM_LOAD( "tact6301.003", 0x0020, 0x0100, CRC(a92796f2) SHA1(0faab2dc0f868f4023a34ecfcf972d1c86a224a0) ) /* loookup table */	/* tac.b4*/
675 	ROM_LOAD( "tact6331.001", 0x0120, 0x0020, CRC(8f574815) SHA1(4f84162db9d58b64742c67dc689eb665b9862fb3) ) /* video layout (not used) */
676 /*	ROM_LOAD( "10a.bpr",      0x0140, 0x0020, CRC(b8861096) SHA1(26fad384ed7a1a1e0ba719b5578e2dbb09334a25) )  // video timing (not used) /*/
677 ROM_END
678 
679 ROM_START( locomotn )
680 	ROM_REGION( 0x10000, REGION_CPU1, 0 )	/* 64k for code */
681 	ROM_LOAD( "1a.cpu",       0x0000, 0x1000, CRC(b43e689a) SHA1(7f1a0fa1ea9ff95a9d51b23ea00792ba22024282) )
682 	ROM_LOAD( "2a.cpu",       0x1000, 0x1000, CRC(529c823d) SHA1(714ae0af254646eb6ebc5f47422246832e89ccfb) )
683 	ROM_LOAD( "3.cpu",        0x2000, 0x1000, CRC(c9dbfbd1) SHA1(10ec7403053ef52d0ce4aa6eab3e82a3ea5e57ff) )
684 	ROM_LOAD( "4.cpu",        0x3000, 0x1000, CRC(caf6431c) SHA1(f013d8846fad9f64367b69febeb7512029a639c0) )
685 	ROM_LOAD( "5.cpu",        0x4000, 0x1000, CRC(64cf8dd6) SHA1(8fa1b5c4a7f136cb74833425a565fa558eeee083) )
686 
687 	ROM_REGION( 0x10000, REGION_CPU2, 0 )	/* 64k for the audio CPU */
688 	ROM_LOAD( "1b_s1.bin",    0x0000, 0x1000, CRC(a1105714) SHA1(6e2e264748ab90bc5e8e8167f17ff91677ef6ae7) )
689 
690 	ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE )
691 	ROM_LOAD( "5l_c1.bin",    0x0000, 0x1000, CRC(5732eda9) SHA1(451de30946a9c8198c5ec83cc5c50e3ac2f9f56b) )
692 	ROM_LOAD( "c2.cpu",       0x1000, 0x1000, CRC(c3035300) SHA1(ddb1d658a28b973b60e2ce72fd7662537e147860) )
693 
694 	ROM_REGION( 0x0100, REGION_GFX2, ROMREGION_DISPOSE )
695 	ROM_LOAD( "10g.bpr",      0x0000, 0x0100, CRC(2ef89356) SHA1(5ed33386bab5d583358709c92f21ad9ad1a1bce9) ) /* dots */
696 
697 	ROM_REGION( 0x0160, REGION_PROMS, 0 )
698 	ROM_LOAD( "8b.bpr",       0x0000, 0x0020, CRC(75b05da0) SHA1(aee98f5389e42332f30a6882ee22ff23f37e0573) ) /* palette */
699 	ROM_LOAD( "9d.bpr",       0x0020, 0x0100, CRC(aa6cf063) SHA1(08c1c9ab03eb168954b0170d40e95eed81022acd) ) /* loookup table */
700 	ROM_LOAD( "7a.bpr",       0x0120, 0x0020, CRC(48c8f094) SHA1(61592209720fddc8991751edf08b6950388af42e) ) /* video layout (not used) */
701 	ROM_LOAD( "10a.bpr",      0x0140, 0x0020, CRC(b8861096) SHA1(26fad384ed7a1a1e0ba719b5578e2dbb09334a25) ) /* video timing (not used) */
702 ROM_END
703 
704 ROM_START( gutangtn )
705 	ROM_REGION( 0x10000, REGION_CPU1, 0 )	/* 64k for code */
706 	ROM_LOAD( "3d_1.bin",     0x0000, 0x1000, CRC(e9757395) SHA1(78e2f8988ed39d2ecfe1f874be370f603d5eecc1) )
707 	ROM_LOAD( "3e_2.bin",     0x1000, 0x1000, CRC(11d21d2e) SHA1(fd17dd481bb7bb39234fa7e9946b1cb4fa18109e) )
708 	ROM_LOAD( "3f_3.bin",     0x2000, 0x1000, CRC(4d80f895) SHA1(7d83f4ee34226636012a84f46af01991a28b96f6) )
709 	ROM_LOAD( "3h_4.bin",     0x3000, 0x1000, CRC(aa258ddf) SHA1(0f01ac0d72d8bb5a55c91a6fba3e55ed1c038b86) )
710 	ROM_LOAD( "3j_5.bin",     0x4000, 0x1000, CRC(52aec87e) SHA1(6516724c4e570972f070f6dab5b066ea92f56be0) )
711 
712 	ROM_REGION( 0x10000, REGION_CPU2, 0 )	/* 64k for the audio CPU */
713 	ROM_LOAD( "1b_s1.bin",    0x0000, 0x1000, CRC(a1105714) SHA1(6e2e264748ab90bc5e8e8167f17ff91677ef6ae7) )
714 
715 	ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE )
716 	ROM_LOAD( "5l_c1.bin",    0x0000, 0x1000, CRC(5732eda9) SHA1(451de30946a9c8198c5ec83cc5c50e3ac2f9f56b) )
717 	ROM_LOAD( "5m_c2.bin",    0x1000, 0x1000, CRC(51c542fd) SHA1(1437f8cba15811361b2c5b46085587ea3598fc88) )
718 
719 	ROM_REGION( 0x0100, REGION_GFX2, ROMREGION_DISPOSE )
720 	ROM_LOAD( "10g.bpr",      0x0000, 0x0100, CRC(2ef89356) SHA1(5ed33386bab5d583358709c92f21ad9ad1a1bce9) ) /* dots */
721 
722 	ROM_REGION( 0x0160, REGION_PROMS, 0 )
723 	ROM_LOAD( "8b.bpr",       0x0000, 0x0020, CRC(75b05da0) SHA1(aee98f5389e42332f30a6882ee22ff23f37e0573) ) /* palette */
724 	ROM_LOAD( "9d.bpr",       0x0020, 0x0100, CRC(aa6cf063) SHA1(08c1c9ab03eb168954b0170d40e95eed81022acd) ) /* loookup table */
725 	ROM_LOAD( "7a.bpr",       0x0120, 0x0020, CRC(48c8f094) SHA1(61592209720fddc8991751edf08b6950388af42e) ) /* video layout (not used) */
726 	ROM_LOAD( "10a.bpr",      0x0140, 0x0020, CRC(b8861096) SHA1(26fad384ed7a1a1e0ba719b5578e2dbb09334a25) ) /* video timing (not used) */
727 ROM_END
728 
729 ROM_START( cottong )
730 	ROM_REGION( 0x10000, REGION_CPU1, 0 ) /* 64k for code */
731 	ROM_LOAD( "c1",           0x0000, 0x1000, CRC(2c256fe6) SHA1(115594c616497eec998e4e3255ec6ab6299346fa) )
732 	ROM_LOAD( "c2",           0x1000, 0x1000, CRC(1de5e6a0) SHA1(8bb3408a510662ff3b9b7201d2d06fe70685bf7f) )
733 	ROM_LOAD( "c3",           0x2000, 0x1000, CRC(01f909fe) SHA1(c80295e9f91ce25bfd28e72823b20ee6f6524a5c) )
734 	ROM_LOAD( "c4",           0x3000, 0x1000, CRC(a89eb3e3) SHA1(058928ade909faba06f177750f914cf1dabaefc3) )
735 
736 	ROM_REGION( 0x10000, REGION_CPU2, 0 ) /* 64k for the audio CPU */
737 	ROM_LOAD( "c7",           0x0000, 0x1000, CRC(3d83f6d3) SHA1(e10ed6b6ce7280697c1bc9dbe6c6e6018e1d8be4) )
738 	ROM_LOAD( "c8",           0x1000, 0x1000, CRC(323e1937) SHA1(75499d6c8a9032fac090a13cd4f36bd350f52dab) )
739 
740 	ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE )
741 	ROM_LOAD( "c5",           0x0000, 0x1000, CRC(992d079c) SHA1(b5acd30f2e8700cc4cd852b190bd1f4163b137e8) )
742 	ROM_LOAD( "c6",           0x1000, 0x1000, CRC(0149ef46) SHA1(58f684a9b7b9410236b3c54ea6c0fa9853a078c5) )
743 
744 	ROM_REGION( 0x0100, REGION_GFX2, ROMREGION_DISPOSE )
745 	ROM_LOAD( "5.bpr",        0x0000, 0x0100, CRC(21fb583f) SHA1(b8c65fbdd5d8b70bf51341cd60fc2efeaab8bb82) ) /* dots */
746 
747 	ROM_REGION( 0x0160, REGION_PROMS, 0 )
748 	ROM_LOAD( "2.bpr",        0x0000, 0x0020, CRC(26f42e6f) SHA1(f51578216a5d588c4d0143ce7a23d695a15a3914) ) /* palette */
749 	ROM_LOAD( "3.bpr",        0x0020, 0x0100, CRC(4aecc0c8) SHA1(3c1086a598d84b4bcb277556b716fd18c76c4364) ) /* loookup table */
750 	ROM_LOAD( "7a.bpr",       0x0120, 0x0020, CRC(48c8f094) SHA1(61592209720fddc8991751edf08b6950388af42e) ) /* video layout (not used) */
751 	ROM_LOAD( "10a.bpr",      0x0140, 0x0020, CRC(b8861096) SHA1(26fad384ed7a1a1e0ba719b5578e2dbb09334a25) ) /* video timing (not used) */
752 ROM_END
753 
754 ROM_START( commsega )
755 	ROM_REGION( 0x10000, REGION_CPU1, 0 ) /* 64k for code */
756 	ROM_LOAD( "csega1",       0x0000, 0x1000, CRC(92de3405) SHA1(81ef4274b13f92d6274a0a037d7dc77ba0f67a1b) )
757 	ROM_LOAD( "csega2",       0x1000, 0x1000, CRC(f14e2f9a) SHA1(c1a7ec1c306e07bac0bbf19b60f756650f63ae29) )
758 	ROM_LOAD( "csega3",       0x2000, 0x1000, CRC(941dbf48) SHA1(01d2d64fb662af423aa04507ba97997772130c54) )
759 	ROM_LOAD( "csega4",       0x3000, 0x1000, CRC(e0ac69b4) SHA1(3a52b2a6204b7310cfe321c582352b437de16660) )
760 	ROM_LOAD( "csega5",       0x4000, 0x1000, CRC(bc56ebd0) SHA1(a178cd5ba381b107e720e18f3549247477037998) )
761 
762 	ROM_REGION( 0x10000, REGION_CPU2, 0 ) /* 64k for the audio CPU */
763 	ROM_LOAD( "csega8",       0x0000, 0x1000, CRC(588b4210) SHA1(43bac1bdac721567e4b5d56e9e4488165872bd6a) )
764 
765 	ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE )
766 	ROM_LOAD( "csega7",       0x0000, 0x1000, CRC(e8e374f9) SHA1(442cc6b7e7d5b9472a5c16d6f78db0c03e651e98) )
767 	ROM_LOAD( "csega6",       0x1000, 0x1000, CRC(cf07fd5e) SHA1(4fe351c3d093f8f5fcf95e3e921a06e44d14d2a7) )
768 
769 	ROM_REGION( 0x0100, REGION_GFX2, ROMREGION_DISPOSE )
770 	ROM_LOAD( "gg3.bpr",      0x0000, 0x0100, CRC(ae7fd962) SHA1(118359cffb2ad3fdf09456a484aa730cb1b85a5d) ) /* dots */
771 
772 	ROM_REGION( 0x0160, REGION_PROMS, 0 )
773 	ROM_LOAD( "gg1.bpr",      0x0000, 0x0020, CRC(f69e585a) SHA1(248740b154732b6bc6f772d4bb19d654798c3739) ) /* palette */
774 	ROM_LOAD( "gg2.bpr",      0x0020, 0x0100, CRC(0b756e30) SHA1(8890e305547df8df108af0f89074fb1c8bed8e6c) ) /* loookup table */
775 	ROM_LOAD( "gg0.bpr",      0x0120, 0x0020, CRC(48c8f094) SHA1(61592209720fddc8991751edf08b6950388af42e) ) /* video layout (not used) */
776 	ROM_LOAD( "tt3.bpr",      0x0140, 0x0020, CRC(b8861096) SHA1(26fad384ed7a1a1e0ba719b5578e2dbb09334a25) ) /* video timing (not used) */
777 ROM_END
778 
779 
780 
781 GAME( 1981, jungler,  0,        jungler,  jungler,  0, ROT90, "Konami", "Jungler" )
782 GAME( 1981, junglers, jungler,  jungler,  jungler,  0, ROT90, "[Konami] (Stern license)", "Jungler (Stern)" )
783 GAME( 1982, tactcian, 0,        tactcian, tactcian, 0, ROT90, "[Konami] (Sega license)", "Tactician (set 1)" )
784 GAME( 1981, tactcan2, tactcian, tactcian, tactcian, 0, ROT90, "[Konami] (Sega license)", "Tactician (set 2)" )
785 GAME( 1982, locomotn, 0,        locomotn, locomotn, 0, ROT90, "Konami (Centuri license)", "Loco-Motion" )
786 GAME( 1982, gutangtn, locomotn, locomotn, locomotn, 0, ROT90, "Konami (Sega license)", "Guttang Gottong" )
787 GAME( 1982, cottong,  locomotn, locomotn, locomotn, 0, ROT90, "bootleg", "Cotocoto Cottong" )
788 GAME( 1983, commsega, 0,        commsega, commsega, 0, ROT90, "Sega", "Commando (Sega)" )
789