/
skylncr.cpp
2522 lines (2156 loc) · 108 KB
/
skylncr.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:Roberto Fresca, David Haywood
/***************************************************************************************************
Sky Lancer / Butterfly / Mad Zoo / Super Star 97 and others...
Bordun International.
Original preliminary driver by Luca Elia.
Additional Work: Roberto Fresca & David Haywood.
****************************************************************************************************
Notes:
- There are at least 3 different PCBs: Rolla, Sky and Cleco.
- Some of the tiles look badly scaled down, and others appear to have columns swapped.
This might actually be correct due to different gfx encoding for different PCBs.
- Skylncr and madzoo can run with the same program roms, they're basically graphics swaps.
- To enter the Service Mode, press F2. All the game settings are there.
Change regular values using DIP switches, and jackpot value using STOP2 and STOP3.
To exit the mode, press START. You must reset the machine (F3) to update the changes.
- Press key 0 to navigate between statistics pages. Press START to exit the mode.
****************************************************************************************************
Settings:
Pressing F2, you can enter the DIP switches settings.
Here the translated items:
.---------------------------------------.
| DIP Switches Settings |
| |
| Main Game % Double-Up % |
| Clown % Reels Speed |
| Coin Scores Key In Scores |
| Payout Limit Key Out Score |
| Max Bet Min Bet |
| Special Bonus % Super Star % |
| Bonus Base Max Win Bonus |
| Double-Up Y/N Bonus Scores |
| |
'---------------------------------------'
'Special Bonus' and 'Super Star' appearance, are per 1000.
You also can find the MAME DIP switches menu already translated.
The <unknown> items still need translation.
Press START (key 1) to exit the mode.
Bookkeeping:
Pressing BOOKKEEPING (key 0), you enter the Record Mode.
Here the translated items:
.---------------------------------------.
| Record Menu |
| |
| Play Scores Key In Total |
| Win Scores Key Out Total |
| Play Times Coin In Total |
| Win Times Coin Out Total |
| Bonus Scores Short Total |
| Double Play Special Times |
| Double Win Super Show Up |
| Win Times Power On Times |
| Loss Times Working Time H M |
| |
| Version XXXXX |
'---------------------------------------'
Pressing BOOKKEEPING key again, you can find 2 screens showing
all statistics and the whole history by winning hand.
Press START (key 1) to exit the mode.
****************************************************************************************************
Game specific notes...
* Sonik Fighter
The game is encrypted, and runs with an obfuscated daughterboard in place of the CPU.
Even when I have the attract working, accepting coins, getting sounds and accurate inputs,
the game is still not working. Once coined, there's no way to start a game.
The PPI0 port B, D5 input line behaves like a reset, when the Attract/Girls DSW is set OFF.
Need more investigation about...
Colors are wrong due to can't find a way to set the palette.
* Magical Butterfly
Some of the inputs are merged, and there is an extra output port that seems to handle lamps and
a rather simple form of protection that also involves one of the PPI1 input lines.
To enter the Service Mode or Bookkeeping Menu, hold down Stop Reel 2/Up and Take along with the
specific inputs.
* 蝴蝶梦 97 (Húdié Mèng 97)
The program code has trivial opcode encryption which has been broken. However, the inputs tend
to act out of control at many times. This may have to do with the large number of unknown reads
and writes to an I/O port at $66.
****************************************************************************************************
TODO:
- Proper M5M82C255 device emulation.
- Colors: Find the palette in the Z Games' sets.
***************************************************************************************************/
#include "emu.h"
#include "cpu/z80/z80.h"
#include "machine/i8255.h"
#include "machine/nvram.h"
#include "machine/ticket.h"
#include "sound/ay8910.h"
#include "video/ramdac.h"
#include "emupal.h"
#include "screen.h"
#include "speaker.h"
#include "tilemap.h"
#include <algorithm>
namespace {
#define HOPPER_PULSE 50 // guessed
class skylncr_state : public driver_device
{
public:
skylncr_state(const machine_config &mconfig, device_type type, const char *tag) :
driver_device(mconfig, type, tag),
m_videoram(*this, "videoram"),
m_colorram(*this, "colorram"),
m_reeltiles_ram(*this, "reeltiles_ram.%u", 0U),
m_reeltileshigh_ram(*this, "rthigh_ram.%u", 0U),
m_reelscroll(*this, "reelscroll.%u", 0U),
m_maincpu(*this, "maincpu"),
m_gfxdecode(*this, "gfxdecode"),
m_palette(*this, "palette"),
m_hopper(*this, "hopper"),
m_lamps(*this, "lamp%u", 1U),
m_decrypted_opcodes(*this, "decrypted_opcodes")
{ }
void neraidou(machine_config &config);
void sstar97(machine_config &config);
void bdream97(machine_config &config);
void skylncr(machine_config &config);
void mbutrfly(machine_config &config);
void olymp(machine_config &config);
void init_blshark();
void init_butrfly();
void init_leadera();
void init_mbutrfly() { save_item(NAME(m_mbutrfly_prot)); }
void init_miaction();
void init_olymp();
void init_sonikfig();
void init_speedway();
void init_speedwaya();
void init_superb2k();
int mbutrfly_prot_r();
protected:
virtual void machine_start() override;
virtual void video_start() override;
private:
void videoram_w(offs_t offset, uint8_t data);
void colorram_w(offs_t offset, uint8_t data);
template<uint8_t Which> void reeltiles_w(offs_t offset, uint8_t data);
template<uint8_t Which> void reeltileshigh_w(offs_t offset, uint8_t data);
template<uint8_t Which> void reelscroll_w(offs_t offset, uint8_t data);
void coin_w(uint8_t data);
uint8_t ret_ff() { return 0xff; }
[[maybe_unused]] uint8_t ret_00() { return 0x00; }
void nmi_enable_w(uint8_t data);
void mbutrfly_prot_w(uint8_t data);
uint8_t bdream97_opcode_r(offs_t offset);
TILE_GET_INFO_MEMBER(get_tile_info);
template<uint8_t Which> TILE_GET_INFO_MEMBER(get_reel_tile_info);
uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
INTERRUPT_GEN_MEMBER(vblank_interrupt);
void bdream97_opcode_map(address_map &map);
void olymp_opcode_map(address_map &map);
void io_map_mbutrfly(address_map &map);
void io_map_skylncr(address_map &map);
void mem_map(address_map &map);
void ramdac2_map(address_map &map);
void ramdac_map(address_map &map);
tilemap_t *m_tmap = nullptr;
required_shared_ptr<uint8_t> m_videoram;
required_shared_ptr<uint8_t> m_colorram;
required_shared_ptr_array<uint8_t, 4> m_reeltiles_ram;
required_shared_ptr_array<uint8_t, 4> m_reeltileshigh_ram;
tilemap_t *m_reel_tilemap[4]{};
required_shared_ptr_array<uint8_t, 4> m_reelscroll;
uint8_t m_nmi_enable = 0;
bool m_mbutrfly_prot = false;
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
required_device<palette_device> m_palette;
required_device<ticket_dispenser_device> m_hopper;
output_finder<7> m_lamps;
optional_shared_ptr<uint8_t> m_decrypted_opcodes;
};
/**************************************
* Video Hardware *
**************************************/
void skylncr_state::videoram_w(offs_t offset, uint8_t data)
{
m_videoram[offset] = data;
m_tmap->mark_tile_dirty(offset);
}
void skylncr_state::colorram_w(offs_t offset, uint8_t data)
{
m_colorram[offset] = data;
m_tmap->mark_tile_dirty(offset);
}
TILE_GET_INFO_MEMBER(skylncr_state::get_tile_info)
{
uint16_t code = m_videoram[tile_index] + (m_colorram[tile_index] << 8);
int pal = (code & 0x8000) >> 15;
tileinfo.set(0, code, pal^1, TILE_FLIPYX( 0 ));
}
template<uint8_t Which>
TILE_GET_INFO_MEMBER(skylncr_state::get_reel_tile_info)
{
uint16_t code = m_reeltiles_ram[Which][tile_index] + (m_reeltileshigh_ram[Which][tile_index] << 8);
int pal = (code & 0x8000) >> 15;
tileinfo.set(1, Which == 0 ? code & 0x7fff : code, pal^1, TILE_FLIPYX( 0 ));
}
void skylncr_state::machine_start()
{
m_lamps.resolve();
save_item(NAME(m_nmi_enable));
m_nmi_enable = 0;
}
void skylncr_state::video_start()
{
m_tmap = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(*this, FUNC(skylncr_state::get_tile_info)), TILEMAP_SCAN_ROWS, 8, 8, 0x40, 0x20 );
m_reel_tilemap[0] = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(*this, FUNC(skylncr_state::get_reel_tile_info<0>)), TILEMAP_SCAN_ROWS, 8, 32, 64, 8 );
m_reel_tilemap[1] = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(*this, FUNC(skylncr_state::get_reel_tile_info<1>)), TILEMAP_SCAN_ROWS, 8, 32, 64, 8 );
m_reel_tilemap[2] = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(*this, FUNC(skylncr_state::get_reel_tile_info<2>)), TILEMAP_SCAN_ROWS, 8, 32, 64, 8 );
m_reel_tilemap[3] = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(*this, FUNC(skylncr_state::get_reel_tile_info<3>)), TILEMAP_SCAN_ROWS, 8, 32, 64, 8 );
m_reel_tilemap[1]->set_scroll_cols(0x40);
m_reel_tilemap[2]->set_scroll_cols(0x40);
m_reel_tilemap[3]->set_scroll_cols(0x40);
m_reel_tilemap[1]->set_transparent_pen(0);
m_reel_tilemap[2]->set_transparent_pen(0);
m_reel_tilemap[3]->set_transparent_pen(0);
m_tmap->set_transparent_pen(0);
}
uint32_t skylncr_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
{
bitmap.fill(rgb_t::black(), cliprect);
m_reel_tilemap[0]->draw(screen, bitmap, cliprect, 0, 0);
// are these hardcoded, or registers?
const rectangle visible1(0*8, (16+48)*8-1, 4*8, (4+7)*8-1);
const rectangle visible2(0*8, (16+48)*8-1, 12*8, (12+7)*8-1);
const rectangle visible3(0*8, (16+48)*8-1, 20*8, (20+7)*8-1);
for (int i= 0;i < 64;i++)
{
m_reel_tilemap[1]->set_scrolly(i, m_reelscroll[1][i]);
m_reel_tilemap[2]->set_scrolly(i, m_reelscroll[2][i]);
m_reel_tilemap[3]->set_scrolly(i, m_reelscroll[3][i]);
}
m_reel_tilemap[1]->draw(screen, bitmap, visible1, 0, 0);
m_reel_tilemap[2]->draw(screen, bitmap, visible2, 0, 0);
m_reel_tilemap[3]->draw(screen, bitmap, visible3, 0, 0);
m_tmap->draw(screen, bitmap, cliprect, 0, 0);
return 0;
}
template<uint8_t Which>
void skylncr_state::reeltiles_w(offs_t offset, uint8_t data)
{
m_reeltiles_ram[Which][offset] = data;
m_reel_tilemap[Which]->mark_tile_dirty(offset);
}
template<uint8_t Which>
void skylncr_state::reeltileshigh_w(offs_t offset, uint8_t data)
{
m_reeltileshigh_ram[Which][offset] = data;
m_reel_tilemap[Which]->mark_tile_dirty(offset);
}
template<uint8_t Which>
void skylncr_state::reelscroll_w(offs_t offset, uint8_t data)
{
m_reelscroll[Which][offset] = data;
}
/************************************
* Other Handlers *
************************************/
void skylncr_state::coin_w(uint8_t data)
{
machine().bookkeeping().coin_counter_w(0, data & 0x04);
m_hopper->motor_w(data & 0x20);
}
void skylncr_state::nmi_enable_w(uint8_t data)
{
m_nmi_enable = data & 0x10;
}
void skylncr_state::mbutrfly_prot_w(uint8_t data)
{
m_lamps[0] = BIT(data, 0); // Slot Stop 2
m_lamps[1] = BIT(data, 1); // Slot Stop 1
m_lamps[2] = BIT(data, 2); // Take
m_lamps[3] = BIT(data, 3); // Bet
m_lamps[4] = BIT(data, 4); // Slot Stop 3
m_lamps[5] = BIT(data, 5); // Start
m_lamps[6] = BIT(data, 6); // Payout
m_mbutrfly_prot = BIT(data, 7);
}
int skylncr_state::mbutrfly_prot_r()
{
return m_mbutrfly_prot;
}
uint8_t skylncr_state::bdream97_opcode_r(offs_t offset)
{
auto dis = machine().disable_side_effects();
return m_maincpu->space(AS_PROGRAM).read_byte(offset) ^ 0x80;
}
/**************************************
* Memory Map *
**************************************/
void skylncr_state::mem_map(address_map &map)
{
map(0x0000, 0x7fff).rom();
map(0x8000, 0x87ff).ram().share("nvram");
map(0x8800, 0x8fff).ram().w(FUNC(skylncr_state::videoram_w)).share(m_videoram);
map(0x9000, 0x97ff).ram().w(FUNC(skylncr_state::colorram_w)).share(m_colorram);
map(0x9800, 0x99ff).ram().w(FUNC(skylncr_state::reeltiles_w<0>)).share(m_reeltiles_ram[0]);
map(0x9a00, 0x9bff).ram().w(FUNC(skylncr_state::reeltiles_w<1>)).share(m_reeltiles_ram[1]);
map(0x9c00, 0x9dff).ram().w(FUNC(skylncr_state::reeltiles_w<2>)).share(m_reeltiles_ram[2]);
map(0x9e00, 0x9fff).ram().w(FUNC(skylncr_state::reeltiles_w<3>)).share(m_reeltiles_ram[3]);
map(0xa000, 0xa1ff).ram().w(FUNC(skylncr_state::reeltileshigh_w<0>)).share(m_reeltileshigh_ram[0]);
map(0xa200, 0xa3ff).ram().w(FUNC(skylncr_state::reeltileshigh_w<1>)).share(m_reeltileshigh_ram[1]);
map(0xa400, 0xa5ff).ram().w(FUNC(skylncr_state::reeltileshigh_w<2>)).share(m_reeltileshigh_ram[2]);
map(0xa600, 0xa7ff).ram().w(FUNC(skylncr_state::reeltileshigh_w<3>)).share(m_reeltileshigh_ram[3]);
map(0xaa55, 0xaa55).r(FUNC(skylncr_state::ret_ff));
map(0xb000, 0xb03f).mirror(0x1c0).ram().w(FUNC(skylncr_state::reelscroll_w<0>)).share(m_reelscroll[0]);
map(0xb200, 0xb23f).mirror(0x1c0).ram().w(FUNC(skylncr_state::reelscroll_w<1>)).share(m_reelscroll[1]);
map(0xb400, 0xb43f).mirror(0x1c0).ram().w(FUNC(skylncr_state::reelscroll_w<2>)).share(m_reelscroll[2]);
map(0xb600, 0xb63f).mirror(0x1c0).ram().w(FUNC(skylncr_state::reelscroll_w<3>)).share(m_reelscroll[3]);
map(0xc000, 0xffff).rom();
}
void skylncr_state::io_map_skylncr(address_map &map)
{
map.global_mask(0xff);
map(0x00, 0x03).rw("ppi8255_0", FUNC(i8255_device::read), FUNC(i8255_device::write)); // Input Ports
map(0x10, 0x13).rw("ppi8255_1", FUNC(i8255_device::read), FUNC(i8255_device::write)); // Input Ports
map(0x20, 0x20).w(FUNC(skylncr_state::coin_w));
map(0x30, 0x31).w("aysnd", FUNC(ay8910_device::address_data_w));
map(0x31, 0x31).r("aysnd", FUNC(ay8910_device::data_r));
map(0x40, 0x40).w("ramdac", FUNC(ramdac_device::index_w));
map(0x41, 0x41).w("ramdac", FUNC(ramdac_device::pal_w));
map(0x42, 0x42).w("ramdac", FUNC(ramdac_device::mask_w));
map(0x50, 0x50).w("ramdac2", FUNC(ramdac_device::index_w));
map(0x51, 0x51).w("ramdac2", FUNC(ramdac_device::pal_w));
map(0x52, 0x52).w("ramdac2", FUNC(ramdac_device::mask_w));
map(0x70, 0x70).w(FUNC(skylncr_state::nmi_enable_w));
}
void skylncr_state::io_map_mbutrfly(address_map &map)
{
map.global_mask(0xff);
io_map_skylncr(map);
map(0x60, 0x60).w(FUNC(skylncr_state::mbutrfly_prot_w));
}
void skylncr_state::bdream97_opcode_map(address_map &map)
{
map(0x0000, 0xffff).r(FUNC(skylncr_state::bdream97_opcode_r));
}
void skylncr_state::olymp_opcode_map(address_map &map)
{
map(0x0000, 0xffff).rom().share(m_decrypted_opcodes);
}
void skylncr_state::ramdac_map(address_map &map)
{
map(0x000, 0x3ff).rw("ramdac", FUNC(ramdac_device::ramdac_pal_r), FUNC(ramdac_device::ramdac_rgb666_w));
}
void skylncr_state::ramdac2_map(address_map &map)
{
map(0x000, 0x3ff).rw("ramdac2", FUNC(ramdac_device::ramdac_pal_r), FUNC(ramdac_device::ramdac_rgb666_w));
}
/***************************************
* Graphics Layouts *
***************************************/
static const gfx_layout layout8x8x8 =
{
8,8,
RGN_FRAC(1,2),
8,
{ STEP8(0,1) },
{
8*0,8*1,
RGN_FRAC(1,2)+8*0,RGN_FRAC(1,2)+8*1,
8*2,8*3,
RGN_FRAC(1,2)+8*2,RGN_FRAC(1,2)+8*3
},
{ STEP8(0,8*4) },
8*8*4
};
static const gfx_layout layout8x8x8_alt = // for sstar97
{
8,8,
RGN_FRAC(1,2),
8,
{ STEP8(0,1) },
{
8*0,RGN_FRAC(1,2)+8*0,
8*1,RGN_FRAC(1,2)+8*1,
8*2,RGN_FRAC(1,2)+8*2,
8*3,RGN_FRAC(1,2)+8*3
},
{ STEP8(0,8*4) },
8*8*4
};
static const gfx_layout layout8x8x8_bdream97 = // for bdream97
{
8,8,
RGN_FRAC(1,2),
8,
{ STEP8(0,1) },
{
8*0,RGN_FRAC(1,2)+8*0,
RGN_FRAC(1,2)+8*1,8*1,
8*2,RGN_FRAC(1,2)+8*2,
RGN_FRAC(1,2)+8*3,8*3
},
{ STEP8(0,8*4) },
8*8*4
};
static const gfx_layout layout8x32x8 =
{
8,32,
RGN_FRAC(1,2),
8,
{ STEP8(0,1) },
{
8*0, 8*1,
RGN_FRAC(1,2)+8*0, RGN_FRAC(1,2)+8*1,
8*2, 8*3,
RGN_FRAC(1,2)+8*2, RGN_FRAC(1,2)+8*3
},
{
STEP16(0,8*4),
STEP16(16*8*4,8*4)
},
8*32*8/2
};
/* this will decode the big x2 x3 'correctly' however, maybe they're
simply not meant to appear correct? */
static const gfx_layout layout8x32x8_rot =
{
8,32,
RGN_FRAC(1,2),
8,
{ STEP8(0,1) },
{
8*0, 8*1,
RGN_FRAC(1,2)+8*1, RGN_FRAC(1,2)+8*0,
8*2, 8*3,
RGN_FRAC(1,2)+8*3, RGN_FRAC(1,2)+8*2
},
{
STEP16(0,8*4),
STEP16(16*8*4,8*4)
},
8*32*8/2
};
static const gfx_layout layout8x32x8_alt = // for sstar97
{
8,32,
RGN_FRAC(1,2),
8,
{ STEP8(0,1) },
{
RGN_FRAC(1,2)+8*1, 8*1,
8*0, RGN_FRAC(1,2)+8*0,
RGN_FRAC(1,2)+8*3, 8*3,
8*2, RGN_FRAC(1,2)+8*2
},
{
STEP16(0,8*4),
STEP16(16*8*4,8*4)
},
8*32*8/2
};
static const gfx_layout layout8x32x8_alt2 = // for neraidov
{
8,32,
RGN_FRAC(1,2),
8,
{ STEP8(0,1) },
{
RGN_FRAC(1,2)+8*1, 8*1,
RGN_FRAC(1,2)+8*0, 8*0,
RGN_FRAC(1,2)+8*3, 8*3,
RGN_FRAC(1,2)+8*2, 8*2
},
{
STEP16(0,8*4),
STEP16(16*8*4,8*4)
},
8*32*8/2
};
static const gfx_layout layout8x32x8_bdream97 = // for bdream97
{
8,32,
RGN_FRAC(1,2),
8,
{ STEP8(0,1) },
{
8*1, RGN_FRAC(1,2)+8*1,
8*0, RGN_FRAC(1,2)+8*0,
8*3, RGN_FRAC(1,2)+8*3,
8*2, RGN_FRAC(1,2)+8*2
},
{
STEP16(0,8*4),
STEP16(16*8*4,8*4)
},
8*32*8/2
};
/**************************************
* Graphics Decode *
**************************************/
static GFXDECODE_START( gfx_skylncr )
GFXDECODE_ENTRY( "gfx1", 0, layout8x8x8, 0, 2 )
GFXDECODE_ENTRY( "gfx2", 0, layout8x32x8, 0, 2 )
GFXDECODE_ENTRY( "gfx2", 0, layout8x32x8_rot, 0, 2 )
GFXDECODE_END
static GFXDECODE_START( gfx_neraidou )
GFXDECODE_ENTRY( "gfx1", 0, layout8x8x8_alt, 0, 2 )
GFXDECODE_ENTRY( "gfx2", 0, layout8x32x8_alt2, 0, 2 )
// GFXDECODE_ENTRY( "gfx2", 0, layout8x32x8_alt, 0x100, 1 )
GFXDECODE_END
static GFXDECODE_START( gfx_sstar97 )
GFXDECODE_ENTRY( "gfx1", 0, layout8x8x8_alt, 0, 2 )
GFXDECODE_ENTRY( "gfx2", 0, layout8x32x8_alt, 0, 2 )
GFXDECODE_ENTRY( "gfx2", 0, layout8x32x8_alt, 0x100, 1 )
GFXDECODE_END
static GFXDECODE_START( gfx_bdream97 )
GFXDECODE_ENTRY( "gfx1", 0, layout8x8x8_bdream97, 0, 2 )
GFXDECODE_ENTRY( "gfx2", 0, layout8x32x8_bdream97, 0, 2 )
GFXDECODE_ENTRY( "gfx2", 0, layout8x32x8_bdream97, 0x100, 1 )
GFXDECODE_END
/***********************************
* Input Ports *
***********************************/
static INPUT_PORTS_START( skylncr )
PORT_START("IN1") // $00 (PPI0 port A)
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SLOT_STOP2)
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN)
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SLOT_STOP1)
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN)
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SLOT_STOP3)
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN)
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN)
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN)
PORT_START("IN2") // $01 (PPI0 port B)
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_GAMBLE_BET)
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN)
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_GAMBLE_LOW) PORT_NAME("Down/Low")
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN)
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1) PORT_NAME("Start")
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN)
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN)
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN)
PORT_START("IN3") // $11 (PPI1 port B)
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(2)
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_IMPULSE(2)
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN3 ) PORT_IMPULSE(2)
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_GAMBLE_KEYIN )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_GAMBLE_HIGH) PORT_NAME("Up/High")
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_GAMBLE_D_UP )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_GAMBLE_TAKE ) PORT_NAME("Take Score")
PORT_START("IN4") // $12 (PPI1 port C)
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN)
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MEMORY_RESET )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_GAMBLE_BOOK )
PORT_SERVICE_NO_TOGGLE( 0x08, IP_ACTIVE_LOW ) // Settings
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN)
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_CUSTOM) PORT_READ_LINE_DEVICE_MEMBER("hopper", ticket_dispenser_device, line_r)
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_GAMBLE_PAYOUT )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_GAMBLE_KEYOUT )
PORT_START("DSW1") // $02 (PPI0 port C)
PORT_DIPNAME( 0x11, 0x11, "D-UP Percentage" )
PORT_DIPSETTING( 0x11, "60%" )
PORT_DIPSETTING( 0x01, "70%" )
PORT_DIPSETTING( 0x10, "80%" )
PORT_DIPSETTING( 0x00, "90%" )
PORT_DIPNAME( 0x0e, 0x0e, "Main Game Percentage" )
PORT_DIPSETTING( 0x0e, "75%" )
PORT_DIPSETTING( 0x0c, "78%" )
PORT_DIPSETTING( 0x0a, "81%" )
PORT_DIPSETTING( 0x08, "84%" )
PORT_DIPSETTING( 0x06, "87%" )
PORT_DIPSETTING( 0x04, "90%" )
PORT_DIPSETTING( 0x02, "93%" )
PORT_DIPSETTING( 0x00, "96%" )
PORT_DIPNAME( 0x20, 0x20, "Reels Speed" )
PORT_DIPSETTING( 0x20, "Slow" )
PORT_DIPSETTING( 0x00, "Fast" )
PORT_DIPNAME( 0x40, 0x40, "Bonus Score" )
PORT_DIPSETTING( 0x40, "32" )
PORT_DIPSETTING( 0x00, "24" )
PORT_DIPNAME( 0x80, 0x00, "Key Out" )
PORT_DIPSETTING( 0x00, "x1" )
PORT_DIPSETTING( 0x80, "x100" )
PORT_START("DSW2") // $10 (PPI1 port A)
PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
PORT_DIPSETTING( 0x01, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) )
PORT_DIPSETTING( 0x02, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_DIPNAME( 0x04, 0x04, "Double-Up" )
PORT_DIPSETTING( 0x00, DEF_STR( No ) )
PORT_DIPSETTING( 0x04, DEF_STR( Yes ) )
PORT_DIPNAME( 0x18, 0x08, "Payout Limit" )
PORT_DIPSETTING( 0x00, "0" )
PORT_DIPSETTING( 0x18, "1000" )
PORT_DIPSETTING( 0x10, "2000" )
PORT_DIPSETTING( 0x08, "5000" )
PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) )
PORT_DIPSETTING( 0x20, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_DIPNAME( 0xc0, 0xc0, "Clown Percentage" )
PORT_DIPSETTING( 0xc0, "60%" )
PORT_DIPSETTING( 0x80, "70%" )
PORT_DIPSETTING( 0x40, "80%" )
PORT_DIPSETTING( 0x00, "90%" )
PORT_START("DSW3") // AY8910 port A
PORT_DIPNAME( 0x07, 0x07, "Coinage A, B & C" )
PORT_DIPSETTING( 0x00, "1 Coin / 1 Credit" )
PORT_DIPSETTING( 0x01, "1 Coin / 5 Credits" )
PORT_DIPSETTING( 0x02, "1 Coin / 10 Credits" )
PORT_DIPSETTING( 0x03, "1 Coin / 20 Credits" )
PORT_DIPSETTING( 0x04, "1 Coin / 30 Credits" )
PORT_DIPSETTING( 0x05, "1 Coin / 40 Credits" )
PORT_DIPSETTING( 0x06, "1 Coin / 50 Credits" )
PORT_DIPSETTING( 0x07, "1 Coin / 100 Credit" )
PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) )
PORT_DIPSETTING( 0x08, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) )
PORT_DIPSETTING( 0x10, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_DIPNAME( 0x20, 0x20, "Max Win Bonus" )
PORT_DIPSETTING( 0x20, "10000" )
PORT_DIPSETTING( 0x00, "20000" )
PORT_DIPNAME( 0xc0, 0xc0, "Minimum Bet" )
PORT_DIPSETTING( 0xc0, "0" )
PORT_DIPSETTING( 0x80, "8" )
PORT_DIPSETTING( 0x40, "16" )
PORT_DIPSETTING( 0x00, "32" )
PORT_START("DSW4") // AY8910 port B
PORT_DIPNAME( 0x07, 0x07, "Remote Credits" )
PORT_DIPSETTING( 0x00, "1 Pulse / 100 Credits" )
PORT_DIPSETTING( 0x01, "1 Pulse / 110 Credits" )
PORT_DIPSETTING( 0x02, "1 Pulse / 120 Credits" )
PORT_DIPSETTING( 0x03, "1 Pulse / 130 Credits" )
PORT_DIPSETTING( 0x04, "1 Pulse / 200 Credits" )
PORT_DIPSETTING( 0x05, "1 Pulse / 400 Credits" )
PORT_DIPSETTING( 0x06, "1 Pulse / 500 Credits" )
PORT_DIPSETTING( 0x07, "1 Pulse / 1000 Credits" )
PORT_DIPNAME( 0x18, 0x00, "Max Bet" )
PORT_DIPSETTING( 0x18, "32" )
PORT_DIPSETTING( 0x10, "64" )
PORT_DIPSETTING( 0x08, "72" )
PORT_DIPSETTING( 0x00, "80" )
PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) )
PORT_DIPSETTING( 0x20, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )
PORT_DIPSETTING( 0x40, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
PORT_DIPSETTING( 0x80, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
INPUT_PORTS_END
static INPUT_PORTS_START( mbutrfly )
PORT_INCLUDE(skylncr)
PORT_MODIFY("IN1") // $00 (PPI0 port A)
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN)
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN)
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN)
PORT_MODIFY("IN2") // $01 (PPI0 port B)
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SLOT_STOP3) PORT_NAME("Stop Reel 3, Down/Low")
PORT_MODIFY("IN3") // $11 (PPI1 port B)
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SLOT_STOP2) PORT_NAME("Stop Reel 2, Up/High")
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_SLOT_STOP1) PORT_NAME("Stop Reel 1, Double Up")
PORT_MODIFY("IN4") // $12 (PPI1 port C)
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_CUSTOM) PORT_READ_LINE_DEVICE_MEMBER(DEVICE_SELF, skylncr_state, mbutrfly_prot_r)
INPUT_PORTS_END
static INPUT_PORTS_START( leader )
PORT_START("IN1") // $00 (PPI0 port A)
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SLOT_STOP2)
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN)
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SLOT_STOP1)
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN)
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SLOT_STOP3)
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN)
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN)
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN)
PORT_START("IN2") // $01 (PPI0 port B)
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_GAMBLE_BET) PORT_NAME("Bet/Throttle")
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN)
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_GAMBLE_LOW) PORT_NAME("Down/Low")
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN)
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1) PORT_NAME("Start")
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN)
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN)
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN)
PORT_START("IN3") // $11 (PPI1 port B)
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(2)
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_IMPULSE(2)
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN3 ) PORT_IMPULSE(2)
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_GAMBLE_KEYIN )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_GAMBLE_HIGH) PORT_NAME("Up/High")
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_GAMBLE_D_UP )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_GAMBLE_TAKE ) PORT_NAME("Take Score")
PORT_START("IN4") // $12 (PPI1 port C)
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN)
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MEMORY_RESET )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_GAMBLE_BOOK )
PORT_SERVICE_NO_TOGGLE( 0x08, IP_ACTIVE_LOW ) // Settings
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN)
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_CUSTOM) PORT_READ_LINE_DEVICE_MEMBER("hopper", ticket_dispenser_device, line_r)
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_GAMBLE_PAYOUT )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_GAMBLE_KEYOUT )
PORT_START("DSW1") // $02 (PPI0 port C)
PORT_DIPNAME( 0x11, 0x11, "Butterfly Max Mul" ) PORT_DIPLOCATION("DSW-A:!4,!5")
PORT_DIPSETTING( 0x11, "5" )
PORT_DIPSETTING( 0x01, "7" )
PORT_DIPSETTING( 0x10, "8" )
PORT_DIPSETTING( 0x00, "12" )
PORT_DIPNAME( 0x0e, 0x00, "Main Win Rate" ) PORT_DIPLOCATION("DSW-A:!6,!7,!8")
PORT_DIPSETTING( 0x0e, "55%" )
PORT_DIPSETTING( 0x0c, "60%" )
PORT_DIPSETTING( 0x0a, "65%" )
PORT_DIPSETTING( 0x08, "70%" )
PORT_DIPSETTING( 0x06, "75%" )
PORT_DIPSETTING( 0x04, "80%" )
PORT_DIPSETTING( 0x02, "85%" )
PORT_DIPSETTING( 0x00, "90%" )
PORT_DIPNAME( 0x20, 0x00, "Reels Speed" ) PORT_DIPLOCATION("DSW-A:!3")
PORT_DIPSETTING( 0x20, "Slow" )
PORT_DIPSETTING( 0x00, "Fast" )
PORT_DIPNAME( 0x40, 0x00, "Bonus Score" ) PORT_DIPLOCATION("DSW-A:!2")
PORT_DIPSETTING( 0x40, "24" )
PORT_DIPSETTING( 0x00, "32" )
PORT_DIPNAME( 0x80, 0x00, "Key Out" ) PORT_DIPLOCATION("DSW-A:!1")
PORT_DIPSETTING( 0x00, "x1" )
PORT_DIPSETTING( 0x80, "x100" )
PORT_START("DSW2") // $10 (PPI1 port A)
PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) PORT_DIPLOCATION("DSW-B:1")
PORT_DIPSETTING( 0x01, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) PORT_DIPLOCATION("DSW-B:2")
PORT_DIPSETTING( 0x02, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_DIPNAME( 0x04, 0x04, "Double-Up" ) PORT_DIPLOCATION("DSW-B:3")
PORT_DIPSETTING( 0x00, DEF_STR( No ) )
PORT_DIPSETTING( 0x04, DEF_STR( Yes ) )
PORT_DIPNAME( 0x18, 0x18, "Refund Coin Limit" ) PORT_DIPLOCATION("DSW-B:4,5")
PORT_DIPSETTING( 0x00, "0" )
PORT_DIPSETTING( 0x18, "1000" )
PORT_DIPSETTING( 0x10, "2000" )
PORT_DIPSETTING( 0x08, "5000" )
PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) PORT_DIPLOCATION("DSW-B:6")
PORT_DIPSETTING( 0x20, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_DIPNAME( 0xc0, 0xc0, "Butterfly Win Rate" ) PORT_DIPLOCATION("DSW-B:7,8")
PORT_DIPSETTING( 0xc0, "15%" )
PORT_DIPSETTING( 0x80, "20%" )
PORT_DIPSETTING( 0x40, "25%" )
PORT_DIPSETTING( 0x00, "30%" )
PORT_START("DSW3") // AY8910 port A
PORT_DIPNAME( 0x07, 0x07, "Coinage A, B & C" ) PORT_DIPLOCATION("DSW-D:1,2,3")
PORT_DIPSETTING( 0x00, "1 Coin / 1 Credit" )
PORT_DIPSETTING( 0x01, "1 Coin / 5 Credits" )
PORT_DIPSETTING( 0x02, "1 Coin / 10 Credits" )
PORT_DIPSETTING( 0x03, "1 Coin / 20 Credits" )
PORT_DIPSETTING( 0x04, "1 Coin / 30 Credits" )
PORT_DIPSETTING( 0x05, "1 Coin / 40 Credits" )
PORT_DIPSETTING( 0x06, "1 Coin / 50 Credits" )
PORT_DIPSETTING( 0x07, "1 Coin / 100 Credit" )
PORT_DIPNAME( 0x18, 0x00, "Credit Limit" ) PORT_DIPLOCATION("DSW-D:4,5")
PORT_DIPSETTING( 0x00, "120000" )
PORT_DIPSETTING( 0x08, "100000" )
PORT_DIPSETTING( 0x10, "80000" )
PORT_DIPSETTING( 0x18, "50000" )
PORT_DIPNAME( 0x20, 0x20, "Max Win Bonus" ) PORT_DIPLOCATION("DSW-D:6")
PORT_DIPSETTING( 0x20, "10000" )
PORT_DIPSETTING( 0x00, "20000" )
PORT_DIPNAME( 0xc0, 0xc0, "Minimum Bet" ) PORT_DIPLOCATION("DSW-D:7,8")
PORT_DIPSETTING( 0xc0, "8" )
PORT_DIPSETTING( 0x80, "16" )
PORT_DIPSETTING( 0x40, "32" )
PORT_DIPSETTING( 0x00, "64" )
PORT_START("DSW4") // AY8910 port B
PORT_DIPNAME( 0x07, 0x07, "Remote Credits" ) PORT_DIPLOCATION("DSW-C:1,2,3")
PORT_DIPSETTING( 0x00, "1 Pulse / 100 Credits" )
PORT_DIPSETTING( 0x01, "1 Pulse / 110 Credits" )
PORT_DIPSETTING( 0x02, "1 Pulse / 120 Credits" )
PORT_DIPSETTING( 0x03, "1 Pulse / 130 Credits" )
PORT_DIPSETTING( 0x04, "1 Pulse / 200 Credits" )
PORT_DIPSETTING( 0x05, "1 Pulse / 400 Credits" )
PORT_DIPSETTING( 0x06, "1 Pulse / 500 Credits" )
PORT_DIPSETTING( 0x07, "1 Pulse / 1000 Credits" )
PORT_DIPNAME( 0x18, 0x18, "High Bet Limit" ) PORT_DIPLOCATION("DSW-C:4,5")
PORT_DIPSETTING( 0x18, "32" )
PORT_DIPSETTING( 0x10, "50" )
PORT_DIPSETTING( 0x08, "72" )
PORT_DIPSETTING( 0x00, "96" )
PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) PORT_DIPLOCATION("DSW-C:6")
PORT_DIPSETTING( 0x20, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) PORT_DIPLOCATION("DSW-C:7")
PORT_DIPSETTING( 0x40, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_DIPNAME( 0x80, 0x00, "Coin Lock" ) PORT_DIPLOCATION("DSW-C:8")
PORT_DIPSETTING( 0x80, "Locked" )
PORT_DIPSETTING( 0x00, "Normal" )
INPUT_PORTS_END
static INPUT_PORTS_START( neraidou )
PORT_START("IN1") // $00 (PPI0 port A)
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SLOT_STOP2)
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN)
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SLOT_STOP1)
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN)
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SLOT_STOP3)
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN)
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN)
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN)
PORT_START("IN2") // $01 (PPI0 port B)
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_GAMBLE_BET) PORT_NAME("Bet/Throttle")
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN)
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_GAMBLE_LOW) PORT_NAME("Down/Low")
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN)
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1) PORT_NAME("Start")
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN)
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN)
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN)
PORT_START("IN3") // $11 (PPI1 port B)
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(2)
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_IMPULSE(2)
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN3 ) PORT_IMPULSE(2)
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_GAMBLE_KEYIN )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_GAMBLE_HIGH) PORT_NAME("Up/High")
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_GAMBLE_D_UP )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_GAMBLE_TAKE ) PORT_NAME("Take Score")
PORT_START("IN4") // $12 (PPI1 port C)
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN)
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_MEMORY_RESET )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_GAMBLE_BOOK )
PORT_SERVICE_NO_TOGGLE( 0x08, IP_ACTIVE_LOW ) // Settings
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN)
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_CUSTOM) PORT_READ_LINE_DEVICE_MEMBER("hopper", ticket_dispenser_device, line_r)
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_GAMBLE_PAYOUT )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_GAMBLE_KEYOUT )
PORT_START("DSW1") // $02 (PPI0 port C)
PORT_DIPNAME( 0x01, 0x01, "Hardware Type (could be inverted)" ) // leave it off, otherwise the game works bad and resets
PORT_DIPSETTING( 0x01, "Rolla" )
PORT_DIPSETTING( 0x00, "Sky" )
PORT_DIPNAME( 0x0e, 0x0e, "Main Game Percentage" )
PORT_DIPSETTING( 0x0e, "91%" )
PORT_DIPSETTING( 0x0c, "92%" )
PORT_DIPSETTING( 0x0a, "93%" )
PORT_DIPSETTING( 0x08, "94%" )