~ubuntu-branches/debian/sid/mame/sid

« back to all changes in this revision

Viewing changes to src/mame/drivers/warpwarp.c

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach, Emmanuel Kasper, Jordi Mallach
  • Date: 2012-06-05 20:02:23 UTC
  • mfrom: (0.3.1) (0.1.4)
  • Revision ID: package-import@ubuntu.com-20120605200223-gnlpogjrg6oqe9md
Tags: 0.146-1
[ Emmanuel Kasper ]
* New upstream release
* Drop patch to fix man pages section and patches to link with flac 
  and jpeg system lib: all this has been pushed upstream by Cesare Falco
* Add DM-Upload-Allowed: yes field.

[ Jordi Mallach ]
* Create a "gnu" TARGETOS stanza that defines NO_AFFINITY_NP.
* Stop setting TARGETOS to "unix" in d/rules. It should be autodetected,
  and set to the appropriate value.
* mame_manpage_section.patch: Change mame's manpage section to 6 (games),
  in the TH declaration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
149
149
 
150
150
 
151
151
/* B&W Games I/O */
152
 
static READ8_HANDLER( geebee_in_r )
 
152
READ8_MEMBER(warpwarp_state::geebee_in_r)
153
153
{
154
 
        warpwarp_state *state = space->machine().driver_data<warpwarp_state>();
155
154
        int res;
156
155
        static const char *const portnames[] = { "SW0", "SW1", "DSW2", "PLACEHOLDER" }; // "IN1" & "IN2" are read separately when offset==3
157
156
 
158
157
        offset &= 3;
159
 
        res = input_port_read_safe(space->machine(), portnames[offset], 0);
 
158
        res = ioport(portnames[offset])->read_safe(0);
160
159
        if (offset == 3)
161
160
        {
162
 
                res = input_port_read(space->machine(), (flip_screen_get(space->machine()) & 1) ? "IN2" : "IN1");       // read player 2 input in cocktail mode
163
 
                if (state->m_handle_joystick)
 
161
                res = ioport((flip_screen() & 1) ? "IN2" : "IN1")->read();      // read player 2 input in cocktail mode
 
162
                if (m_handle_joystick)
164
163
                {
165
164
                        /* map digital two-way joystick to two fixed VOLIN values */
166
165
                        if (res & 2) return 0x9f;
171
170
        return res;
172
171
}
173
172
 
174
 
static WRITE8_HANDLER( geebee_out6_w )
 
173
WRITE8_MEMBER(warpwarp_state::geebee_out6_w)
175
174
{
176
 
        warpwarp_state *state = space->machine().driver_data<warpwarp_state>();
177
175
        switch (offset & 3)
178
176
        {
179
177
                case 0:
180
 
                        state->m_ball_h = data;
 
178
                        m_ball_h = data;
181
179
                        break;
182
180
                case 1:
183
 
                        state->m_ball_v = data;
 
181
                        m_ball_v = data;
184
182
                        break;
185
183
                case 2:
186
184
                        /* n.c. */
187
185
                        break;
188
186
                case 3:
189
 
                        geebee_sound_w(space->machine().device("geebee"),0,data);
 
187
                        geebee_sound_w(machine().device("geebee"),0,data);
190
188
                        break;
191
189
        }
192
190
}
193
191
 
194
 
static WRITE8_HANDLER( geebee_out7_w )
 
192
WRITE8_MEMBER(warpwarp_state::geebee_out7_w)
195
193
{
196
 
        warpwarp_state *state = space->machine().driver_data<warpwarp_state>();
197
194
        switch (offset & 7)
198
195
        {
199
196
                case 0:
200
 
                        set_led_status(space->machine(), 0,data & 1);
 
197
                        set_led_status(machine(), 0,data & 1);
201
198
                        break;
202
199
                case 1:
203
 
                        set_led_status(space->machine(), 1,data & 1);
 
200
                        set_led_status(machine(), 1,data & 1);
204
201
                        break;
205
202
                case 2:
206
 
                        set_led_status(space->machine(), 2,data & 1);
 
203
                        set_led_status(machine(), 2,data & 1);
207
204
                        break;
208
205
                case 3:
209
 
                        coin_counter_w(space->machine(), 0,data & 1);
 
206
                        coin_counter_w(machine(), 0,data & 1);
210
207
                        break;
211
208
                case 4:
212
 
                        if (strcmp(space->machine().system().name, "geebeeb"))
213
 
                                coin_lockout_global_w(space->machine(), ~data & 1);
 
209
                        if (strcmp(machine().system().name, "geebeeb"))
 
210
                                coin_lockout_global_w(machine(), ~data & 1);
214
211
                        break;
215
212
                case 5:
216
 
                        if( state->m_geebee_bgw != (data & 1) )
217
 
                                space->machine().tilemap().mark_all_dirty();
218
 
                        state->m_geebee_bgw = data & 1;
 
213
                        if( m_geebee_bgw != (data & 1) )
 
214
                                machine().tilemap().mark_all_dirty();
 
215
                        m_geebee_bgw = data & 1;
219
216
                        break;
220
217
                case 6:
221
 
                        state->m_ball_on = data & 1;
 
218
                        m_ball_on = data & 1;
222
219
                        if (~data & 1)
223
 
                                cputag_set_input_line(space->machine(), "maincpu", 0, CLEAR_LINE);
 
220
                                cputag_set_input_line(machine(), "maincpu", 0, CLEAR_LINE);
224
221
                        break;
225
222
                case 7:
226
 
                        flip_screen_set(space->machine(), data & 1);
 
223
                        flip_screen_set(data & 1);
227
224
                        break;
228
225
        }
229
226
}
232
229
/* Color Games I/O */
233
230
 
234
231
/* Read Switch Inputs */
235
 
static READ8_HANDLER( warpwarp_sw_r )
 
232
READ8_MEMBER(warpwarp_state::warpwarp_sw_r)
236
233
{
237
 
        return (input_port_read(space->machine(), "IN0") >> (offset & 7)) & 1;
 
234
        return (ioport("IN0")->read() >> (offset & 7)) & 1;
238
235
}
239
236
 
240
237
/* Read Dipswitches */
241
238
static READ8_DEVICE_HANDLER( warpwarp_dsw1_r )
242
239
{
243
 
        return (input_port_read(device->machine(), "DSW1") >> (offset & 7)) & 1;
 
240
        return (device->machine().root_device().ioport("DSW1")->read() >> (offset & 7)) & 1;
244
241
}
245
242
 
246
243
/* Read mux Controller Inputs */
249
246
        warpwarp_state *state = device->machine().driver_data<warpwarp_state>();
250
247
        int res;
251
248
 
252
 
        res = input_port_read(device->machine(), (flip_screen_get(device->machine()) & 1) ? "VOLIN2" : "VOLIN1");
 
249
        res = state->ioport((state->flip_screen() & 1) ? "VOLIN2" : "VOLIN1")->read();
253
250
        if (state->m_handle_joystick)
254
251
        {
255
252
                if (res & 1) return 0x0f;
261
258
        return res;
262
259
}
263
260
 
264
 
static WRITE8_HANDLER( warpwarp_out0_w )
 
261
WRITE8_MEMBER(warpwarp_state::warpwarp_out0_w)
265
262
{
266
 
        warpwarp_state *state = space->machine().driver_data<warpwarp_state>();
267
263
        switch (offset & 3)
268
264
        {
269
265
                case 0:
270
 
                        state->m_ball_h = data;
 
266
                        m_ball_h = data;
271
267
                        break;
272
268
                case 1:
273
 
                        state->m_ball_v = data;
 
269
                        m_ball_v = data;
274
270
                        break;
275
271
                case 2:
276
 
                        warpwarp_sound_w(space->machine().device("warpwarp"),0,data);
 
272
                        warpwarp_sound_w(machine().device("warpwarp"),0,data);
277
273
                        break;
278
274
                case 3:
279
275
                        watchdog_reset_w(space,0,data);
281
277
        }
282
278
}
283
279
 
284
 
static WRITE8_HANDLER( warpwarp_out3_w )
 
280
WRITE8_MEMBER(warpwarp_state::warpwarp_out3_w)
285
281
{
286
 
        warpwarp_state *state = space->machine().driver_data<warpwarp_state>();
287
282
        switch (offset & 7)
288
283
        {
289
284
                case 0:
290
 
                        set_led_status(space->machine(), 0,data & 1);
 
285
                        set_led_status(machine(), 0,data & 1);
291
286
                        break;
292
287
                case 1:
293
 
                        set_led_status(space->machine(), 1,data & 1);
 
288
                        set_led_status(machine(), 1,data & 1);
294
289
                        break;
295
290
                case 2:
296
 
                        set_led_status(space->machine(), 2,data & 1);
 
291
                        set_led_status(machine(), 2,data & 1);
297
292
                        break;
298
293
                case 3:
299
294
                        /* n.c. */
300
295
                        break;
301
296
                case 4:
302
 
                        coin_lockout_global_w(space->machine(), ~data & 1);
 
297
                        coin_lockout_global_w(machine(), ~data & 1);
303
298
                        break;
304
299
                case 5:
305
 
                        coin_counter_w(space->machine(), 0,data & 1);
 
300
                        coin_counter_w(machine(), 0,data & 1);
306
301
                        break;
307
302
                case 6:
308
 
                        state->m_ball_on = data & 1;
 
303
                        m_ball_on = data & 1;
309
304
                        if (~data & 1)
310
 
                                cputag_set_input_line(space->machine(), "maincpu", 0, CLEAR_LINE);
 
305
                                cputag_set_input_line(machine(), "maincpu", 0, CLEAR_LINE);
311
306
                        break;
312
307
                case 7:
313
 
                        flip_screen_set(space->machine(), data & 1);
 
308
                        flip_screen_set(data & 1);
314
309
                        break;
315
310
        }
316
311
}
317
312
 
318
313
 
319
314
 
320
 
static ADDRESS_MAP_START( geebee_map, AS_PROGRAM, 8 )
 
315
static ADDRESS_MAP_START( geebee_map, AS_PROGRAM, 8, warpwarp_state )
321
316
        AM_RANGE(0x0000, 0x1fff) AM_ROM
322
 
        AM_RANGE(0x2000, 0x23ff) AM_MIRROR(0x400) AM_RAM_WRITE(geebee_videoram_w) AM_BASE_MEMBER(warpwarp_state, m_geebee_videoram) // mirror used by kaitei due to a bug
 
317
        AM_RANGE(0x2000, 0x23ff) AM_MIRROR(0x400) AM_RAM_WRITE(geebee_videoram_w) AM_SHARE("geebee_videoram") // mirror used by kaitei due to a bug
323
318
        AM_RANGE(0x3000, 0x37ff) AM_ROM AM_REGION("gfx1", 0) // 3000-33ff in geebee
324
319
    AM_RANGE(0x4000, 0x40ff) AM_RAM
325
320
        AM_RANGE(0x5000, 0x53ff) AM_READ(geebee_in_r)
327
322
        AM_RANGE(0x7000, 0x7fff) AM_WRITE(geebee_out7_w)
328
323
ADDRESS_MAP_END
329
324
 
330
 
static ADDRESS_MAP_START( geebee_port_map, AS_IO, 8 )
 
325
static ADDRESS_MAP_START( geebee_port_map, AS_IO, 8, warpwarp_state )
331
326
        AM_RANGE(0x50, 0x53) AM_READ(geebee_in_r)
332
327
        AM_RANGE(0x60, 0x6f) AM_WRITE(geebee_out6_w)
333
328
        AM_RANGE(0x70, 0x7f) AM_WRITE(geebee_out7_w)
334
329
ADDRESS_MAP_END
335
330
 
336
331
 
337
 
static ADDRESS_MAP_START( bombbee_map, AS_PROGRAM, 8 )
 
332
static ADDRESS_MAP_START( bombbee_map, AS_PROGRAM, 8, warpwarp_state )
338
333
        AM_RANGE(0x0000, 0x1fff) AM_ROM
339
334
        AM_RANGE(0x2000, 0x23ff) AM_RAM
340
 
        AM_RANGE(0x4000, 0x47ff) AM_RAM_WRITE(warpwarp_videoram_w) AM_BASE_MEMBER(warpwarp_state, m_videoram)
 
335
        AM_RANGE(0x4000, 0x47ff) AM_RAM_WRITE(warpwarp_videoram_w) AM_SHARE("videoram")
341
336
        AM_RANGE(0x4800, 0x4fff) AM_ROM AM_REGION("gfx1", 0)
342
337
        AM_RANGE(0x6000, 0x600f) AM_READWRITE(warpwarp_sw_r, warpwarp_out0_w)
343
 
        AM_RANGE(0x6010, 0x601f) AM_DEVREADWRITE("warpwarp", warpwarp_vol_r, warpwarp_music1_w)
344
 
        AM_RANGE(0x6020, 0x602f) AM_DEVREADWRITE("warpwarp", warpwarp_dsw1_r, warpwarp_music2_w)
 
338
        AM_RANGE(0x6010, 0x601f) AM_DEVREADWRITE_LEGACY("warpwarp", warpwarp_vol_r, warpwarp_music1_w)
 
339
        AM_RANGE(0x6020, 0x602f) AM_DEVREADWRITE_LEGACY("warpwarp", warpwarp_dsw1_r, warpwarp_music2_w)
345
340
        AM_RANGE(0x6030, 0x603f) AM_WRITE(warpwarp_out3_w)
346
341
ADDRESS_MAP_END
347
342
 
348
 
static ADDRESS_MAP_START( warpwarp_map, AS_PROGRAM, 8 )
 
343
static ADDRESS_MAP_START( warpwarp_map, AS_PROGRAM, 8, warpwarp_state )
349
344
        AM_RANGE(0x0000, 0x3fff) AM_ROM
350
345
        AM_RANGE(0x8000, 0x83ff) AM_RAM
351
 
        AM_RANGE(0x4000, 0x47ff) AM_RAM_WRITE(warpwarp_videoram_w) AM_BASE_MEMBER(warpwarp_state, m_videoram)
 
346
        AM_RANGE(0x4000, 0x47ff) AM_RAM_WRITE(warpwarp_videoram_w) AM_SHARE("videoram")
352
347
        AM_RANGE(0x4800, 0x4fff) AM_ROM AM_REGION("gfx1", 0)
353
348
        AM_RANGE(0xc000, 0xc00f) AM_READWRITE(warpwarp_sw_r, warpwarp_out0_w)
354
 
        AM_RANGE(0xc010, 0xc01f) AM_DEVREADWRITE("warpwarp", warpwarp_vol_r, warpwarp_music1_w)
355
 
        AM_RANGE(0xc020, 0xc02f) AM_DEVREADWRITE("warpwarp", warpwarp_dsw1_r, warpwarp_music2_w)
 
349
        AM_RANGE(0xc010, 0xc01f) AM_DEVREADWRITE_LEGACY("warpwarp", warpwarp_vol_r, warpwarp_music1_w)
 
350
        AM_RANGE(0xc020, 0xc02f) AM_DEVREADWRITE_LEGACY("warpwarp", warpwarp_dsw1_r, warpwarp_music2_w)
356
351
        AM_RANGE(0xc030, 0xc03f) AM_WRITE(warpwarp_out3_w)
357
352
ADDRESS_MAP_END
358
353
 
384
379
        PORT_DIPSETTING(    0x04, DEF_STR( 1C_2C ) )
385
380
        PORT_DIPSETTING(    0x0c, DEF_STR( Free_Play ) )
386
381
        PORT_DIPNAME( 0x30, 0x10, "Replay" )            PORT_DIPLOCATION("DSW2:5,6")    // awards 1 credit
387
 
        PORT_DIPSETTING(    0x10, "40k 80k" )           PORT_CONDITION("DSW2", 0x02, PORTCOND_EQUALS, 0x00)
388
 
        PORT_DIPSETTING(    0x20, "70k 140k" )          PORT_CONDITION("DSW2", 0x02, PORTCOND_EQUALS, 0x00)
389
 
        PORT_DIPSETTING(    0x30, "100k 200k" )         PORT_CONDITION("DSW2", 0x02, PORTCOND_EQUALS, 0x00)
390
 
        PORT_DIPSETTING(    0x00, DEF_STR( None ) )     PORT_CONDITION("DSW2", 0x02, PORTCOND_EQUALS, 0x00)
391
 
        PORT_DIPSETTING(    0x10, "60k 120k" )          PORT_CONDITION("DSW2", 0x02, PORTCOND_EQUALS, 0x02)
392
 
        PORT_DIPSETTING(    0x20, "100k 200k" )         PORT_CONDITION("DSW2", 0x02, PORTCOND_EQUALS, 0x02)
393
 
        PORT_DIPSETTING(    0x30, "150k 300k" )         PORT_CONDITION("DSW2", 0x02, PORTCOND_EQUALS, 0x02)
394
 
        PORT_DIPSETTING(    0x00, DEF_STR( None ) )     PORT_CONDITION("DSW2", 0x02, PORTCOND_EQUALS, 0x02)
 
382
        PORT_DIPSETTING(    0x10, "40k 80k" )           PORT_CONDITION("DSW2", 0x02, EQUALS, 0x00)
 
383
        PORT_DIPSETTING(    0x20, "70k 140k" )          PORT_CONDITION("DSW2", 0x02, EQUALS, 0x00)
 
384
        PORT_DIPSETTING(    0x30, "100k 200k" )         PORT_CONDITION("DSW2", 0x02, EQUALS, 0x00)
 
385
        PORT_DIPSETTING(    0x00, DEF_STR( None ) )     PORT_CONDITION("DSW2", 0x02, EQUALS, 0x00)
 
386
        PORT_DIPSETTING(    0x10, "60k 120k" )          PORT_CONDITION("DSW2", 0x02, EQUALS, 0x02)
 
387
        PORT_DIPSETTING(    0x20, "100k 200k" )         PORT_CONDITION("DSW2", 0x02, EQUALS, 0x02)
 
388
        PORT_DIPSETTING(    0x30, "150k 300k" )         PORT_CONDITION("DSW2", 0x02, EQUALS, 0x02)
 
389
        PORT_DIPSETTING(    0x00, DEF_STR( None ) )     PORT_CONDITION("DSW2", 0x02, EQUALS, 0x02)
395
390
        PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED )
396
391
 
397
392
        PORT_START("IN1")
406
401
 
407
402
        PORT_MODIFY("DSW2")
408
403
        PORT_DIPNAME( 0x30, 0x10, "Replay" )            // awards 1 credit
409
 
        PORT_DIPSETTING(    0x10, "40k" )                       PORT_CONDITION("DSW2", 0x02, PORTCOND_EQUALS, 0x00)
410
 
        PORT_DIPSETTING(    0x20, "70k" )                       PORT_CONDITION("DSW2", 0x02, PORTCOND_EQUALS, 0x00)
411
 
        PORT_DIPSETTING(    0x30, "100k" )                      PORT_CONDITION("DSW2", 0x02, PORTCOND_EQUALS, 0x00)
412
 
        PORT_DIPSETTING(    0x00, DEF_STR( None ) )     PORT_CONDITION("DSW2", 0x02, PORTCOND_EQUALS, 0x00)
413
 
        PORT_DIPSETTING(    0x10, "60k" )                       PORT_CONDITION("DSW2", 0x02, PORTCOND_EQUALS, 0x02)
414
 
        PORT_DIPSETTING(    0x20, "100k" )                      PORT_CONDITION("DSW2", 0x02, PORTCOND_EQUALS, 0x02)
415
 
        PORT_DIPSETTING(    0x30, "150k" )                      PORT_CONDITION("DSW2", 0x02, PORTCOND_EQUALS, 0x02)
416
 
        PORT_DIPSETTING(    0x00, DEF_STR( None ) )     PORT_CONDITION("DSW2", 0x02, PORTCOND_EQUALS, 0x02)
 
404
        PORT_DIPSETTING(    0x10, "40k" )                       PORT_CONDITION("DSW2", 0x02, EQUALS, 0x00)
 
405
        PORT_DIPSETTING(    0x20, "70k" )                       PORT_CONDITION("DSW2", 0x02, EQUALS, 0x00)
 
406
        PORT_DIPSETTING(    0x30, "100k" )                      PORT_CONDITION("DSW2", 0x02, EQUALS, 0x00)
 
407
        PORT_DIPSETTING(    0x00, DEF_STR( None ) )     PORT_CONDITION("DSW2", 0x02, EQUALS, 0x00)
 
408
        PORT_DIPSETTING(    0x10, "60k" )                       PORT_CONDITION("DSW2", 0x02, EQUALS, 0x02)
 
409
        PORT_DIPSETTING(    0x20, "100k" )                      PORT_CONDITION("DSW2", 0x02, EQUALS, 0x02)
 
410
        PORT_DIPSETTING(    0x30, "150k" )                      PORT_CONDITION("DSW2", 0x02, EQUALS, 0x02)
 
411
        PORT_DIPSETTING(    0x00, DEF_STR( None ) )     PORT_CONDITION("DSW2", 0x02, EQUALS, 0x02)
417
412
INPUT_PORTS_END
418
413
 
419
414
static INPUT_PORTS_START( navarone )
437
432
        PORT_DIPSETTING(    0x00, "2" )
438
433
        PORT_DIPSETTING(    0x02, "3" )
439
434
        PORT_DIPNAME( 0x0c, 0x04, DEF_STR( Bonus_Life ) )       PORT_DIPLOCATION("DSW2:3,4")
440
 
        PORT_DIPSETTING(    0x04, "5000" )                      PORT_CONDITION("DSW2", 0x02, PORTCOND_EQUALS, 0x00)
441
 
        PORT_DIPSETTING(    0x08, "6000" )                      PORT_CONDITION("DSW2", 0x02, PORTCOND_EQUALS, 0x00)
442
 
        PORT_DIPSETTING(    0x0c, "7000" )                      PORT_CONDITION("DSW2", 0x02, PORTCOND_EQUALS, 0x00)
443
 
        PORT_DIPSETTING(    0x00, DEF_STR( None ) )     PORT_CONDITION("DSW2", 0x02, PORTCOND_EQUALS, 0x00)
444
 
        PORT_DIPSETTING(    0x04, "6000" )                      PORT_CONDITION("DSW2", 0x02, PORTCOND_EQUALS, 0x02)
445
 
        PORT_DIPSETTING(    0x08, "7000" )                      PORT_CONDITION("DSW2", 0x02, PORTCOND_EQUALS, 0x02)
446
 
        PORT_DIPSETTING(    0x0c, "8000" )                      PORT_CONDITION("DSW2", 0x02, PORTCOND_EQUALS, 0x02)
447
 
        PORT_DIPSETTING(    0x00, DEF_STR( None ) )     PORT_CONDITION("DSW2", 0x02, PORTCOND_EQUALS, 0x02)
 
435
        PORT_DIPSETTING(    0x04, "5000" )                      PORT_CONDITION("DSW2", 0x02, EQUALS, 0x00)
 
436
        PORT_DIPSETTING(    0x08, "6000" )                      PORT_CONDITION("DSW2", 0x02, EQUALS, 0x00)
 
437
        PORT_DIPSETTING(    0x0c, "7000" )                      PORT_CONDITION("DSW2", 0x02, EQUALS, 0x00)
 
438
        PORT_DIPSETTING(    0x00, DEF_STR( None ) )     PORT_CONDITION("DSW2", 0x02, EQUALS, 0x00)
 
439
        PORT_DIPSETTING(    0x04, "6000" )                      PORT_CONDITION("DSW2", 0x02, EQUALS, 0x02)
 
440
        PORT_DIPSETTING(    0x08, "7000" )                      PORT_CONDITION("DSW2", 0x02, EQUALS, 0x02)
 
441
        PORT_DIPSETTING(    0x0c, "8000" )                      PORT_CONDITION("DSW2", 0x02, EQUALS, 0x02)
 
442
        PORT_DIPSETTING(    0x00, DEF_STR( None ) )     PORT_CONDITION("DSW2", 0x02, EQUALS, 0x02)
448
443
        PORT_DIPNAME( 0x30, 0x10, DEF_STR( Coinage ) )          PORT_DIPLOCATION("DSW2:5,6")
449
444
        PORT_DIPSETTING(    0x30, DEF_STR( 2C_1C ) )
450
445
        PORT_DIPSETTING(    0x10, DEF_STR( 1C_1C ) )
666
661
        PORT_DIPSETTING(    0x08, "4" )
667
662
        PORT_DIPSETTING(    0x0c, "5" )
668
663
        PORT_DIPNAME( 0x30, 0x00, DEF_STR( Bonus_Life ) )       PORT_DIPLOCATION("DSW1:5,6")
669
 
        PORT_DIPSETTING(    0x00, "8k 30k 30k+" )       PORT_CONDITION("DSW1", 0x0c, PORTCOND_NOTEQUALS, 0x0c)
670
 
        PORT_DIPSETTING(    0x10, "10k 40k 40k+" )      PORT_CONDITION("DSW1", 0x0c, PORTCOND_NOTEQUALS, 0x0c)
671
 
        PORT_DIPSETTING(    0x20, "15k 60k 60k+" )      PORT_CONDITION("DSW1", 0x0c, PORTCOND_NOTEQUALS, 0x0c)
672
 
        PORT_DIPSETTING(0x30, DEF_STR( None ) ) PORT_CONDITION("DSW1", 0x0c, PORTCOND_NOTEQUALS, 0x0c)
673
 
        PORT_DIPSETTING(    0x00, "30k" )                       PORT_CONDITION("DSW1", 0x0c, PORTCOND_EQUALS, 0x0c)
674
 
        PORT_DIPSETTING(    0x10, "40k" )                       PORT_CONDITION("DSW1", 0x0c, PORTCOND_EQUALS, 0x0c)
675
 
        PORT_DIPSETTING(    0x20, "60k" )                       PORT_CONDITION("DSW1", 0x0c, PORTCOND_EQUALS, 0x0c)
676
 
        PORT_DIPSETTING(    0x30, DEF_STR( None ) )     PORT_CONDITION("DSW1", 0x0c, PORTCOND_EQUALS, 0x0c)
 
664
        PORT_DIPSETTING(    0x00, "8k 30k 30k+" )       PORT_CONDITION("DSW1", 0x0c, NOTEQUALS, 0x0c)
 
665
        PORT_DIPSETTING(    0x10, "10k 40k 40k+" )      PORT_CONDITION("DSW1", 0x0c, NOTEQUALS, 0x0c)
 
666
        PORT_DIPSETTING(    0x20, "15k 60k 60k+" )      PORT_CONDITION("DSW1", 0x0c, NOTEQUALS, 0x0c)
 
667
        PORT_DIPSETTING(0x30, DEF_STR( None ) ) PORT_CONDITION("DSW1", 0x0c, NOTEQUALS, 0x0c)
 
668
        PORT_DIPSETTING(    0x00, "30k" )                       PORT_CONDITION("DSW1", 0x0c, EQUALS, 0x0c)
 
669
        PORT_DIPSETTING(    0x10, "40k" )                       PORT_CONDITION("DSW1", 0x0c, EQUALS, 0x0c)
 
670
        PORT_DIPSETTING(    0x20, "60k" )                       PORT_CONDITION("DSW1", 0x0c, EQUALS, 0x0c)
 
671
        PORT_DIPSETTING(    0x30, DEF_STR( None ) )     PORT_CONDITION("DSW1", 0x0c, EQUALS, 0x0c)
677
672
        PORT_DIPNAME( 0x40, 0x00, DEF_STR( Demo_Sounds ) )      PORT_DIPLOCATION("DSW1:7")
678
673
        PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
679
674
        PORT_DIPSETTING(    0x00, DEF_STR( On ) )