1 /***************************************************************************
2 
3   Fast Freddie/Jump Coaster hardware
4   driver by Zsolt Vasvari
5 
6 ***************************************************************************/
7 
8 #include "driver.h"
9 #include "fastfred.h"
10 
11 
12 // This routine is a big hack, but the only way I can get the game working
13 // without knowing anything about the way the protection chip works.
14 // These values were derived based on disassembly of the code. Usually, it
15 // was pretty obvious what the values should be. Of course, this will have
16 // to change if a different ROM set ever surfaces.
READ_HANDLER(fastfred_custom_io_r)17 static READ_HANDLER( fastfred_custom_io_r )
18 {
19     switch (activecpu_get_pc())
20     {
21     case 0x03c0: return 0x9d;
22     case 0x03e6: return 0x9f;
23     case 0x0407: return 0x00;
24     case 0x0446: return 0x94;
25     case 0x049f: return 0x01;
26     case 0x04b1: return 0x00;
27     case 0x0dd2: return 0x00;
28     case 0x0de4: return 0x20;
29     case 0x122b: return 0x10;
30     case 0x123d: return 0x00;
31     case 0x1a83: return 0x10;
32     case 0x1a93: return 0x00;
33     case 0x1b26: return 0x00;
34     case 0x1b37: return 0x80;
35     case 0x2491: return 0x10;
36     case 0x24a2: return 0x00;
37     case 0x46ce: return 0x20;
38     case 0x46df: return 0x00;
39     case 0x7b18: return 0x01;
40     case 0x7b29: return 0x00;
41     case 0x7b47: return 0x00;
42     case 0x7b58: return 0x20;
43     }
44 
45     logerror("Uncaught custom I/O read %04X at %04X\n", 0xc800+offset, activecpu_get_pc());
46     return 0x00;
47 }
48 
READ_HANDLER(jumpcoas_custom_io_r)49 static READ_HANDLER( jumpcoas_custom_io_r )
50 {
51 	if (offset == 0x100)  return 0x63;
52 
53 	return 0x00;
54 }
55 
56 
MEMORY_READ_START(fastfred_readmem)57 static MEMORY_READ_START( fastfred_readmem )
58 	{ 0x0000, 0xbfff, MRA_ROM },
59 	{ 0xc000, 0xc7ff, MRA_RAM },
60 	{ 0xd000, 0xd3ff, MRA_RAM },
61 	{ 0xd800, 0xd8ff, MRA_RAM },
62 	{ 0xe000, 0xe000, input_port_0_r },
63 	{ 0xe800, 0xe800, input_port_1_r },
64 	{ 0xf000, 0xf000, input_port_2_r },
65 	{ 0xf800, 0xf800, watchdog_reset_r },
66 MEMORY_END
67 
68 static MEMORY_WRITE_START( fastfred_writemem )
69 	{ 0x0000, 0xbfff, MWA_ROM },
70 	{ 0xc000, 0xc7ff, MWA_RAM },
71 	{ 0xd000, 0xd3ff, fastfred_videoram_w, &fastfred_videoram },
72 	{ 0xd400, 0xd7ff, fastfred_videoram_w },  // Mirrored for above
73 	{ 0xd800, 0xd83f, fastfred_attributes_w, &fastfred_attributesram },
74 	{ 0xd840, 0xd85f, MWA_RAM, &fastfred_spriteram, &fastfred_spriteram_size },
75 	{ 0xd860, 0xdbff, MWA_RAM }, // Unused, but initialized
76 	{ 0xe000, 0xe000, fastfred_background_color_w },
77 	{ 0xf000, 0xf000, MWA_NOP }, // Unused, but initialized
78 	{ 0xf001, 0xf001, interrupt_enable_w },
79 	{ 0xf002, 0xf002, fastfred_colorbank1_w },
80 	{ 0xf003, 0xf003, fastfred_colorbank2_w },
81 	{ 0xf004, 0xf004, fastfred_charbank1_w },
82 	{ 0xf005, 0xf005, fastfred_charbank2_w },
83 	{ 0xf006, 0xf006, fastfred_flip_screen_x_w },
84 	{ 0xf007, 0xf007, fastfred_flip_screen_y_w },
85 	{ 0xf116, 0xf116, fastfred_flip_screen_x_w },
86 	{ 0xf117, 0xf117, fastfred_flip_screen_y_w },
87 	{ 0xf800, 0xf800, soundlatch_w },
88 MEMORY_END
89 
90 
91 static MEMORY_READ_START( jumpcoas_readmem )
92 	{ 0x0000, 0x7fff, MRA_ROM },
93 	{ 0xc000, 0xc7ff, MRA_RAM },
94 	{ 0xd000, 0xd3ff, MRA_RAM },
95 	{ 0xd800, 0xdbff, MRA_RAM },
96 	{ 0xe800, 0xe800, input_port_0_r },
97 	{ 0xe801, 0xe801, input_port_1_r },
98 	{ 0xe802, 0xe802, input_port_2_r },
99 	{ 0xe803, 0xe803, input_port_3_r },
100 	//{ 0xf800, 0xf800, watchdog_reset_r },  // Why doesn't this work???
101 	{ 0xf800, 0xf800, MRA_NOP },
102 MEMORY_END
103 
104 
105 static MEMORY_WRITE_START( jumpcoas_writemem )
106 	{ 0x0000, 0x7fff, MWA_ROM },
107 	{ 0xc000, 0xc7ff, MWA_RAM },
108 	{ 0xd000, 0xd03f, fastfred_attributes_w, &fastfred_attributesram },
109 	{ 0xd040, 0xd05f, MWA_RAM, &fastfred_spriteram, &fastfred_spriteram_size },
110 	{ 0xd060, 0xd3ff, MWA_NOP },
111 	{ 0xd800, 0xdbff, fastfred_videoram_w, &fastfred_videoram },
112 	{ 0xdc00, 0xdfff, fastfred_videoram_w },	/* mirror address, used in the name entry screen */
113 	{ 0xe000, 0xe000, fastfred_background_color_w },
114 	{ 0xf000, 0xf000, MWA_NOP }, // Unused, but initialized
115 	{ 0xf001, 0xf001, interrupt_enable_w },
116 	{ 0xf002, 0xf002, fastfred_colorbank1_w },
117 	{ 0xf003, 0xf003, fastfred_colorbank2_w },
118 	{ 0xf004, 0xf004, fastfred_charbank1_w },
119 	{ 0xf005, 0xf005, fastfred_charbank2_w },
120 	{ 0xf006, 0xf006, fastfred_flip_screen_x_w },
121 	{ 0xf007, 0xf007, fastfred_flip_screen_y_w },
122 	{ 0xf116, 0xf116, fastfred_flip_screen_x_w },
123 	{ 0xf117, 0xf117, fastfred_flip_screen_y_w },
124 	{ 0xf800, 0xf800, AY8910_control_port_0_w },
125 	{ 0xf801, 0xf801, AY8910_write_port_0_w },
126 MEMORY_END
127 
128 static MEMORY_READ_START( imago_readmem )
129 	{ 0x0000, 0x0fff, MRA_ROM },
130 	{ 0x2000, 0x6fff, MRA_ROM },
131 	{ 0xb000, 0xb3ff, MRA_RAM },
132 	{ 0xc000, 0xc7ff, MRA_RAM },
133 	{ 0xc800, 0xcbff, MRA_RAM },
134 	{ 0xd000, 0xd3ff, MRA_RAM },
135 	{ 0xd800, 0xd8ff, MRA_RAM },
136 	{ 0xe000, 0xe000, input_port_0_r },
137 	{ 0xe800, 0xe800, input_port_1_r },
138 	{ 0xf000, 0xf000, input_port_2_r },
139 	{ 0xf800, 0xf800, MRA_NOP },
140 MEMORY_END
141 
142 static MEMORY_WRITE_START( imago_writemem )
143 	{ 0x0000, 0x0fff, MWA_ROM },
144 	{ 0x2000, 0x6fff, MWA_ROM },
145 	{ 0xb000, 0xb3ff, MWA_RAM },
146 	{ 0xc000, 0xc7ff, MWA_RAM },
147 	{ 0xc800, 0xcbff, imago_fg_videoram_w, &imago_fg_videoram },
148 	{ 0xd000, 0xd3ff, fastfred_videoram_w, &fastfred_videoram },
149 	{ 0xd800, 0xd83f, fastfred_attributes_w, &fastfred_attributesram },
150 	{ 0xd840, 0xd85f, MWA_RAM, &fastfred_spriteram, &fastfred_spriteram_size },
151 	{ 0xd860, 0xd8ff, MWA_RAM }, // Unused, but initialized
152 	{ 0xf000, 0xf000, MWA_NOP }, // writes 1 when level starts, 0 when game over
153 	{ 0xf001, 0xf001, interrupt_enable_w },
154 	{ 0xf002, 0xf002, fastfred_colorbank1_w },
155 	{ 0xf003, 0xf003, fastfred_colorbank2_w },
156 	{ 0xf004, 0xf004, MWA_NOP }, // initialized with 0 then when written always 1
157 	{ 0xf005, 0xf005, imago_charbank_w },
158 	{ 0xf006, 0xf006, MWA_NOP }, // always 0
159 	{ 0xf007, 0xf007, MWA_NOP }, // always 0
160 	{ 0xf800, 0xf800, soundlatch_w },
161 MEMORY_END
162 
163 static MEMORY_READ_START( sound_readmem )
164 	{ 0x0000, 0x1fff, MRA_ROM },
165 	{ 0x2000, 0x23ff, MRA_RAM },
166 	{ 0x3000, 0x3000, soundlatch_r },
167 	{ 0x7000, 0x7000, MRA_NOP }, // only for Imago, read but not used
168 MEMORY_END
169 
170 
171 static MEMORY_WRITE_START( sound_writemem )
172 	{ 0x0000, 0x1fff, MWA_ROM },
173 	{ 0x2000, 0x23ff, MWA_RAM },
174 	{ 0x3000, 0x3000, interrupt_enable_w },
175 	{ 0x4000, 0x4000, MWA_RAM },  // Reset PSG's
176 	{ 0x5000, 0x5000, AY8910_control_port_0_w },
177 	{ 0x5001, 0x5001, AY8910_write_port_0_w },
178 	{ 0x6000, 0x6000, AY8910_control_port_1_w },
179 	{ 0x6001, 0x6001, AY8910_write_port_1_w },
180 MEMORY_END
181 
182 
183 INPUT_PORTS_START( fastfred )
184 	PORT_START      /* IN1 */
185 	PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
186 	PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
187 	PORT_SERVICE( 0x04, IP_ACTIVE_HIGH )
188 	PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_START1 )
189 	PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_START2 )
190 	PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_COIN3 )
191 	PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON1 )
192 	PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON1 | IPF_COCKTAIL )
193 
194 	PORT_START      /* IN2 */
195 	PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT | IPF_8WAY )
196 	PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT | IPF_8WAY )
197 	PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT | IPF_8WAY | IPF_COCKTAIL )
198 	PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT | IPF_8WAY | IPF_COCKTAIL )
199 	PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP | IPF_8WAY )
200 	PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN | IPF_8WAY )
201 	PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP | IPF_8WAY | IPF_COCKTAIL )
202 	PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN | IPF_8WAY | IPF_COCKTAIL )
203 
204 	PORT_START      /* DSW 1 */
205 	PORT_DIPNAME( 0x0f, 0x00, DEF_STR( Coinage ) )
206 	PORT_DIPSETTING(    0x01, "A 2/1 B 2/1" )
207 	PORT_DIPSETTING(    0x02, "A 2/1 B 1/3" )
208 	PORT_DIPSETTING(    0x00, "A 1/1 B 1/1" )
209 	PORT_DIPSETTING(    0x03, "A 1/1 B 1/2" )
210 	PORT_DIPSETTING(    0x04, "A 1/1 B 1/3" )
211 	PORT_DIPSETTING(    0x05, "A 1/1 B 1/4" )
212 	PORT_DIPSETTING(    0x06, "A 1/1 B 1/5" )
213 	PORT_DIPSETTING(    0x07, "A 1/1 B 1/6" )
214 	PORT_DIPSETTING(    0x08, "A 1/2 B 1/2" )
215 	PORT_DIPSETTING(    0x09, "A 1/2 B 1/4" )
216 	PORT_DIPSETTING(    0x0a, "A 1/2 B 1/5" )
217 	PORT_DIPSETTING(    0x0e, "A 1/2 B 1/6" )
218 	PORT_DIPSETTING(    0x0b, "A 1/2 B 1/10" )
219 	PORT_DIPSETTING(    0x0c, "A 1/2 B 1/11" )
220 	PORT_DIPSETTING(    0x0d, "A 1/2 B 1/12" )
221 	PORT_DIPSETTING(    0x0f, DEF_STR( Free_Play ) )
222 	PORT_DIPNAME( 0x10, 0x00, DEF_STR( Lives ) )
223 	PORT_DIPSETTING(    0x00, "3" )
224 	PORT_DIPSETTING(    0x10, "5" )
225 	PORT_DIPNAME( 0x60, 0x20, DEF_STR( Bonus_Life ) )
226 	PORT_DIPSETTING(    0x20, "30000" )
227 	PORT_DIPSETTING(    0x40, "50000" )
228 	PORT_DIPSETTING(    0x60, "100000" )
229 	PORT_DIPSETTING(    0x00, "None" )
230 	PORT_DIPNAME( 0x80, 0x00, DEF_STR( Cabinet ) )
231 	PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
232 	PORT_DIPSETTING(    0x80, DEF_STR( Cocktail ) )
233 INPUT_PORTS_END
234 
235 INPUT_PORTS_START( flyboy )
236 	PORT_START      /* IN1 */
237 	PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
238 	PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
239 	PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED )
240 	PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_START1 )
241 	PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_START2 )
242 	PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED )
243 	PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON1 )
244 	PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON1 | IPF_COCKTAIL )
245 
246 	PORT_START      /* IN2 */
247 	PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT | IPF_8WAY )
248 	PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT | IPF_8WAY )
249 	PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT | IPF_8WAY | IPF_COCKTAIL )
250 	PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT | IPF_8WAY | IPF_COCKTAIL )
251 	PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP | IPF_8WAY )
252 	PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN | IPF_8WAY )
253 	PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP | IPF_8WAY | IPF_COCKTAIL )
254 	PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN | IPF_8WAY | IPF_COCKTAIL )
255 
256 	PORT_START      /* DSW 1 */
257 	PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coin_A ) )
258 	PORT_DIPSETTING(    0x03, DEF_STR( 6C_1C ) )
259 	PORT_DIPSETTING(    0x02, DEF_STR( 2C_1C ) )
260 	PORT_DIPSETTING(    0x00, DEF_STR( 1C_1C ) )
261 	PORT_DIPSETTING(    0x01, DEF_STR( 1C_2C ) )
262 	PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Coin_B ) )
263 	PORT_DIPSETTING(    0x0c, DEF_STR( 6C_1C ) )
264 	PORT_DIPSETTING(    0x08, DEF_STR( 2C_1C ) )
265 	PORT_DIPSETTING(    0x00, DEF_STR( 1C_1C ) )
266 	PORT_DIPSETTING(    0x04, DEF_STR( 1C_2C ) )
267 	PORT_DIPNAME( 0x30, 0x00, DEF_STR( Lives ) )
268 	PORT_DIPSETTING(    0x00, "3" )
269 	PORT_DIPSETTING(    0x10, "5" )
270 	PORT_DIPSETTING(    0x20, "7" )
271 	PORT_BITX( 0,       0x30, IPT_DIPSWITCH_SETTING | IPF_CHEAT, "255", IP_KEY_NONE, IP_JOY_NONE )
272 	PORT_BITX(    0x40, 0x00, IPT_DIPSWITCH_NAME | IPF_CHEAT, "Invulnerability", IP_KEY_NONE, IP_JOY_NONE )
273 	PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
274 	PORT_DIPSETTING(    0x40, DEF_STR( On ) )
275 	PORT_DIPNAME( 0x80, 0x00, DEF_STR( Cabinet ) )
276 	PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
277 	PORT_DIPSETTING(    0x80, DEF_STR( Cocktail ) )
278 INPUT_PORTS_END
279 
280 INPUT_PORTS_START( jumpcoas )
281 	PORT_START      /* DSW 0 */
282 	PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coin_A ) )
283 	PORT_DIPSETTING(    0x03, DEF_STR( 6C_1C ) )
284 	PORT_DIPSETTING(    0x02, DEF_STR( 2C_1C ) )
285 	PORT_DIPSETTING(    0x00, DEF_STR( 1C_1C ) )
286 	PORT_DIPSETTING(    0x01, DEF_STR( 1C_2C ) )
287 	PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Coin_B ) )
288 	PORT_DIPSETTING(    0x0c, DEF_STR( 6C_1C ) )
289 	PORT_DIPSETTING(    0x08, DEF_STR( 2C_1C ) )
290 	PORT_DIPSETTING(    0x00, DEF_STR( 1C_1C ) )
291 	PORT_DIPSETTING(    0x04, DEF_STR( 1C_2C ) )
292 	PORT_DIPNAME( 0x30, 0x00, DEF_STR( Lives ) )
293 	PORT_DIPSETTING(    0x00, "3" )
294 	PORT_DIPSETTING(    0x10, "5" )
295 	PORT_DIPSETTING(    0x20, "7" )
296 	PORT_BITX( 0,       0x30, IPT_DIPSWITCH_SETTING | IPF_CHEAT, "255", IP_KEY_NONE, IP_JOY_NONE )
297 	PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unused ) )
298 	PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
299 	PORT_DIPSETTING(    0x40, DEF_STR( On ) )
300 	PORT_DIPNAME( 0x80, 0x00, DEF_STR( Cabinet ) )
301 	PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
302 	PORT_DIPSETTING(    0x80, DEF_STR( Cocktail ) )
303 
304 	PORT_START	/* DSW 1 (maybe) */
305 
306 	PORT_START      /* IN1 */
307 	PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
308 	PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
309 	PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN )
310 	PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_START1 )
311 	PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_START2 )
312 	PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN )
313 	PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON1 )
314 	PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON1 | IPF_COCKTAIL )
315 
316 	PORT_START      /* IN2 */
317 	PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT | IPF_8WAY )
318 	PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT | IPF_8WAY )
319 	PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT | IPF_8WAY | IPF_COCKTAIL )
320 	PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT | IPF_8WAY | IPF_COCKTAIL )
321 	PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP | IPF_8WAY )
322 	PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN | IPF_8WAY )
323 	PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP | IPF_8WAY | IPF_COCKTAIL )
324 	PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN | IPF_8WAY | IPF_COCKTAIL )
325 INPUT_PORTS_END
326 
327 INPUT_PORTS_START( boggy84 )
328 	PORT_START      /* DSW 0 */
329 	PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coin_A ) )
330 	PORT_DIPSETTING(    0x03, DEF_STR( 6C_1C ) )
331 	PORT_DIPSETTING(    0x02, DEF_STR( 2C_1C ) )
332 	PORT_DIPSETTING(    0x00, DEF_STR( 1C_1C ) )
333 	PORT_DIPSETTING(    0x01, DEF_STR( 1C_2C ) )
334 	PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Coin_B ) )
335 	PORT_DIPSETTING(    0x0c, DEF_STR( 6C_1C ) )
336 	PORT_DIPSETTING(    0x08, DEF_STR( 2C_1C ) )
337 	PORT_DIPSETTING(    0x00, DEF_STR( 1C_1C ) )
338 	PORT_DIPSETTING(    0x04, DEF_STR( 1C_2C ) )
339 	PORT_DIPNAME( 0x30, 0x00, DEF_STR( Lives ) )
340 	PORT_DIPSETTING(    0x00, "3" )
341 	PORT_DIPSETTING(    0x10, "5" )
342 	PORT_DIPSETTING(    0x20, "7" )
343 	PORT_BITX( 0,       0x30, IPT_DIPSWITCH_SETTING | IPF_CHEAT, "255", IP_KEY_NONE, IP_JOY_NONE )
344 	PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unused ) )
345 	PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
346 	PORT_DIPSETTING(    0x40, DEF_STR( On ) )
347 	PORT_DIPNAME( 0x80, 0x00, DEF_STR( Cabinet ) )
348 	PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
349 	PORT_DIPSETTING(    0x80, DEF_STR( Cocktail ) )
350 
351 	PORT_START	/* DSW 1 (maybe) */
352 	PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
353 	PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
354 	PORT_DIPSETTING(    0x00, DEF_STR( On ) )
355 	PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) )
356 	PORT_DIPSETTING(    0x02, DEF_STR( Off ) )
357 	PORT_DIPSETTING(    0x00, DEF_STR( On ) )
358 	PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) )
359 	PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
360 	PORT_DIPSETTING(    0x00, DEF_STR( On ) )
361 	PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) )
362 	PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
363 	PORT_DIPSETTING(    0x00, DEF_STR( On ) )
364 	PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) )
365 	PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
366 	PORT_DIPSETTING(    0x00, DEF_STR( On ) )
367 	PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) )
368 	PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
369 	PORT_DIPSETTING(    0x00, DEF_STR( On ) )
370 	PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )
371 	PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
372 	PORT_DIPSETTING(    0x00, DEF_STR( On ) )
373 	PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
374 	PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
375 	PORT_DIPSETTING(    0x00, DEF_STR( On ) )
376 
377 	PORT_START      /* IN1 */
378 	PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
379 	PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
380 	PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON2 )
381 	PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_START1 )
382 	PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_START2 )
383 	PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN )
384 	PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON1 )
385 	PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN )
386 
387 	PORT_START      /* IN2 */
388 	PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT | IPF_8WAY )
389 	PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT | IPF_8WAY )
390 	PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN )
391 	PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN )
392 	PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP | IPF_8WAY )
393 	PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN | IPF_8WAY )
394 	PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN )
395 	PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN )
396 INPUT_PORTS_END
397 
398 INPUT_PORTS_START( redrobin )
399 	PORT_START      /* IN1 */
400 	PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
401 	PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
402 	PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON2 )
403 	PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_START1 )
404 	PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_START2 )
405 	PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED )
406 	PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON1 | IPF_8WAY )
407 	PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED )
408 
409 	PORT_START      /* IN2 */
410 	PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT | IPF_8WAY )
411 	PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT | IPF_8WAY )
412 	PORT_BIT( 0xfc, IP_ACTIVE_HIGH, IPT_UNUSED )
413 
414 	PORT_START      /* DSW 1 */
415 	PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coin_B ) )
416 	PORT_DIPSETTING(    0x03, DEF_STR( 4C_1C ) )
417 	PORT_DIPSETTING(    0x02, DEF_STR( 3C_1C ) )
418 	PORT_DIPSETTING(    0x01, DEF_STR( 2C_1C ) )
419 	PORT_DIPSETTING(    0x00, DEF_STR( 1C_1C ) )
420 	PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Coin_A ) )
421 	PORT_DIPSETTING(    0x0c, DEF_STR( 4C_1C ) )
422 	PORT_DIPSETTING(    0x08, DEF_STR( 3C_1C ) )
423 	PORT_DIPSETTING(    0x04, DEF_STR( 2C_1C ) )
424 	PORT_DIPSETTING(    0x00, DEF_STR( 1C_1C ) )
425 	PORT_DIPNAME( 0x30, 0x10, DEF_STR( Lives ) )
426 	PORT_DIPSETTING(    0x00, "2" )
427 	PORT_DIPSETTING(    0x10, "3" )
428 	PORT_DIPSETTING(    0x20, "4" )
429 	PORT_DIPSETTING(    0x30, "5" )
430 	PORT_DIPNAME( 0x40, 0x00, DEF_STR( Bonus_Life ) )
431 	PORT_DIPSETTING(    0x00, "30000" )
432 	PORT_DIPSETTING(    0x40, "50000" )
433 	PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) )	/* most likely "Difficulty" */
434 	PORT_DIPSETTING(    0x00, DEF_STR( Off ) )		/* it somehow effects the */
435 	PORT_DIPSETTING(    0x80, DEF_STR( On ) )		/* monsters */
436 INPUT_PORTS_END
437 
438 INPUT_PORTS_START( imago )
439 	PORT_START
440 	PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN )
441 	PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN1 )
442 	PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN )
443 	PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_START1 )
444 	PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_START2 )
445 	PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN )
446 	PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON1 )
447 	PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN )
448 
449 	PORT_START
450 	PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT | IPF_8WAY )
451 	PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT | IPF_8WAY )
452 	PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN )
453 	PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN )
454 	PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP | IPF_8WAY )
455 	PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN | IPF_8WAY )
456 	PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN )
457 	PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN )
458 
459 	PORT_START
460 	PORT_DIPNAME( 0x03, 0x01, DEF_STR( Lives ) )
461 	PORT_DIPSETTING(    0x00, "2" )
462 	PORT_DIPSETTING(    0x01, "3" )
463 	PORT_DIPSETTING(    0x02, "4" )
464 	PORT_DIPSETTING(    0x03, "5" )
465 	PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) )
466 	PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
467 	PORT_DIPSETTING(    0x00, DEF_STR( On ) )
468 	PORT_DIPNAME( 0x38, 0x00, DEF_STR( Coinage ) )
469 	PORT_DIPSETTING(    0x38, DEF_STR( 5C_1C ) )
470 	PORT_DIPSETTING(    0x18, DEF_STR( 4C_1C ) )
471 	PORT_DIPSETTING(    0x28, DEF_STR( 3C_1C ) )
472 	PORT_DIPSETTING(    0x08, DEF_STR( 2C_1C ) )
473 	PORT_DIPSETTING(    0x00, DEF_STR( 1C_1C ) )
474 	PORT_DIPSETTING(    0x20, DEF_STR( 1C_2C ) )
475 	PORT_DIPSETTING(    0x10, DEF_STR( 1C_3C ) )
476 	PORT_DIPSETTING(    0x30, DEF_STR( 1C_4C ) )
477 	PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) )
478 	PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
479 	PORT_DIPSETTING(    0x00, DEF_STR( On ) )
480 	PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) )
481 	PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
482 	PORT_DIPSETTING(    0x00, DEF_STR( On ) )
483 INPUT_PORTS_END
484 
485 static struct GfxLayout charlayout =
486 {
487 	8,8,
488 	RGN_FRAC(1,3),
489 	3,
490 	{ RGN_FRAC(2,3), RGN_FRAC(1,3), RGN_FRAC(0,3) },
491 	{ 0, 1, 2, 3, 4, 5, 6, 7 },
492 	{ 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 },
493 	8*8
494 };
495 
496 static struct GfxLayout spritelayout =
497 {
498 	16,16,
499 	RGN_FRAC(1,3),
500 	3,
501 	{ RGN_FRAC(2,3), RGN_FRAC(1,3), RGN_FRAC(0,3) },
502 	{ 0, 1, 2, 3, 4, 5, 6, 7,
503 	  8*8+0, 8*8+1, 8*8+2, 8*8+3, 8*8+4, 8*8+5, 8*8+6, 8*8+7 },
504 	{ 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8,
505 	  16*8, 17*8, 18*8, 19*8, 20*8, 21*8, 22*8, 23*8 },
506 	32*8
507 };
508 
509 static struct GfxDecodeInfo fastfred_gfxdecodeinfo[] =
510 {
511 	{ REGION_GFX1, 0, &charlayout,   0, 32 },
512 	{ REGION_GFX2, 0, &spritelayout, 0, 32 },
513 	{ -1 } /* end of array */
514 };
515 
516 static struct GfxDecodeInfo jumpcoas_gfxdecodeinfo[] =
517 {
518 	{ REGION_GFX1, 0, &charlayout,   0, 32 },
519 	{ REGION_GFX1, 0, &spritelayout, 0, 32 },
520 	{ -1 } /* end of array */
521 };
522 
523 static struct GfxDecodeInfo imago_gfxdecodeinfo[] =
524 {
525 	{ REGION_GFX1, 0, &charlayout,	 0, 32 },
526 	{ REGION_GFX2, 0, &spritelayout, 0, 32 },
527 	{ REGION_GFX3, 0, &charlayout,	 0, 32 },
528 	{ -1 } /* end of array */
529 };
530 
531 #define CLOCK 18432000  /* The crystal is 18.432MHz */
532 
533 static struct AY8910interface fastfred_ay8910_interface =
534 {
535 	2,             /* 2 chips */
536 	CLOCK/12,       /* ? */
537 	{ 25, 25 },
538 	{ 0 },
539 	{ 0 },
540 	{ 0 },
541 	{ 0 }
542 };
543 
544 static struct AY8910interface jumpcoas_ay8910_interface =
545 {
546 	1,             /* 1 chip */
547 	CLOCK/12,       /* ? */
548 	{ 25 },
549 	{ 0 },
550 	{ 0 },
551 	{ 0 },
552 	{ 0 }
553 };
554 
555 
556 static MACHINE_DRIVER_START( fastfred )
557 
558 	/* basic machine hardware */
559 	MDRV_CPU_ADD_TAG("main", Z80, CLOCK/6)     /* 3.072 MHz */
560 	MDRV_CPU_MEMORY(fastfred_readmem,fastfred_writemem)
561 	MDRV_CPU_VBLANK_INT(nmi_line_pulse,1)
562 
563 	MDRV_CPU_ADD_TAG("audio", Z80, CLOCK/12)
564 	MDRV_CPU_FLAGS(CPU_AUDIO_CPU)    /* 1.536 MHz */
565 	MDRV_CPU_MEMORY(sound_readmem,sound_writemem)
566 	MDRV_CPU_VBLANK_INT(nmi_line_pulse,4)
567 
568 	MDRV_FRAMES_PER_SECOND(60)
569 	MDRV_VBLANK_DURATION(0)//CLOCK/16/60,
570 
571 	/* video hardware */
572 	MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER)
573 	MDRV_SCREEN_SIZE(32*8, 32*8)
574 	MDRV_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1)
575 	MDRV_GFXDECODE(fastfred_gfxdecodeinfo)
576 	MDRV_PALETTE_LENGTH(256)
577 	MDRV_COLORTABLE_LENGTH(32*8)
578 
579 	MDRV_PALETTE_INIT(fastfred)
580 	MDRV_VIDEO_START(fastfred)
581 	MDRV_VIDEO_UPDATE(fastfred)
582 
583 	/* sound hardware */
584 	MDRV_SOUND_ADD_TAG("ay8910", AY8910, fastfred_ay8910_interface)
585 MACHINE_DRIVER_END
586 
587 static MACHINE_DRIVER_START( jumpcoas )
588 
589 	/* basic machine hardware */
590 	MDRV_IMPORT_FROM(fastfred)
591 	MDRV_CPU_MODIFY("main")
592 	MDRV_CPU_MEMORY(jumpcoas_readmem,jumpcoas_writemem)
593 
594 	MDRV_CPU_REMOVE("audio")
595 
596 	/* video hardware */
597 	MDRV_GFXDECODE(jumpcoas_gfxdecodeinfo)
598 
599 	/* sound hardware */
600 	MDRV_SOUND_REPLACE("ay8910", AY8910, jumpcoas_ay8910_interface)
601 MACHINE_DRIVER_END
602 
603 static MACHINE_DRIVER_START( imago )
604 
605 	/* basic machine hardware */
606 	MDRV_IMPORT_FROM(fastfred)
607 	MDRV_CPU_MODIFY("main")
608 	MDRV_CPU_MEMORY(imago_readmem,imago_writemem)
609 
610 	/* video hardware */
611 	MDRV_GFXDECODE(imago_gfxdecodeinfo)
612 
613 	MDRV_VIDEO_START(imago)
614 	MDRV_VIDEO_UPDATE(imago)
615 MACHINE_DRIVER_END
616 
617 #undef CLOCK
618 
619 /***************************************************************************
620 
621   Game driver(s)
622 
623 ***************************************************************************/
624 
625 ROM_START( fastfred )
626 	ROM_REGION( 0x10000, REGION_CPU1, 0 )     /* 64k for main CPU */
627 	ROM_LOAD( "ffr.01",       0x0000, 0x1000, CRC(15032c13) SHA1(18ae84e87ac430e3f1cbc388ad16fb1d20aaba2f) )
628 	ROM_LOAD( "ffr.02",       0x1000, 0x1000, CRC(f9642744) SHA1(b086ad284593b7f2ad314ad5002c9a2b293b8103) )
629 	ROM_LOAD( "ffr.03",       0x2000, 0x1000, CRC(f0919727) SHA1(f16bc7de715acf0396818ce48ebe45b6a301b2cb) )
630 	ROM_LOAD( "ffr.04",       0x3000, 0x1000, CRC(c778751e) SHA1(7d9df82d2123e4e8565d8d50eed02daf455f96e8) )
631 	ROM_LOAD( "ffr.05",       0x4000, 0x1000, CRC(cd6e160a) SHA1(fd943aae88e350db192711ad0b75c0a9b21ef9c8) )
632 	ROM_LOAD( "ffr.06",       0x5000, 0x1000, CRC(67f7f9b3) SHA1(c862c04d97ffd6714c0da197a262e0a540175a65) )
633 	ROM_LOAD( "ffr.07",       0x6000, 0x1000, CRC(2935c76a) SHA1(acc2eec3c242dc904c5175e4b5b5fb025b956c17) )
634 	ROM_LOAD( "ffr.08",       0x7000, 0x1000, CRC(0fb79e7b) SHA1(82cc315708064bc498268abb8dbca2e36c3a0dcd) )
635 
636 	ROM_REGION( 0x10000, REGION_CPU2, 0 )     /* 64k for audio CPU */
637 	ROM_LOAD( "ffr.09",       0x0000, 0x1000, CRC(a1ec8d7e) SHA1(5b4884381d0df79d3ed4246a9cf78f9b3bb14f79) )
638 	ROM_LOAD( "ffr.10",       0x1000, 0x1000, CRC(460ca837) SHA1(6d94f04e94ec15cbc5602bb303e9610ad20275fb) )
639 
640 	ROM_REGION( 0x6000, REGION_GFX1, ROMREGION_DISPOSE )
641 	ROM_LOAD( "ffr.14",       0x0000, 0x1000, CRC(e8a00e81) SHA1(d93298f677baa4842f6e00b86fab099af1818467) )
642 	ROM_LOAD( "ffr.17",       0x1000, 0x1000, CRC(701e0f01) SHA1(f1f907386cf1f6676019cee56e6ee85d3117b8c3) )
643 	ROM_LOAD( "ffr.15",       0x2000, 0x1000, CRC(b49b053f) SHA1(b9f579d51fb9cc72158eef3d2d442c04099c8af1) )
644 	ROM_LOAD( "ffr.18",       0x3000, 0x1000, CRC(4b208c8b) SHA1(2cc7a1f93cc94fe54f16aa9e581bec91a7ad34ba) )
645 	ROM_LOAD( "ffr.16",       0x4000, 0x1000, CRC(8c686bc2) SHA1(73f63305209d58883f7b3cd8d766f8ad1bba6eb1) )
646 	ROM_LOAD( "ffr.19",       0x5000, 0x1000, CRC(75b613f6) SHA1(73d6d505f3ddfe2b897066d0f8e720d2718bf5d4) )
647 
648 	ROM_REGION( 0x3000, REGION_GFX2, ROMREGION_DISPOSE )
649 	ROM_LOAD( "ffr.11",       0x0000, 0x1000, CRC(0e1316d4) SHA1(fa88311cdc6b6db9f892d7a2a6927acf03c8fc8d) )
650 	ROM_LOAD( "ffr.12",       0x1000, 0x1000, CRC(94c06686) SHA1(a40fa5b539da604750605ba6c8a6d1bac62f6ede) )
651 	ROM_LOAD( "ffr.13",       0x2000, 0x1000, CRC(3fcfaa8e) SHA1(2b1cf871ebf907fe41dcf1773b29066e4c20e2f3) )
652 
653 	ROM_REGION( 0x0300, REGION_PROMS, 0 )
654 	ROM_LOAD( "red.9h",       0x0000, 0x0100, CRC(b801e294) SHA1(79926dc69c9088c2a5e5f15e260c644a90071ba0) )
655 	ROM_LOAD( "green.8h",     0x0100, 0x0100, CRC(7da063d0) SHA1(8e40174c4f6ba4a15edd89a6fe2b98a5e50531ff) )
656 	ROM_LOAD( "blue.7h",      0x0200, 0x0100, CRC(85c05c18) SHA1(a609a45c593fc6c491624076f7d65da55b5e603f) )
657 ROM_END
658 
659 ROM_START( flyboy )
660 	ROM_REGION( 0x10000, REGION_CPU1, 0 )     /* 64k for main CPU */
661 	ROM_LOAD( "flyboy01.cpu", 0x0000, 0x1000, CRC(b05aa900) SHA1(1ad394a438ddf96974b0b841d916766e45e8f3ba) )
662 	ROM_LOAD( "flyboy02.cpu", 0x1000, 0x1000, CRC(474867f5) SHA1(b352318eee71218155046bba9f032364e1213c02) )
663 	ROM_LOAD( "rom3.cpu",     0x2000, 0x1000, CRC(d2f8f085) SHA1(335d53b50c5ad8180bc7d77b808a638604eb7f39) )
664 	ROM_LOAD( "rom4.cpu",     0x3000, 0x1000, CRC(19e5e15c) SHA1(86c13a518cfb1666d69af73976c2fba89edf0393) )
665 	ROM_LOAD( "flyboy05.cpu", 0x4000, 0x1000, CRC(207551f7) SHA1(363f73f4a14e2018599f5e6e1ae75042d0b757d7) )
666 	ROM_LOAD( "rom6.cpu",     0x5000, 0x1000, CRC(f5464c72) SHA1(f4be4055964f523108bc98e3eb855ca1d8323e6f) )
667 	ROM_LOAD( "rom7.cpu",     0x6000, 0x1000, CRC(50a1baff) SHA1(469913e7652c6a334fb071e65cc00058b411527f) )
668 	ROM_LOAD( "rom8.cpu",     0x7000, 0x1000, CRC(fe2ae95d) SHA1(e44c36b7726892b4a360a7dc02820a3dbb21b398) )
669 
670 	ROM_REGION( 0x10000, REGION_CPU2, 0 )     /* 64k for audio CPU */
671 	ROM_LOAD( "rom9.cpu",     0x0000, 0x1000, CRC(5d05d1a0) SHA1(cbf6144bf0b0686e4af41d8aeffd54c25f60eadc) )
672 	ROM_LOAD( "rom10.cpu",    0x1000, 0x1000, CRC(7a28005b) SHA1(71c5779aec3c40614db3ba2c6f7820e6592bf101) )
673 
674 	ROM_REGION( 0x6000, REGION_GFX1, ROMREGION_DISPOSE )
675 	ROM_LOAD( "rom14.rom",    0x0000, 0x1000, CRC(aeb07260) SHA1(cf8fefa7b5b2413060ffe6a231033d443b4a4c6a) )
676 	ROM_LOAD( "rom17.rom",    0x1000, 0x1000, CRC(a834325b) SHA1(372054d525edba3e720162f9e2f31d6a1432c795) )
677 	ROM_LOAD( "rom15.rom",    0x2000, 0x1000, CRC(c10c7ce2) SHA1(bc4ffca80554dd6692b32fd82f93cb74f7f18e96) )
678 	ROM_LOAD( "rom18.rom",    0x3000, 0x1000, CRC(2f196c80) SHA1(9e1cb567aa3621e92e88e4ab4953c56e2baafb0b) )
679 	ROM_LOAD( "rom16.rom",    0x4000, 0x1000, CRC(719246b1) SHA1(ca5879289e3c7f04649407b448747fcff6a5ef47) )
680 	ROM_LOAD( "rom19.rom",    0x5000, 0x1000, CRC(00c1c5d2) SHA1(196e67ca21568b5aafc4befd9f9b6de0a677551b) )
681 
682 	ROM_REGION( 0x3000, REGION_GFX2, ROMREGION_DISPOSE )
683 	ROM_LOAD( "rom11.rom",    0x0000, 0x1000, CRC(ee7ec342) SHA1(936ce03dd5ee05eea78d0e3308ce7d369397c361) )
684 	ROM_LOAD( "rom12.rom",    0x1000, 0x1000, CRC(84d03124) SHA1(92c7efc4bfe39aa47909071f9a90ec7e5c0fa1a1) )
685 	ROM_LOAD( "rom13.rom",    0x2000, 0x1000, CRC(fcb33ff4) SHA1(a76addec96b42a06df97eca37f3039f8a4727dfb) )
686 
687 	ROM_REGION( 0x0300, REGION_PROMS, 0 )
688 	ROM_LOAD( "red.9h",       0x0000, 0x0100, CRC(b801e294) SHA1(79926dc69c9088c2a5e5f15e260c644a90071ba0) )
689 	ROM_LOAD( "green.8h",     0x0100, 0x0100, CRC(7da063d0) SHA1(8e40174c4f6ba4a15edd89a6fe2b98a5e50531ff) )
690 	ROM_LOAD( "blue.7h",      0x0200, 0x0100, CRC(85c05c18) SHA1(a609a45c593fc6c491624076f7d65da55b5e603f) )
691 ROM_END
692 
693 ROM_START( flyboyb )
694 	ROM_REGION( 0x10000, REGION_CPU1, 0 )     /* 64k for main CPU */
695 	ROM_LOAD( "rom1.cpu",     0x0000, 0x1000, CRC(e9e1f527) SHA1(999b8054751ddaa1b5bad48eaa12fc11a915c74c) )
696 	ROM_LOAD( "rom2.cpu",     0x1000, 0x1000, CRC(07fbe78c) SHA1(875e29e6ed7525678b52276248f0cf4c885bd521) )
697 	ROM_LOAD( "rom3.cpu",     0x2000, 0x1000, CRC(d2f8f085) SHA1(335d53b50c5ad8180bc7d77b808a638604eb7f39) )
698 	ROM_LOAD( "rom4.cpu",     0x3000, 0x1000, CRC(19e5e15c) SHA1(86c13a518cfb1666d69af73976c2fba89edf0393) )
699 	ROM_LOAD( "rom5.cpu",     0x4000, 0x1000, CRC(d56872ea) SHA1(9908c15496409308c0b862e96a6249198497e1da) )
700 	ROM_LOAD( "rom6.cpu",     0x5000, 0x1000, CRC(f5464c72) SHA1(f4be4055964f523108bc98e3eb855ca1d8323e6f) )
701 	ROM_LOAD( "rom7.cpu",     0x6000, 0x1000, CRC(50a1baff) SHA1(469913e7652c6a334fb071e65cc00058b411527f) )
702 	ROM_LOAD( "rom8.cpu",     0x7000, 0x1000, CRC(fe2ae95d) SHA1(e44c36b7726892b4a360a7dc02820a3dbb21b398) )
703 
704 	ROM_REGION( 0x10000, REGION_CPU2, 0 )     /* 64k for audio CPU */
705 	ROM_LOAD( "rom9.cpu",     0x0000, 0x1000, CRC(5d05d1a0) SHA1(cbf6144bf0b0686e4af41d8aeffd54c25f60eadc) )
706 	ROM_LOAD( "rom10.cpu",    0x1000, 0x1000, CRC(7a28005b) SHA1(71c5779aec3c40614db3ba2c6f7820e6592bf101) )
707 
708 	ROM_REGION( 0x6000, REGION_GFX1, ROMREGION_DISPOSE )
709 	ROM_LOAD( "rom14.rom",    0x0000, 0x1000, CRC(aeb07260) SHA1(cf8fefa7b5b2413060ffe6a231033d443b4a4c6a) )
710 	ROM_LOAD( "rom17.rom",    0x1000, 0x1000, CRC(a834325b) SHA1(372054d525edba3e720162f9e2f31d6a1432c795) )
711 	ROM_LOAD( "rom15.rom",    0x2000, 0x1000, CRC(c10c7ce2) SHA1(bc4ffca80554dd6692b32fd82f93cb74f7f18e96) )
712 	ROM_LOAD( "rom18.rom",    0x3000, 0x1000, CRC(2f196c80) SHA1(9e1cb567aa3621e92e88e4ab4953c56e2baafb0b) )
713 	ROM_LOAD( "rom16.rom",    0x4000, 0x1000, CRC(719246b1) SHA1(ca5879289e3c7f04649407b448747fcff6a5ef47) )
714 	ROM_LOAD( "rom19.rom",    0x5000, 0x1000, CRC(00c1c5d2) SHA1(196e67ca21568b5aafc4befd9f9b6de0a677551b) )
715 
716 	ROM_REGION( 0x3000, REGION_GFX2, ROMREGION_DISPOSE )
717 	ROM_LOAD( "rom11.rom",    0x0000, 0x1000, CRC(ee7ec342) SHA1(936ce03dd5ee05eea78d0e3308ce7d369397c361) )
718 	ROM_LOAD( "rom12.rom",    0x1000, 0x1000, CRC(84d03124) SHA1(92c7efc4bfe39aa47909071f9a90ec7e5c0fa1a1) )
719 	ROM_LOAD( "rom13.rom",    0x2000, 0x1000, CRC(fcb33ff4) SHA1(a76addec96b42a06df97eca37f3039f8a4727dfb) )
720 
721 	ROM_REGION( 0x0300, REGION_PROMS, 0 )
722 	ROM_LOAD( "red.9h",       0x0000, 0x0100, CRC(b801e294) SHA1(79926dc69c9088c2a5e5f15e260c644a90071ba0) )
723 	ROM_LOAD( "green.8h",     0x0100, 0x0100, CRC(7da063d0) SHA1(8e40174c4f6ba4a15edd89a6fe2b98a5e50531ff) )
724 	ROM_LOAD( "blue.7h",      0x0200, 0x0100, CRC(85c05c18) SHA1(a609a45c593fc6c491624076f7d65da55b5e603f) )
725 ROM_END
726 
727 ROM_START( jumpcoas )
728 	ROM_REGION( 0x10000, REGION_CPU1, 0 )     /* 64k for code */
729 	ROM_LOAD( "jumpcoas.001", 0x0000, 0x2000, CRC(0778c953) SHA1(7def6656532332e56d76700431e4c3199e407e50) )
730 	ROM_LOAD( "jumpcoas.002", 0x2000, 0x2000, CRC(57f59ce1) SHA1(1508afb34f77c829ed62b16be10b0ebf8e91a62c) )
731 	ROM_LOAD( "jumpcoas.003", 0x4000, 0x2000, CRC(d9fc93be) SHA1(e13476991720a1e900f4ab65175df7ee40c6960d) )
732 	ROM_LOAD( "jumpcoas.004", 0x6000, 0x2000, CRC(dc108fc1) SHA1(a238b1b924877167aa8f17e9c9bd450e2c2cc9f6) )
733 
734 	ROM_REGION( 0x3000, REGION_GFX1, ROMREGION_DISPOSE )
735 	ROM_LOAD( "jumpcoas.005", 0x0000, 0x1000, CRC(2dce6b07) SHA1(e7f9e5d68c53ee2433c22d00e69d4b994b44d349) )
736 	ROM_LOAD( "jumpcoas.006", 0x1000, 0x1000, CRC(0d24aa1b) SHA1(300eba18c69eb693b033562446e7fee764161e07) )
737 	ROM_LOAD( "jumpcoas.007", 0x2000, 0x1000, CRC(14c21e67) SHA1(1a01dcd917e9c06db5d86cd35146e9ccdad65975) )
738 
739 	ROM_REGION( 0x0300, REGION_PROMS, 0 )
740 	ROM_LOAD( "jumpcoas.red", 0x0000, 0x0100, CRC(13714880) SHA1(ede901434f3a35138574e65985e5791e6686ef0d) )
741 	ROM_LOAD( "jumpcoas.gre", 0x0100, 0x0100, CRC(05354848) SHA1(c44f6b4b9c9d58d9ace617dcd36ca197f6d7dd8c) )
742 	ROM_LOAD( "jumpcoas.blu", 0x0200, 0x0100, CRC(f4662db7) SHA1(638ac15b15ae908581561ff77f446d81ec64c086) )
743 ROM_END
744 
745 ROM_START( boggy84 )
746 	ROM_REGION( 0x10000, REGION_CPU1, 0 )     /* 64k for code */
747 	ROM_LOAD( "cpurom1.bin", 0x0000, 0x2000, CRC(665266c0) SHA1(7785a7d710948718236f9be4b3e2a3fdc00662a5) )
748 	ROM_LOAD( "cpurom2.bin", 0x2000, 0x2000, CRC(6c096798) SHA1(74ea860ef10cb566bcb07d67e6c79f542a66de91) )
749 	ROM_LOAD( "cpurom3.bin", 0x4000, 0x2000, CRC(9da59104) SHA1(167af18d50d99e66111e4ebd52d0dd86d5d6d391) )
750 	ROM_LOAD( "cpurom4.bin", 0x6000, 0x2000, CRC(73ef6807) SHA1(3144285019ab5cc7f2e1ba0a31956964ea1c706c) )
751 
752 	ROM_REGION( 0x3000, REGION_GFX1, ROMREGION_DISPOSE )
753 	ROM_LOAD( "gfx1.bin", 0x0000, 0x1000, CRC(f4238c68) SHA1(a14cedb126e49e40bab6f46870af64c04ccb01f4) )
754 	ROM_LOAD( "gfx2.bin", 0x1000, 0x1000, CRC(ce285bd2) SHA1(61e58920553f56448e76d859c1b0f316f299363f) )
755 	ROM_LOAD( "gfx3.bin", 0x2000, 0x1000, CRC(02f5f4fa) SHA1(d28dc23cd3a39bb483d05b59869ed2300e5e77a7) )
756 
757 	ROM_REGION( 0x0300, REGION_PROMS, 0 )
758 	ROM_LOAD( "r12e", 0x0000, 0x0100, CRC(f3862912) SHA1(128ba48202299ef5852f08fd0f910d8e9f68f22c) )
759 	ROM_LOAD( "g12e", 0x0100, 0x0100, CRC(80b87220) SHA1(7bd81060b986d5cd4a27dc8a9394423959deaa05) )
760 	ROM_LOAD( "b12e", 0x0200, 0x0100, CRC(52b7f445) SHA1(6395ac705a35e602a355cbf700025ff917e89b37) )
761 ROM_END
762 
763 ROM_START( redrobin )
764 	ROM_REGION( 0x10000, REGION_CPU1, 0 )     /* 64k for main CPU */
765 	ROM_LOAD( "redro01f.16d", 0x0000, 0x1000, CRC(0788ce10) SHA1(32084714fe005d0489ab1a7e6684a49bd103ce5e) )
766 	ROM_LOAD( "redrob02.17d", 0x1000, 0x1000, CRC(bf9b95b4) SHA1(55de12c36e193525159ecca6cff883b69709f5ba) )
767 	ROM_LOAD( "redrob03.14b", 0x2000, 0x1000, CRC(9386e40b) SHA1(c55fe071a68fd8ca19a7919cef790e588d056b74) )
768 	ROM_LOAD( "redrob04.16b", 0x3000, 0x1000, CRC(5cafffc4) SHA1(910af87d2c002cd825af759c0d7bc91efe5cc08d) )
769 	ROM_LOAD( "redrob05.17b", 0x4000, 0x1000, CRC(a224d41e) SHA1(d5fc58f5852779adb5468faf312ee2776531c05d) )
770 	ROM_LOAD( "redrob06.14a", 0x5000, 0x1000, CRC(822e0bd7) SHA1(e273a76fd0d0dc8bb2e02459ec499bd8dfd3e95d) )
771 	ROM_LOAD( "redrob07.15a", 0x6000, 0x1000, CRC(0deacf17) SHA1(86c00a451f77bc64bd6c7582130de391ddd222de) )
772 	ROM_LOAD( "redrob08.17a", 0x7000, 0x1000, CRC(095cf908) SHA1(70005f7a1f05e666392f8e9139d125fa97fd9814) )
773 	ROM_LOAD( "redrob20.15e", 0x8000, 0x4000, CRC(5cce22b7) SHA1(8cc763983766fbb9b995d5c157f66f170cd1d01e) )
774 
775 	ROM_REGION( 0x10000, REGION_CPU2, 0 )     /* 64k for audio CPU */
776 	ROM_LOAD( "redrob09.1f",  0x0000, 0x1000, CRC(21af2d03) SHA1(6a73b85169bb8ae6f3dca5581a39802ca4dd6f58) )
777 	ROM_LOAD( "redro10f.1e",  0x1000, 0x1000, CRC(bf0e772f) SHA1(e07f7a8876437822bb0c300905455c88125282d7) )
778 
779 	ROM_REGION( 0x6000, REGION_GFX1, ROMREGION_DISPOSE )
780 	ROM_LOAD( "redrob14.17l", 0x0000, 0x1000, CRC(f6c571e0) SHA1(7d0d6fbea8393603cd6a93f0f059222a15799a3c) )
781 	ROM_LOAD( "redrob17.17j", 0x1000, 0x1000, CRC(86dcdf21) SHA1(d41a4dc118a9054dfa8d06e8e4bc401e347e6891) )
782 	ROM_LOAD( "redrob15.15k", 0x2000, 0x1000, CRC(05f7df48) SHA1(b17d1e25ea2dce61f7a6c5b65ba13fc1137ae958) )
783 	ROM_LOAD( "redrob18.16j", 0x3000, 0x1000, CRC(7aeb2bb9) SHA1(c1dd19a0821fcdf33e54898d032b36ae1f2f68f2) )
784 	ROM_LOAD( "redrob16.14l", 0x4000, 0x1000, CRC(21349d09) SHA1(46d828ab037f823947ce3d8572f6763ea72bc00c) )
785 	ROM_LOAD( "redrob19.14j", 0x5000, 0x1000, CRC(7184d999) SHA1(5333671643f749dc67d3d6e537757950483f015e) )
786 
787 	ROM_REGION( 0x3000, REGION_GFX2, ROMREGION_DISPOSE )
788 	ROM_LOAD( "redrob11.17m", 0x0000, 0x1000, CRC(559f7894) SHA1(487b7fa207af34ff4dfa977efc546416fb8d1509) )
789 	ROM_LOAD( "redrob12.15m", 0x1000, 0x1000, CRC(a763b11d) SHA1(041cc9f582567ee8c5519b3257c03bdab1683388) )
790 	ROM_LOAD( "redrob13.14m", 0x2000, 0x1000, CRC(d667f45b) SHA1(1e38ac833b572f5af14b5bb98c98135311ca5ceb) )
791 
792 	ROM_REGION( 0x0300, REGION_PROMS, 0 )
793 	ROM_LOAD( "red.9h",       0x0000, 0x0100, CRC(b801e294) SHA1(79926dc69c9088c2a5e5f15e260c644a90071ba0) )
794 	ROM_LOAD( "green.8h",     0x0100, 0x0100, CRC(7da063d0) SHA1(8e40174c4f6ba4a15edd89a6fe2b98a5e50531ff) )
795 	ROM_LOAD( "blue.7h",      0x0200, 0x0100, CRC(85c05c18) SHA1(a609a45c593fc6c491624076f7d65da55b5e603f) )
796 ROM_END
797 
798 ROM_START( imago )
799 	ROM_REGION( 0x10000, REGION_CPU1, 0 )     /* 64k for main CPU */
800 	ROM_LOAD( "11",    0x0000, 0x1000, CRC(3cce69b4) SHA1(e7d52e388e09e86abb597493f5807ee088cf7a40) )
801 	ROM_CONTINUE(	   0x2000, 0x1000 )
802 	ROM_LOAD( "12",    0x3000, 0x2000, CRC(8dff98c0) SHA1(e7311d9ca4544f1263e894e6d93ca52c87fc83bf) )
803 	ROM_LOAD( "13",    0x5000, 0x2000, CRC(f0f14b4d) SHA1(92b82080575a9c95df926c404c19875ac66c2b00) )
804 
805 	ROM_REGION( 0x10000, REGION_CPU2, 0 )     /* 64k for audio CPU */
806 	ROM_LOAD( "8",	   0x0000, 0x1000, CRC(4f77c2c9) SHA1(1e046786fbad7fb8c7c462b7bd5d80152c6b8779) )
807 
808 	ROM_REGION( 0x3000, REGION_GFX1, ROMREGION_DISPOSE )
809 	ROM_LOAD( "2",     0x0000, 0x1000, CRC(71354480) SHA1(f5f5e1cc336cae1778b7f6c744eb1bdc4226f138) )
810 	ROM_LOAD( "3",     0x1000, 0x1000, CRC(7aba3d98) SHA1(5d058f39bf1339d523fe015b67083d44ff6a81d4) )
811 	ROM_FILL(	       0x2000, 0x1000, 0 )
812 
813 	ROM_REGION( 0x6000, REGION_GFX2, ROMREGION_DISPOSE )
814 	ROM_LOAD( "4",     0x0000, 0x1000, CRC(ed987b3e) SHA1(2f88a0463b4323adb27467fb3d022144a4943793) )
815 	ROM_LOAD( "5",     0x1000, 0x1000, CRC(77ee68ce) SHA1(a47af1bec81977d0f47463bd88e9f526fd2d6611) )
816 	ROM_LOAD( "7",     0x2000, 0x1000, CRC(48b35190) SHA1(3a000264aad03f55fe67eed7c868acf87e804c0f) )
817 	ROM_LOAD( "6",     0x3000, 0x1000, CRC(136990fc) SHA1(f3ecba92db25fbeb7df83c26667b7447c2d03b58) )
818 	ROM_LOAD( "9",     0x4000, 0x1000, CRC(9efb806d) SHA1(504cc27cf071873714ec61835d9da676884fe1c8) )
819 	ROM_LOAD( "10",    0x5000, 0x1000, CRC(801a18d3) SHA1(f798978a47124f50be25ab4e5c6a4974d9003634) )
820 
821 	ROM_REGION( 0x3000, REGION_GFX3, ROMREGION_DISPOSE )
822 	ROM_LOAD( "14",    0x0000, 0x1000, CRC(eded37f6) SHA1(c2ff5d4c1b001740ec4453467f879035db196a9b) )
823 	ROM_FILL(		   0x1000, 0x2000, 0 )
824 
825 	ROM_REGION( 0x0300, REGION_PROMS, 0 )
826 	ROM_LOAD( "red",   0x0000, 0x0100, NO_DUMP )
827 	ROM_LOAD( "green", 0x0100, 0x0100, NO_DUMP )
828 	ROM_LOAD( "blue",  0x0200, 0x0100, NO_DUMP )
829 
830 	ROM_REGION( 0x2000, REGION_USER1, 0 )
831 	ROM_LOAD( "1",      0x0000, 0x1000, CRC(b0a1fb54) SHA1(fbc746748947a7aa35a428dc862ff4ad53516d38) ) //contains the same 2 bytes
832 	ROM_LOAD( "15",     0x1000, 0x1000, CRC(85fcc195) SHA1(a76f24201c037d1e6f909fb0ea4ad59b1d6ddd57) ) //unknown
833 ROM_END
834 
835 extern int fastfred_hardware_type;
836 
DRIVER_INIT(flyboy)837 static DRIVER_INIT( flyboy )
838 {
839 	fastfred_hardware_type = 1;
840 }
841 
DRIVER_INIT(fastfred)842 static DRIVER_INIT( fastfred )
843 {
844 	install_mem_write_handler(0, 0xc800, 0xcfff, MWA_NOP );
845 	install_mem_read_handler( 0, 0xc800, 0xcfff, fastfred_custom_io_r);
846 	fastfred_hardware_type = 1;
847 }
848 
DRIVER_INIT(jumpcoas)849 static DRIVER_INIT( jumpcoas )
850 {
851 	install_mem_write_handler(0, 0xc800, 0xcfff, MWA_NOP );
852 	install_mem_read_handler(0,  0xc800, 0xcfff, jumpcoas_custom_io_r);
853 	fastfred_hardware_type = 0;
854 }
855 
DRIVER_INIT(boggy84)856 static DRIVER_INIT( boggy84 )
857 {
858 	install_mem_write_handler(0, 0xc800, 0xcfff, MWA_NOP );
859 	install_mem_read_handler(0,  0xc800, 0xcfff, jumpcoas_custom_io_r);
860 	fastfred_hardware_type = 2;
861 }
862 
DRIVER_INIT(imago)863 static DRIVER_INIT( imago )
864 {
865 	fastfred_hardware_type = 3;
866 }
867 
868 GAMEX(1982, flyboy,   0,      fastfred, flyboy,   flyboy,   ROT90, "Kaneko", "Fly-Boy", GAME_NOT_WORKING )	/* protection */
869 GAME( 1982, flyboyb,  flyboy, fastfred, flyboy,   flyboy,   ROT90, "Kaneko", "Fly-Boy (bootleg)" )
870 GAME( 1982, fastfred, flyboy, fastfred, fastfred, fastfred, ROT90, "Atari", "Fast Freddie" )
871 GAME( 1983, jumpcoas, 0,      jumpcoas, jumpcoas, jumpcoas, ROT90, "Kaneko", "Jump Coaster" )
872 GAME( 1983, boggy84,  0,      jumpcoas, boggy84,  boggy84,  ROT90, "bootleg", "Boggy '84" )
873 GAME( 1986, redrobin, 0,      fastfred, redrobin, flyboy,   ROT90, "Elettronolo", "Red Robin" )
874 GAMEX(1983, imago,	  0,	  imago,	imago,	  imago,	ROT90, "Acom", "Imago", GAME_IMPERFECT_GRAPHICS | GAME_WRONG_COLORS )
875