160
160
/* Dips seem inverted with respect to other Deco games */
161
161
PORT_START("DSW")
162
PORT_DIPNAME( 0x00e0, 0x00e0, DEF_STR( Coin_A ) )
162
PORT_DIPNAME( 0x00e0, 0x00e0, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:1,2,3")
163
163
PORT_DIPSETTING( 0x0000, DEF_STR( 3C_1C ) )
164
164
PORT_DIPSETTING( 0x0080, DEF_STR( 2C_1C ) )
165
165
PORT_DIPSETTING( 0x00e0, DEF_STR( 1C_1C ) )
168
168
PORT_DIPSETTING( 0x0020, DEF_STR( 1C_4C ) )
169
169
PORT_DIPSETTING( 0x00c0, DEF_STR( 1C_5C ) )
170
170
PORT_DIPSETTING( 0x0040, DEF_STR( 1C_6C ) )
171
PORT_DIPNAME( 0x001c, 0x001c, DEF_STR( Coin_B ) )
171
PORT_DIPNAME( 0x001c, 0x001c, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:4,5,6")
172
172
PORT_DIPSETTING( 0x0000, DEF_STR( 3C_1C ) )
173
173
PORT_DIPSETTING( 0x0010, DEF_STR( 2C_1C ) )
174
174
PORT_DIPSETTING( 0x001c, DEF_STR( 1C_1C ) )
177
177
PORT_DIPSETTING( 0x0004, DEF_STR( 1C_4C ) )
178
178
PORT_DIPSETTING( 0x0018, DEF_STR( 1C_5C ) )
179
179
PORT_DIPSETTING( 0x0008, DEF_STR( 1C_6C ) )
180
PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Flip_Screen ) )
180
PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:7")
181
181
PORT_DIPSETTING( 0x0002, DEF_STR( Off ) )
182
182
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
183
PORT_SERVICE( 0x0001, IP_ACTIVE_LOW )
183
PORT_SERVICE_DIPLOC( 0x0001, IP_ACTIVE_LOW, "SW1:8" )
185
PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Demo_Sounds ) )
185
PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:8")
186
186
PORT_DIPSETTING( 0x0000, DEF_STR( Off ) )
187
187
PORT_DIPSETTING( 0x0100, DEF_STR( On ) )
188
PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Allow_Continue ) )
188
PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW2:7")
189
189
PORT_DIPSETTING( 0x0000, DEF_STR( No ) )
190
190
PORT_DIPSETTING( 0x0200, DEF_STR( Yes ) )
191
PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Free_Play ) )
191
PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("SW2:6")
192
192
PORT_DIPSETTING( 0x0400, DEF_STR( Off ) )
193
193
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
194
PORT_DIPNAME( 0x0800, 0x0800, "Freeze" )
194
PORT_DIPNAME( 0x0800, 0x0800, "Freeze" ) PORT_DIPLOCATION("SW2:5")
195
195
PORT_DIPSETTING( 0x0800, DEF_STR( Off ) )
196
196
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
197
PORT_DIPNAME( 0x3000, 0x3000, DEF_STR( Difficulty ) )
197
PORT_DIPNAME( 0x3000, 0x3000, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:4,3")
198
198
PORT_DIPSETTING( 0x1000, DEF_STR( Easy ) )
199
199
PORT_DIPSETTING( 0x3000, DEF_STR( Normal ) )
200
200
PORT_DIPSETTING( 0x2000, DEF_STR( Hard ) )
201
201
PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) )
202
PORT_DIPNAME( 0xc000, 0xc000, DEF_STR( Lives ) )
202
PORT_DIPNAME( 0xc000, 0xc000, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:2,1")
203
203
PORT_DIPSETTING( 0x8000, "1" )
204
204
PORT_DIPSETTING( 0xc000, "2" )
205
205
PORT_DIPSETTING( 0x4000, "3" )
219
219
PORT_INCLUDE(funkyjet)
221
221
PORT_MODIFY("DSW")
222
PORT_DIPUNUSED( 0x0100, IP_ACTIVE_LOW ) // See notes
223
PORT_DIPNAME( 0x0200, 0x0000, DEF_STR( Demo_Sounds ) )
222
PORT_DIPUNUSED_DIPLOC( 0x0100, IP_ACTIVE_LOW, "SW2:8" ) // See notes
223
PORT_DIPNAME( 0x0200, 0x0000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:7")
224
224
PORT_DIPSETTING( 0x0200, DEF_STR( Off ) )
225
225
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
226
PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Lives ) )
226
PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:6,5")
227
227
PORT_DIPSETTING( 0x0400, "1" )
228
228
PORT_DIPSETTING( 0x0800, "2" )
229
229
PORT_DIPSETTING( 0x0c00, "3" )
230
230
PORT_DIPSETTING( 0x0000, "4" )
231
PORT_DIPNAME( 0x3000, 0x2000, DEF_STR( Difficulty ) )
231
PORT_DIPNAME( 0x3000, 0x2000, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:4,3")
232
232
PORT_DIPSETTING( 0x3000, DEF_STR( Easy ) )
233
233
PORT_DIPSETTING( 0x2000, DEF_STR( Normal ) )
234
234
PORT_DIPSETTING( 0x1000, DEF_STR( Hard ) )
235
235
PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) )
236
PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Free_Play ) )
236
PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("SW2:2")
237
237
PORT_DIPSETTING( 0x4000, DEF_STR( Off ) )
238
238
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
239
PORT_DIPNAME( 0x8000, 0x8000, "Freeze" )
239
PORT_DIPNAME( 0x8000, 0x8000, "Freeze" ) PORT_DIPLOCATION("SW2:1")
240
240
PORT_DIPSETTING( 0x8000, DEF_STR( Off ) )
241
241
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
309
309
static MACHINE_CONFIG_START( funkyjet, funkyjet_state )
311
311
/* basic machine hardware */
312
MCFG_CPU_ADD("maincpu", M68000, 14000000) /* 28 MHz crystal */
312
MCFG_CPU_ADD("maincpu", M68000, XTAL_28MHz/2) /* 28 MHz crystal */
313
313
MCFG_CPU_PROGRAM_MAP(funkyjet_map)
314
314
MCFG_CPU_VBLANK_INT("screen", irq6_line_hold)
316
MCFG_CPU_ADD("audiocpu", H6280,32220000/4) /* Custom chip 45, Audio section crystal is 32.220 MHz */
316
MCFG_CPU_ADD("audiocpu", H6280, XTAL_32_22MHz/4) /* Custom chip 45, Audio section crystal is 32.220 MHz */
317
317
MCFG_CPU_PROGRAM_MAP(sound_map)
319
319
MCFG_MACHINE_START(funkyjet)
337
337
/* sound hardware */
338
338
MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
340
MCFG_SOUND_ADD("ymsnd", YM2151, 32220000/9)
340
MCFG_SOUND_ADD("ymsnd", YM2151, XTAL_32_22MHz/9)
341
341
MCFG_SOUND_CONFIG(ym2151_config)
342
342
MCFG_SOUND_ROUTE(0, "lspeaker", 0.45)
343
343
MCFG_SOUND_ROUTE(1, "rspeaker", 0.45)
345
MCFG_OKIM6295_ADD("oki", 1000000, OKIM6295_PIN7_HIGH)
345
MCFG_OKIM6295_ADD("oki", XTAL_28MHz/28, OKIM6295_PIN7_HIGH)
346
346
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.50)
347
347
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.50)
348
348
MACHINE_CONFIG_END