/
balsente.cpp
3025 lines (2441 loc) · 141 KB
/
balsente.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// license:BSD-3-Clause
// copyright-holders:Aaron Giles
/***************************************************************************
Bally/Sente SAC-1 system
driver by Aaron Giles
Games supported:
* Chicken Shift (11/23/84)
* Gimme A Break (7/7/85)
* Goalie Ghost
* Grudge Match (v00.90, Italy, location test?)
* Grudge Match (v00.80, prototype)
* Hat Trick (11/12/84)
* Mini Golf (set 1)
* Mini Golf (11/25/85)
* Mini Golf (10/8/85)
* Name That Tune (3/31/86)
* Name That Tune (3/23/86)
* Night Stocker (10/6/86)
* Night Stocker (8/27/86)
* Off the Wall (10/16/84)
* Rescue Raider (5/11/87) (non-cartridge)
* Rescue Raider (stand-alone)
* Sente Diagnostic Cartridge
* Shrike Avenger (prototype)
* Snacks'n Jaxson
* Snake Pit
* Snake Pit (9/14/84)
* Spiker (6/9/86)
* Spiker (5/5/86)
* Spiker (earliest)
* Stocker (3/19/85)
* Stompin' (4/4/86)
* Street Football (11/12/86)
* Team Hat Trick (11/16/84)
* Toggle (prototype)
* Trivial Pursuit (Think Tank - Genus Edition) (2/12/85)
* Trivial Pursuit (Think Tank - Genus Edition) (12/14/84)
* Trivial Pursuit (Baby Boomer Edition) (3/20/85)
* Trivial Pursuit (Genus II Edition) (3/22/85)
* Trivial Pursuit (Young Players Edition) (3/29/85)
* Trivial Pursuit (All Star Sports Edition)
* Trivial Pursuit (Volumen III, Spanish, Maibesa license)
* Trivial Pursuit (Volumen II, Spanish, Maibesa license)
* Trivial Pursuit (Volumen IV, Spanish, Maibesa hardware)
* Trivial Pursuit (Volumen V, Spanish, Maibesa hardware)
Looking for ROMs for these:
* Euro Stocker
* Trivial Pursuit (Volumen I, Spanish, Maibesa)
Known bugs:
* CEM3394 emulation is not perfect
* Shrike Avenger doesn't work properly
* triviaes4 and triviaes5 sets run on different hardware (from Maibesa) which isn't emulated yet
Other:
* Some of the cartridge types are unknown
* Do any of the remaining unknown cartridge types contain a PAL
that needs to be dumped?
****************************************************************************
Memory map
****************************************************************************
========================================================================
68A09E CPU
========================================================================
0000-007F R/W xxxxxxxx Sprite RAM (32 entries x 4 bytes)
R/W x------- (0: Vertical flip)
R/W -x------ (0: Horizontal flip)
R/W ------xx (0: Upper 2 bits of image number)
R/W xxxxxxxx (1: Lower 8 bits of image number)
R/W xxxxxxxx (2: Y position, offset by 17 pixels)
R/W xxxxxxxx (3: X position)
0080-00DF R/W xxxxxxxx Program RAM
00E0-00FF R/W xxxxxxxx Additional sprite RAM (8 entries x 4 bytes)
0100-07FF R/W xxxxxxxx Program RAM
0800-7FFF R/W xxxxxxxx Video RAM (256x240 pixels)
R/W xxxx---- (left pixel)
R/W ----xxxx (right pixel)
8000-8FFF R/W ----xxxx Palette RAM (1024 entries x 4 bytes)
R/W ----xxxx (0: red entry)
R/W ----xxxx (1: green entry)
R/W ----xxxx (2: blue entry)
9000-9007 W -------- ADC start trigger, inputs 0-7
9400 R xxxxxxxx ADC data read
9800-9801 W x------- External output #0
9802-9803 W x------- External output #1
9804-9805 W x------- External output #2
9806-9807 W x------- External output #3
9808-9809 W x------- External output #4
980A-980B W x------- External output #5
980C-980D W x------- External output #6
980E-980F W x------- NVRAM recall
9880 W -------- Random number generator reset
98A0 W -xxx---- A000-DFFF bank select
98C0 W ------xx Palette bank select
98E0 W -------- Watchdog reset
9900 R xxxxxxxx DIP switch bank 1 (G) (active low)
9901 R xxxxxxxx DIP switch bank 2 (H) (active low)
9902 R x------- Self test (active low)
R -x------ Left coin (active low)
R --xxxxxx External inputs (active low)
9903 R x------- VBLANK state (active high)
R -x------ Right coin (active low)
R --xxxx-- External inputs (active low)
R ------x- Player 2 start (active low)
R -------x Player 1 start (active low)
9A00 R xxxxxxxx Random number generator
9A04-9A05 R/W xxxxxxxx 6850 UART I/O (to sound board)
9B00-9CFF R/W xxxxxxxx NOVRAM
9F00 W --x--xxx Independent bank select (Night Stocker only?)
9e00-9fff R/W Shrike Avenger shares with 68k at 0x18000 (see Shrike notes below)
A000-BFFF R xxxxxxxx Banked A/B ROM
C000-DFFF R xxxxxxxx Banked C/D ROM
E000-FFFF R xxxxxxxx Fixed program ROM
========================================================================
Interrupts:
NMI not connected
IRQ generated by 32L
FIRQ generated by 6850 UART
========================================================================
========================================================================
Shrike SHM
Many thanks to Owen Rubin and Brian Deuel ( http://www.atarimuseum.com/orubin/ ) for their time,
interest, and memories!
From Owen: The motor drive included 2 motors side by side at the rear of the cabinet with a U joint pivot
at the front. L & R motors were used independently for side to side "roll" motion, and together for pitch.
The motors were guarded by two sets of h/w limit switches - stop switch and (emergency) auto-reverse
switch - in tandem with soft limiting. The software calibrated the motors by running the motors slowly to
full limits and using the data for the soft limiting. (max chops?)
The proto was never completed, there was to be a final round against a mother ship where you would have
to shoot out 4 engines and a target array. (He thinks there was another bank of sprite ROMs for this that
may never have been included.) He also says 'There was going to be a "death blossom" shot you could
use once that would have been a wild ride as well, but that motion was VERY tough in the simulator, so I
did not complete it.'
Owen's recollection of the motion diagnostics screen, the second cursor is the controllers feedback
and should match the yoke cursor. Two of the channels (sine/bar) are probably calculated/reported
motor pos. Red sine meant over/underspeed or calculated/reported discrepancy. All memories came with
a disclaimer ;)
Shrike shares 9e00 - 9fff as 18000 - 181ff, 9e00-9e0f as registers, and the rest as GFX RAM.
10000-1001f appear to be the interface to the motors/sensors.
For more detailed (but unfinished as yet) disassembly of 68000, get me at my hotmail address, 'nuapete'
========================================================================
m6809 m68000
9e00 RW - RW 18000 ($0,A3) : 6809 command register, commands in range 0-19
cmd $0 nop
cmd $10 check RAM
cmd $11 check u22 ( 0000-3FFE )
cmd $12 check u24 ( 0001-3FFF )
cmd $13 check "u26" ( 8000-BFFE ) \ these appear to be for unused expansion slots
cmd $14 check "u28" ( 8001-BFFF ) /
cmd $15 check IRQs
cmd $16 check FIRQs
cmd $17 fetch max chops
cmd $18 fetch pulse width
9e01 W - R 18001 ($1,A3) : &0x80 sprite bank select
9e02 W - R 18002 ($2,A3) : \ joy x
9e03 W - R 18003 ($3,A3) : / joy y
9e04 R - W 18004 ($4,A3) : \ cursor y pos in diags screen
9e05 R - W 18005 ($5,A3) : / cursor x pos in diags screen
9e06 R - W 18006 ($6,A3) : 68k status
00 = OK
02 = cmd 3 or a failed
01 = Initial status (not OK)
10 = RAM bad
11 = ROM(s) bad
15 = IRQs bad
16 = FIRQs bad
F7 = 68k didn't get handshake from 6809
F8 = Too many spurious interrupts
F9 = Both limit switches at once
FA = 120 Hz signal slower than 80Hz
FB = Excess current sensor not working
FC = Motor range outside of expected
FD = Failed to detect limit switch
FE = No mech movement detected
FF = Excess current for too long
9e07 W - R 18007 ($7,A3) : \ writes random stuff from 9A00 which is the random number generator?
9e08 RW - R 18008 ($8,A3) : / as 9e07
9e09 RW - W 18009 ($9,A3) : \ 68k watchdog writes 0xaa
9e0a W - RW 1800a ($a,A3) : / 6809 watchdog writes 0x55
9e0b - RW 1800b ($b,A3) : Only writes are 0
9e0c R - RW 1800c ($c,A3) : \ ypos returned from controller (affects enemy ship pos)
9e0d R - W 1800d ($d,A3) : / xpos returned from controller
9e0e W - R 1800e ($e,A3) : \
9e0f W - 1800f ($f,A3) : / partial pointer into SHM gfx data
***************************************************************************
DIP locations verified for:
- stompin (manual)
***************************************************************************/
#include "emu.h"
#include "balsente.h"
#include "cpu/z80/z80.h"
#include "cpu/m6809/m6809.h"
#include "cpu/m68000/m68000.h"
#include "machine/nvram.h"
#include "machine/watchdog.h"
#include "sente6vb.h"
#include "machine/6821pia.h"
#include "machine/z80ctc.h"
#include "sound/ay8910.h"
#include "sound/msm5205.h"
#include "video/mc6845.h"
#include "speaker.h"
#include "stocker.lh"
/*************************************
*
* Main CPU memory handlers
*
*************************************/
void balsente_state::cpu1_base_map(address_map &map)
{
map(0x0000, 0x07ff).ram().share("spriteram");
map(0x0800, 0x7fff).ram().w(FUNC(balsente_state::videoram_w)).share("videoram");
map(0x8000, 0x8fff).ram().w(m_palette, FUNC(palette_device::write8)).share("palette");
map(0x9000, 0x9007).w(FUNC(balsente_state::adc_select_w));
map(0x9400, 0x9401).r(FUNC(balsente_state::adc_data_r));
map(0x9800, 0x981f).mirror(0x0060).lw8(NAME([this] (offs_t offset, u8 data) { m_outlatch->write_d7(offset >> 2, data); }));
map(0x9880, 0x989f).w(FUNC(balsente_state::random_reset_w));
map(0x98a0, 0x98bf).w(FUNC(balsente_state::rombank_select_w));
map(0x98c0, 0x98df).w(FUNC(balsente_state::palette_select_w));
map(0x98e0, 0x98ff).w("watchdog", FUNC(watchdog_timer_device::reset_w));
map(0x9900, 0x9900).portr("SWH");
map(0x9901, 0x9901).portr("SWG");
map(0x9902, 0x9902).portr("IN0");
map(0x9903, 0x9903).portr("IN1").nopw();
map(0x9a00, 0x9a03).r(FUNC(balsente_state::random_num_r));
map(0x9a04, 0x9a05).rw("acia", FUNC(acia6850_device::read), FUNC(acia6850_device::write));
map(0xa000, 0xbfff).bankr("bankab");
map(0xc000, 0xdfff).bankr("bankcd");
map(0xe000, 0xffff).bankr("bankef");
}
void balsente_state::cpu1_map(address_map &map)
{
cpu1_base_map(map);
map(0x9b00, 0x9bff).rw("nov0", FUNC(x2212_device::read), FUNC(x2212_device::write));
map(0x9c00, 0x9cff).rw("nov1", FUNC(x2212_device::read), FUNC(x2212_device::write));
}
void balsente_state::cpu1_teamht_map(address_map &map)
{
cpu1_map(map);
map(0x9404, 0x9404).r(FUNC(balsente_state::teamht_extra_r));
map(0x9000, 0x9007).w(FUNC(balsente_state::teamht_multiplex_select_w));
}
void balsente_state::cpu1_grudge_map(address_map &map)
{
cpu1_map(map);
map(0x9400, 0x9400).r(FUNC(balsente_state::grudge_steering_r));
}
void balsente_state::cpu1_st1002_map(address_map &map)
{
cpu1_map(map);
map(0x9f00, 0x9f00).w(FUNC(balsente_state::rombank2_select_w));
}
void balsente_state::cpu1_spiker_map(address_map &map)
{
cpu1_st1002_map(map);
map(0x9f80, 0x9f8f).rw(FUNC(balsente_state::spiker_expand_r), FUNC(balsente_state::spiker_expand_w));
}
void balsente_state::cpu1_shrike_map(address_map &map)
{
cpu1_map(map);
map(0x9e00, 0x9fff).rw(FUNC(balsente_state::shrike_shared_6809_r), FUNC(balsente_state::shrike_shared_6809_w));
map(0x9e01, 0x9e01).w(FUNC(balsente_state::shrike_sprite_select_w));
}
void balsente_state::cpu1_smudge_map(address_map &map)
{
cpu1_base_map(map);
map(0x9b00, 0x9bff).rw(FUNC(balsente_state::novram_8bit_r), FUNC(balsente_state::novram_8bit_w));
}
void balsente_state::cpu1_triviamb_map(address_map &map)
{
map(0x0000, 0x00ff).ram().share("spriteram");
map(0x0100, 0x0100).portr("SWH");
map(0x0101, 0x0101).portr("SWG");
map(0x0102, 0x0102).portr("IN0");
map(0x0103, 0x0103).portr("IN1");
map(0x0320, 0x0323).rw("pia", FUNC(pia6821_device::read_alt), FUNC(pia6821_device::write_alt));
map(0x0340, 0x0340).rw("crtc", FUNC(mc6845_device::status_r), FUNC(mc6845_device::address_w));
map(0x0341, 0x0341).rw("crtc", FUNC(mc6845_device::register_r), FUNC(mc6845_device::register_w));
map(0x0360, 0x0360).w(FUNC(balsente_state::random_reset_w));
map(0x0380, 0x0380).r(FUNC(balsente_state::random_num_r));
map(0x03a0, 0x03a0).w(FUNC(balsente_state::rombank_select_w));
map(0x03c0, 0x03c0).w(FUNC(balsente_state::palette_select_w));
map(0x03e0, 0x03e0).w("watchdog", FUNC(watchdog_timer_device::reset_w));
map(0x0800, 0x7fff).ram().w(FUNC(balsente_state::videoram_w)).share("videoram");
map(0x8000, 0x83ff).ram().w(m_palette, FUNC(palette_device::write8)).share("palette");
map(0x8800, 0x8fff).ram().share("nvram");
map(0xa000, 0xbfff).bankr("bankab");
map(0xc000, 0xdfff).bankr("bankcd");
map(0xe000, 0xffff).bankr("bankef");
}
/*************************************
*
* Sound CPU memory handlers
*
*************************************/
// TODO: banking (Trivial hardware from Maibesa)
void balsente_state::cpu2_triviamb_map(address_map &map)
{
map(0x0000, 0x7fff).rom();
map(0x8000, 0x9fff).ram();
}
// TODO: hookup 2x Z80CTC, 2x AY8910A, 1x M5205 (Trivial hardware from Maibesa)
void balsente_state::cpu2_triviamb_io_map(address_map &map)
{
map.global_mask(0xff);
}
/*************************************
*
* Shrike Avenger CPU memory handlers
*
*************************************/
/* CPU 1 read addresses */
void balsente_state::shrike68k_map(address_map &map)
{
map(0x000000, 0x003fff).rom();
map(0x010000, 0x01001f).ram().share("shrike_io").rw(FUNC(balsente_state::shrike_io_68k_r), FUNC(balsente_state::shrike_io_68k_w));
map(0x018000, 0x018fff).ram().share("shrike_shared");
}
/*************************************
*
* Port definitions
*
*************************************/
#define UNUSED_ANALOG PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNUSED )
#define BALSENTE_COINAGE_ALT \
PORT_DIPNAME( 0x03, 0x01, DEF_STR( Coinage ) ) PORT_DIPLOCATION("H1:1,2") \
PORT_DIPSETTING( 0x03, DEF_STR( 2C_1C ) ) \
PORT_DIPSETTING( 0x01, DEF_STR( 1C_1C ) ) \
PORT_DIPSETTING( 0x02, DEF_STR( 1C_2C ) ) \
PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) )
#define BALSENTE_COINAGE_ALT2 \
PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) ) PORT_DIPLOCATION("H1:1,2") \
PORT_DIPSETTING( 0x03, DEF_STR( 3C_1C ) ) \
PORT_DIPSETTING( 0x02, DEF_STR( 2C_1C ) ) \
PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) \
PORT_DIPSETTING( 0x01, DEF_STR( 1C_2C ) )
#define BALSENTE_PLAYERS_PER_COIN \
PORT_DIPNAME( 0x04, 0x04, "Players Per Credit" ) PORT_DIPLOCATION("H1:3") \
PORT_DIPSETTING( 0x00, "1" ) \
PORT_DIPSETTING( 0x04, "1 Or 2" )
static INPUT_PORTS_START( sentetst )
PORT_START("SWH")
PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) ) PORT_DIPLOCATION("H1:1,2")
PORT_DIPSETTING( 0x02, DEF_STR( 2C_1C ) )
PORT_DIPSETTING( 0x03, DEF_STR( 1C_1C ) )
PORT_DIPSETTING( 0x01, DEF_STR( 1C_2C ) )
PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) )
PORT_DIPUNUSED_DIPLOC( 0x04, 0x04, "H1:3" )
PORT_DIPUNUSED_DIPLOC( 0x08, 0x08, "H1:4" )
PORT_DIPUNUSED_DIPLOC( 0x10, 0x10, "H1:5" )
PORT_DIPUNUSED_DIPLOC( 0x20, 0x20, "H1:6" )
PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "H1:7" )
PORT_DIPNAME( 0x80, 0x80, "High Scores" ) PORT_DIPLOCATION("H1:8")
PORT_DIPSETTING( 0x80, "Keep Top 5" )
PORT_DIPSETTING( 0x00, "Keep All" )
PORT_START("SWG")
PORT_DIPNAME( 0x03, 0x00, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("G1:1,2")
PORT_DIPSETTING( 0x00, "Every 10,000" )
PORT_DIPSETTING( 0x01, "Every 15,000" )
PORT_DIPSETTING( 0x02, "Every 20,000" )
PORT_DIPSETTING( 0x03, "Every 25,000" )
PORT_DIPNAME( 0x0c, 0x04, DEF_STR( Lives ) ) PORT_DIPLOCATION("G1:3,4")
PORT_DIPSETTING( 0x00, "2" )
PORT_DIPSETTING( 0x04, "3" )
PORT_DIPSETTING( 0x08, "4" )
PORT_DIPSETTING( 0x0c, "5" )
PORT_DIPUNUSED_DIPLOC( 0x10, 0x10, "G1:5" )
PORT_DIPUNUSED_DIPLOC( 0x20, 0x20, "G1:6" )
PORT_DIPNAME( 0x40, 0x40, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("G1:7")
PORT_DIPSETTING( 0x40, DEF_STR( Easy ) )
PORT_DIPSETTING( 0x00, DEF_STR( Hard ) )
PORT_DIPNAME( 0x80, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("G1:8")
PORT_DIPSETTING( 0x80, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_START("IN0")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_PLAYER(1)
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_DOWN ) PORT_PLAYER(1)
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_RIGHT ) PORT_PLAYER(1)
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_LEFT ) PORT_PLAYER(1)
PORT_BIT( 0x30, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 )
PORT_SERVICE( 0x80, IP_ACTIVE_LOW )
PORT_START("IN1")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 )
PORT_BIT( 0x38, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 )
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_CUSTOM ) PORT_VBLANK("screen")
/* Analog ports */
PORT_START("AN0")
UNUSED_ANALOG
PORT_START("AN1")
UNUSED_ANALOG
/* Player 1 Trackball */
PORT_START("AN2")
PORT_BIT( 0xff, 0, IPT_TRACKBALL_Y ) PORT_SENSITIVITY(100) PORT_KEYDELTA(20) PORT_RESET PORT_PLAYER(1)
PORT_START("AN3")
PORT_BIT( 0xff, 0, IPT_TRACKBALL_X ) PORT_SENSITIVITY(100) PORT_KEYDELTA(20) PORT_RESET PORT_REVERSE PORT_PLAYER(1)
INPUT_PORTS_END
static INPUT_PORTS_START( cshift )
PORT_INCLUDE( sentetst )
PORT_MODIFY("SWG")
PORT_DIPUNUSED_DIPLOC( 0x01, 0x01, "G1:1" )
PORT_DIPUNUSED_DIPLOC( 0x02, 0x02, "G1:2" )
PORT_DIPNAME( 0x04, 0x04, DEF_STR( Lives ) ) PORT_DIPLOCATION("G1:3")
PORT_DIPSETTING( 0x00, "2" )
PORT_DIPSETTING( 0x04, "3" )
PORT_DIPUNUSED_DIPLOC( 0x08, 0x08, "G1:4" )
PORT_DIPUNUSED_DIPLOC( 0x10, 0x10, "G1:5" )
PORT_DIPUNUSED_DIPLOC( 0x20, 0x20, "G1:6" )
PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "G1:7" )
PORT_MODIFY("IN0")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
PORT_BIT( 0x3c, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_MODIFY("IN1")
PORT_BIT( 0x3c, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_MODIFY("AN2")
UNUSED_ANALOG
PORT_MODIFY("AN3")
UNUSED_ANALOG
INPUT_PORTS_END
static INPUT_PORTS_START( gghost )
PORT_INCLUDE( sentetst )
PORT_MODIFY("SWH")
BALSENTE_PLAYERS_PER_COIN
PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "H1:7" )
PORT_MODIFY("SWG")
PORT_DIPNAME( 0x07, 0x05, "Game Duration" ) PORT_DIPLOCATION("G1:1,2,3")
PORT_DIPSETTING( 0x00, "9 Points" )
PORT_DIPSETTING( 0x02, "11 Points" )
PORT_DIPSETTING( 0x04, "15 Points" )
PORT_DIPSETTING( 0x06, "21 Points" )
PORT_DIPSETTING( 0x01, "Timed, 1:15" )
PORT_DIPSETTING( 0x03, "Timed, 1:30" )
PORT_DIPSETTING( 0x05, "Timed, 2:00" )
PORT_DIPSETTING( 0x07, "Timed, 2:30" )
PORT_DIPUNUSED_DIPLOC( 0x08, 0x08, "G1:4" )
PORT_DIPUNUSED_DIPLOC( 0x10, 0x10, "G1:5" )
PORT_DIPUNUSED_DIPLOC( 0x20, 0x20, "G1:6" )
PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "G1:7" )
PORT_MODIFY("IN0")
PORT_BIT( 0x0f, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2)
PORT_MODIFY("IN1")
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
PORT_BIT( 0x30, IP_ACTIVE_LOW, IPT_UNUSED )
/* Player 2 Trackball */
PORT_MODIFY("AN0")
PORT_BIT( 0xff, 0, IPT_TRACKBALL_Y ) PORT_SENSITIVITY(100) PORT_KEYDELTA(20) PORT_RESET PORT_PLAYER(2)
PORT_MODIFY("AN1")
PORT_BIT( 0xff, 0, IPT_TRACKBALL_X ) PORT_SENSITIVITY(100) PORT_KEYDELTA(20) PORT_RESET PORT_REVERSE PORT_PLAYER(2)
/* Player 1 Trackball */
PORT_MODIFY("AN2")
PORT_BIT( 0xff, 0, IPT_TRACKBALL_Y ) PORT_SENSITIVITY(100) PORT_KEYDELTA(20) PORT_RESET PORT_PLAYER(1)
PORT_MODIFY("AN3")
PORT_BIT( 0xff, 0, IPT_TRACKBALL_X ) PORT_SENSITIVITY(100) PORT_KEYDELTA(20) PORT_RESET PORT_REVERSE PORT_PLAYER(1)
INPUT_PORTS_END
static INPUT_PORTS_START( hattrick )
PORT_INCLUDE( sentetst )
PORT_MODIFY("SWH")
BALSENTE_PLAYERS_PER_COIN
PORT_DIPUNUSED_DIPLOC( 0x80, 0x80, "H1:8" )
PORT_MODIFY("SWG")
PORT_DIPNAME( 0x07, 0x02, DEF_STR( Game_Time ) ) PORT_DIPLOCATION("G1:1,2,3")
PORT_DIPSETTING( 0x00, "1:15" )
PORT_DIPSETTING( 0x01, "1:30" )
PORT_DIPSETTING( 0x02, "1:45" )
PORT_DIPSETTING( 0x03, "2:00" )
PORT_DIPSETTING( 0x04, "2:15" )
PORT_DIPSETTING( 0x05, "2:30" )
PORT_DIPSETTING( 0x06, "2:45" )
PORT_DIPSETTING( 0x07, "3:00" )
PORT_DIPUNUSED_DIPLOC( 0x08, 0x08, "G1:4" )
PORT_DIPUNUSED_DIPLOC( 0x10, 0x10, "G1:5" )
PORT_DIPUNUSED_DIPLOC( 0x20, 0x20, "G1:6" )
PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "G1:7" )
PORT_MODIFY("IN0")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1)
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1)
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1)
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 )
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
PORT_MODIFY("IN1")
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2)
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2)
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2)
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2)
PORT_MODIFY("AN2")
UNUSED_ANALOG
PORT_MODIFY("AN3")
UNUSED_ANALOG
INPUT_PORTS_END
static INPUT_PORTS_START( teamht )
PORT_INCLUDE( sentetst )
PORT_MODIFY("SWH")
PORT_DIPNAME( 0x03, 0x01, DEF_STR( Coinage ) ) PORT_DIPLOCATION("H1:1,2")
PORT_DIPSETTING( 0x03, DEF_STR( 2C_1C ) )
PORT_DIPSETTING( 0x01, DEF_STR( 1C_1C ) )
PORT_DIPSETTING( 0x02, DEF_STR( 1C_2C ) )
PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) )
PORT_DIPNAME( 0x1c, 0x00, "Bonus Coin" ) PORT_DIPLOCATION("H1:3,4,5")
PORT_DIPSETTING( 0x00, "None" )
PORT_DIPSETTING( 0x04, "2 Coins +1" )
PORT_DIPSETTING( 0x08, "3 Coins +1" )
PORT_DIPSETTING( 0x0c, "4 Coins +1" )
PORT_DIPSETTING( 0x10, "4 Coins +2" )
PORT_DIPSETTING( 0x14, "5 Coins +1" )
PORT_DIPSETTING( 0x18, "5 Coins +2" )
PORT_DIPSETTING( 0x1c, "5 Coins +3" )
PORT_DIPNAME( 0x20, 0x00, "Left Multiplier" ) PORT_DIPLOCATION("H1:6")
PORT_DIPSETTING( 0x00, "1" )
PORT_DIPSETTING( 0x20, "2" )
PORT_DIPNAME( 0xc0, 0x00, "Right Multiplier" ) PORT_DIPLOCATION("H1:7,8")
PORT_DIPSETTING( 0x00, "1" )
PORT_DIPSETTING( 0x40, "4" )
PORT_DIPSETTING( 0x80, "5" )
PORT_DIPSETTING( 0xc0, "6" )
PORT_MODIFY("SWG")
PORT_DIPNAME( 0x07, 0x02, DEF_STR( Game_Time ) ) PORT_DIPLOCATION("G1:1,2,3")
PORT_DIPSETTING( 0x00, "1:15" )
PORT_DIPSETTING( 0x01, "1:30" )
PORT_DIPSETTING( 0x02, "1:45" )
PORT_DIPSETTING( 0x03, "2:00" )
PORT_DIPSETTING( 0x04, "2:15" )
PORT_DIPSETTING( 0x05, "2:30" )
PORT_DIPSETTING( 0x06, "2:45" )
PORT_DIPSETTING( 0x07, "3:00" )
PORT_DIPUNUSED_DIPLOC( 0x08, 0x08, "G1:4" )
PORT_DIPUNUSED_DIPLOC( 0x10, 0x10, "G1:5" )
PORT_DIPUNUSED_DIPLOC( 0x20, 0x20, "G1:6" )
PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "G1:7" )
PORT_MODIFY("IN0")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3)
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(4)
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_MODIFY("IN1")
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_MODIFY("AN2")
UNUSED_ANALOG
PORT_MODIFY("AN3")
UNUSED_ANALOG
PORT_START("EX0")
PORT_BIT( 0x0f, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1)
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1)
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1)
PORT_START("EX1")
PORT_BIT( 0x0f, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2)
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2)
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2)
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2)
// reversed wrt p1 and p2
PORT_START("EX2")
PORT_BIT( 0x0f, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(3)
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(3)
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(3)
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(3)
PORT_START("EX3")
PORT_BIT( 0x0f, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(4)
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(4)
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(4)
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(4)
INPUT_PORTS_END
static INPUT_PORTS_START( otwalls )
PORT_INCLUDE( sentetst )
PORT_MODIFY("SWH")
BALSENTE_PLAYERS_PER_COIN
PORT_DIPUNUSED_DIPLOC( 0x80, 0x80, "H1:8" )
PORT_MODIFY("SWG")
PORT_DIPUNUSED_DIPLOC( 0x01, 0x01, "G1:1" )
PORT_DIPUNUSED_DIPLOC( 0x02, 0x02, "G1:2" )
PORT_DIPUNUSED_DIPLOC( 0x04, 0x04, "G1:3" )
PORT_DIPUNUSED_DIPLOC( 0x08, 0x08, "G1:4" )
PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "G1:7" )
PORT_MODIFY("IN0")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_LEFT ) PORT_PLAYER(2)
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_RIGHT ) PORT_PLAYER(2)
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_LEFT ) PORT_PLAYER(1)
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_RIGHT ) PORT_PLAYER(1)
PORT_MODIFY("IN1")
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED )
/* Player 1 Dial */
PORT_MODIFY("AN2")
PORT_BIT( 0xff, 0, IPT_DIAL ) PORT_SENSITIVITY(100) PORT_KEYDELTA(20) PORT_RESET PORT_REVERSE PORT_PLAYER(1)
/* Player 2 Dial */
PORT_MODIFY("AN3")
PORT_BIT( 0xff, 0, IPT_DIAL ) PORT_SENSITIVITY(100) PORT_KEYDELTA(20) PORT_RESET PORT_REVERSE PORT_PLAYER(2)
INPUT_PORTS_END
static INPUT_PORTS_START( snakjack )
PORT_INCLUDE( sentetst )
PORT_MODIFY("SWG")
PORT_DIPNAME( 0x03, 0x01, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("G1:1,2")
PORT_DIPSETTING( 0x00, "Every 15,000" )
PORT_DIPSETTING( 0x01, "Every 20,000" )
PORT_DIPSETTING( 0x02, "Every 25,000" )
PORT_DIPSETTING( 0x03, "Every 30,000" )
PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "G1:7" )
PORT_MODIFY("IN0")
PORT_BIT( 0x0f, IP_ACTIVE_LOW, IPT_UNUSED )
INPUT_PORTS_END
static INPUT_PORTS_START( stocker )
PORT_INCLUDE( sentetst )
PORT_MODIFY("SWH")
PORT_DIPNAME( 0x03, 0x01, DEF_STR( Coinage ) ) PORT_DIPLOCATION("H1:1,2")
PORT_DIPSETTING( 0x03, DEF_STR( 2C_1C ) )
PORT_DIPSETTING( 0x01, DEF_STR( 1C_1C ) )
PORT_DIPSETTING( 0x02, DEF_STR( 1C_2C ) )
PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) )
PORT_DIPNAME( 0x1c, 0x00, "Bonus Coins" ) PORT_DIPLOCATION("H1:3,4,5")
PORT_DIPSETTING( 0x00, DEF_STR( None ) )
PORT_DIPSETTING( 0x04, "2 Coins = 1 Bonus" )
PORT_DIPSETTING( 0x08, "3 Coins = 1 Bonus" )
PORT_DIPSETTING( 0x0c, "4 Coins = 1 Bonus" )
PORT_DIPSETTING( 0x10, "4 Coins = 2 Bonus" )
PORT_DIPSETTING( 0x14, "5 Coins = 1 Bonus" )
PORT_DIPSETTING( 0x18, "5 Coins = 2 Bonus" )
PORT_DIPSETTING( 0x1c, "5 Coins = 3 Bonus" )
PORT_DIPNAME( 0x20, 0x00, "Left Coin Mech" ) PORT_DIPLOCATION("H1:6")
PORT_DIPSETTING( 0x00, "x1" )
PORT_DIPSETTING( 0x20, "x2" )
PORT_DIPNAME( 0xc0, 0x00, "Right Coin Mech" ) PORT_DIPLOCATION("H1:7,8")
PORT_DIPSETTING( 0x00, "x1" )
PORT_DIPSETTING( 0x40, "x4" )
PORT_DIPSETTING( 0x80, "x5" )
PORT_DIPSETTING( 0xc0, "x6" )
PORT_MODIFY("SWG")
PORT_DIPUNUSED_DIPLOC( 0x01, 0x01, "G1:1" )
PORT_DIPUNUSED_DIPLOC( 0x02, 0x02, "G1:2" )
PORT_DIPUNUSED_DIPLOC( 0x04, 0x04, "G1:3" )
PORT_DIPUNUSED_DIPLOC( 0x08, 0x08, "G1:4" )
PORT_DIPNAME( 0x40, 0x40, "End Of Game" ) PORT_DIPLOCATION("G1:7")
PORT_DIPSETTING( 0x40, DEF_STR( Normal ) )
PORT_DIPSETTING( 0x00, "3 Tickets" )
PORT_MODIFY("IN0")
PORT_BIT( 0x0f, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_MODIFY("IN1")
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_MODIFY("AN2")
UNUSED_ANALOG
/* Player 1 Wheel */
PORT_MODIFY("AN3")
PORT_BIT( 0xff, 0, IPT_DIAL ) PORT_SENSITIVITY(100) PORT_KEYDELTA(20) PORT_RESET PORT_PLAYER(1)
INPUT_PORTS_END
static INPUT_PORTS_START( triviag1 )
PORT_INCLUDE( sentetst )
PORT_MODIFY("SWH")
PORT_DIPNAME( 0x20, 0x00, "Sound" ) PORT_DIPLOCATION("H1:6")
PORT_DIPSETTING( 0x20, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_DIPNAME( 0x40, 0x00, "Sound Test" ) PORT_DIPLOCATION("H1:7")
PORT_DIPSETTING( 0x40, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_DIPNAME( 0x80, 0x80, "High Scores" ) PORT_DIPLOCATION("H1:8")
PORT_DIPSETTING( 0x00, "Keep Top 5" )
PORT_DIPSETTING( 0x80, "Keep Top 10" )
PORT_MODIFY("SWG")
PORT_DIPUNUSED_DIPLOC( 0x01, 0x01, "G1:1" )
PORT_DIPUNUSED_DIPLOC( 0x02, 0x02, "G1:2" )
PORT_DIPNAME( 0x0c, 0x04, "Guesses" ) PORT_DIPLOCATION("G1:3,4")
PORT_DIPSETTING( 0x00, "3" )
PORT_DIPSETTING( 0x04, "4" )
PORT_DIPSETTING( 0x08, "5" )
PORT_DIPSETTING( 0x0c, "6" )
PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "G1:7" )
PORT_MODIFY("IN0")
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 )
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_MODIFY("IN1")
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START3 )
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START4 )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Red Button")
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Green Button")
PORT_MODIFY("AN2")
UNUSED_ANALOG
PORT_MODIFY("AN3")
UNUSED_ANALOG
INPUT_PORTS_END
static INPUT_PORTS_START( triviaes )
PORT_INCLUDE( triviag1 )
PORT_MODIFY("SWH")
PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) ) PORT_DIPLOCATION("H1:1,2")
PORT_DIPSETTING( 0x02, DEF_STR( 2C_1C ) )
PORT_DIPSETTING( 0x03, DEF_STR( Free_Play ) )
PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C) )
PORT_DIPSETTING( 0x01, DEF_STR( 1C_2C ) )
PORT_MODIFY("SWG")
PORT_DIPNAME( 0x0c, 0x04, "Guesses" ) PORT_DIPLOCATION("G1:3,4")
PORT_DIPSETTING( 0x00, "2" )
PORT_DIPSETTING( 0x04, "3" )
PORT_DIPSETTING( 0x08, "4" )
PORT_DIPSETTING( 0x0c, "5" )
INPUT_PORTS_END
static INPUT_PORTS_START( gimeabrk )
PORT_INCLUDE( stocker )
PORT_MODIFY("SWH")
BALSENTE_COINAGE_ALT
PORT_MODIFY("SWG")
PORT_DIPNAME( 0x03, 0x01, "Bonus Shot" ) PORT_DIPLOCATION("G1:1,2")
PORT_DIPSETTING( 0x00, "Every 6 Balls" )
PORT_DIPSETTING( 0x01, "Every 8 Balls" )
PORT_DIPSETTING( 0x02, "Every 10 Balls" )
PORT_DIPSETTING( 0x03, "Every 12 Balls" )
PORT_DIPNAME( 0x0c, 0x08, "Initial Shots" ) PORT_DIPLOCATION("G1:3,4")
PORT_DIPSETTING( 0x00, "8" )
PORT_DIPSETTING( 0x04, "10" )
PORT_DIPSETTING( 0x08, "12" )
PORT_DIPSETTING( 0x0c, "14" )
PORT_DIPNAME( 0x10, 0x00, "Players Per Credit" ) PORT_DIPLOCATION("G1:5")
PORT_DIPSETTING( 0x00, "1" )
PORT_DIPSETTING( 0x10, "1 Or 2" )
PORT_DIPNAME( 0x20, 0x20, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("G1:6")
PORT_DIPSETTING( 0x20, DEF_STR( Upright ) )
PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) )
PORT_DIPNAME( 0x40, 0x40, "High Scores" ) PORT_DIPLOCATION("G1:7")
PORT_DIPSETTING( 0x40, "Keep Top 5" )
PORT_DIPSETTING( 0x00, "Keep All" )
PORT_MODIFY("IN0")
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL
PORT_MODIFY("IN1")
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 )
PORT_BIT( 0x30, IP_ACTIVE_LOW, IPT_UNUSED )
/* Player 1 Trackball, Cocktail acts as Player 2*/
PORT_MODIFY("AN0")
PORT_BIT( 0xff, 0, IPT_TRACKBALL_Y ) PORT_SENSITIVITY(100) PORT_KEYDELTA(20) PORT_RESET PORT_PLAYER(1)
PORT_MODIFY("AN1")
PORT_BIT( 0xff, 0, IPT_TRACKBALL_X ) PORT_SENSITIVITY(100) PORT_KEYDELTA(20) PORT_RESET PORT_REVERSE PORT_PLAYER(1)
/* Player 2 Trackball, Cocktail acts as Player 1 */
PORT_MODIFY("AN2")
PORT_BIT( 0xff, 0, IPT_TRACKBALL_Y ) PORT_COCKTAIL PORT_SENSITIVITY(100) PORT_KEYDELTA(20) PORT_RESET PORT_PLAYER(2)
PORT_MODIFY("AN3")
PORT_BIT( 0xff, 0, IPT_TRACKBALL_X ) PORT_COCKTAIL PORT_SENSITIVITY(100) PORT_KEYDELTA(20) PORT_RESET PORT_REVERSE PORT_PLAYER(2)
INPUT_PORTS_END
static INPUT_PORTS_START( minigolf )
PORT_INCLUDE( stocker )
PORT_MODIFY("SWH")
BALSENTE_COINAGE_ALT2
PORT_MODIFY("SWG")
PORT_DIPNAME( 0x01, 0x01, "Add-A-Coin" ) PORT_DIPLOCATION("G1:1")
PORT_DIPSETTING( 0x01, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_DIPNAME( 0x02, 0x02, "Display Kids" ) PORT_DIPLOCATION("G1:2")
PORT_DIPSETTING( 0x02, DEF_STR( No ) )
PORT_DIPSETTING( 0x00, DEF_STR( Yes ) )
PORT_DIPNAME( 0x04, 0x04, "Kid On Left Located" ) PORT_DIPLOCATION("G1:3")
PORT_DIPSETTING( 0x04, DEF_STR( No ) )
PORT_DIPSETTING( 0x00, DEF_STR( Yes ) )
PORT_DIPNAME( 0x08, 0x08, "Kid On Right Located" ) PORT_DIPLOCATION("G1:4")
PORT_DIPSETTING( 0x08, DEF_STR( No ) )
PORT_DIPSETTING( 0x00, DEF_STR( Yes ) )
PORT_DIPUNKNOWN_DIPLOC( 0x10, 0x10, "G1:5" )
PORT_DIPUNKNOWN_DIPLOC( 0x20, 0x20, "G1:6" )
PORT_DIPUNKNOWN_DIPLOC( 0x40, 0x40, "G1:7" )
PORT_MODIFY("IN1")
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START3 )
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START4 )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 )
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED )
/* Player 1 Trackball */
PORT_MODIFY("AN2")
PORT_BIT( 0xff, 0, IPT_TRACKBALL_Y ) PORT_SENSITIVITY(100) PORT_KEYDELTA(20) PORT_RESET PORT_PLAYER(1)
PORT_MODIFY("AN3")
PORT_BIT( 0xff, 0, IPT_TRACKBALL_X ) PORT_SENSITIVITY(100) PORT_KEYDELTA(20) PORT_RESET PORT_REVERSE PORT_PLAYER(1)
INPUT_PORTS_END
static INPUT_PORTS_START( minigolf2 )
PORT_INCLUDE( minigolf )
PORT_MODIFY("SWH")
BALSENTE_COINAGE_ALT
PORT_MODIFY("SWG")
PORT_DIPUNKNOWN_DIPLOC( 0x02, 0x02, "G1:2" )
PORT_DIPUNKNOWN_DIPLOC( 0x04, 0x04, "G1:3" )
PORT_DIPUNKNOWN_DIPLOC( 0x08, 0x08, "G1:4" )
INPUT_PORTS_END
static INPUT_PORTS_START( toggle )
PORT_INCLUDE( sentetst )
PORT_MODIFY("SWG")
PORT_DIPUNUSED_DIPLOC( 0x01, 0x01, "G1:1" )
PORT_DIPUNUSED_DIPLOC( 0x02, 0x02, "G1:2" )
PORT_DIPNAME( 0x04, 0x04, DEF_STR( Lives ) ) PORT_DIPLOCATION("G1:3")
PORT_DIPSETTING( 0x00, "2" )
PORT_DIPSETTING( 0x04, "3" )
PORT_DIPUNUSED_DIPLOC( 0x08, 0x08, "G1:4" )
PORT_DIPUNUSED_DIPLOC( 0x10, 0x10, "G1:5" )
PORT_DIPUNUSED_DIPLOC( 0x20, 0x20, "G1:6" )
PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "G1:7" )
PORT_MODIFY("IN0")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1)
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1)
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1)
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 )
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
PORT_MODIFY("IN1")
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2)
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2)
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2)
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2)
PORT_MODIFY("AN2")
UNUSED_ANALOG
PORT_MODIFY("AN3")
UNUSED_ANALOG
INPUT_PORTS_END
static INPUT_PORTS_START( nametune )
PORT_INCLUDE( stocker )
PORT_MODIFY("SWH")
PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) ) PORT_DIPLOCATION("H1:1,2")
PORT_DIPSETTING( 0x02, DEF_STR( 2C_1C ) )
PORT_DIPSETTING( 0x03, DEF_STR( 3C_2C ) )
PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) )
PORT_DIPSETTING( 0x01, DEF_STR( 1C_2C ) )
PORT_MODIFY("SWG")
PORT_DIPUNKNOWN_DIPLOC( 0x01, 0x01, "G1:1" )
PORT_DIPUNKNOWN_DIPLOC( 0x02, 0x02, "G1:2" )
PORT_DIPUNKNOWN_DIPLOC( 0x04, 0x04, "G1:3" )
PORT_DIPUNKNOWN_DIPLOC( 0x08, 0x08, "G1:4" )
PORT_DIPUNKNOWN_DIPLOC( 0x10, 0x10, "G1:5" )
PORT_DIPUNKNOWN_DIPLOC( 0x20, 0x20, "G1:6" )
PORT_DIPUNKNOWN_DIPLOC( 0x40, 0x40, "G1:7" )
PORT_MODIFY("IN0")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("P1 Blue Button") PORT_PLAYER(1)
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("P1 Green Button") PORT_PLAYER(1)
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("P1 Yellow Button") PORT_PLAYER(1)
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("P1 Red Button") PORT_PLAYER(1)
PORT_BIT( 0x30, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_MODIFY("IN1")