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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
|
// license:BSD-3-Clause
// copyright-holders:Phil Stroffolino
/***************************************************************************
Break Thru Doc. Data East (1986)
driver by Phil Stroffolino
UNK-1.1 (16Kb) Code (4000-7FFF)
UNK-1.2 (32Kb) Main 6809 (8000-FFFF)
UNK-1.3 (32Kb) Mapped (2000-3FFF)
UNK-1.4 (32Kb) Mapped (2000-3FFF)
UNK-1.5 (32Kb) Sound 6809 (8000-FFFF)
Background has 4 banks, with 256 16x16x8 tiles in each bank.
UNK-1.6 (32Kb) GFX Background
UNK-1.7 (32Kb) GFX Background
UNK-1.8 (32Kb) GFX Background
UNK-1.9 (32Kb) GFX Sprites
UNK-1.10 (32Kb) GFX Sprites
UNK-1.11 (32Kb) GFX Sprites
Text has 256 8x8x4 characters.
UNK-1.12 (8Kb) GFX Text
**************************************************************************
Memory Map for Main CPU by Carlos A. Lozano
**************************************************************************
MAIN CPU
0000-03FF W Plane0
0400-0BFF R/W RAM
0C00-0FFF W Plane2(Background)
1000-10FF W Plane1(sprites)
1100-17FF R/W RAM
1800-180F R/W In/Out
1810-1FFF R/W RAM (unmapped?)
2000-3FFF R ROM Mapped(*)
4000-7FFF R ROM(UNK-1.1)
8000-FFFF R ROM(UNK-1.2)
Interrupts: Reset, NMI, IRQ
The test routine is at F000
Sound: YM2203 and YM3526 driven by 6809. Sound added by Bryan McPhail, 1/4/98.
2008-07
Dip locations verified with manual for brkthru (US conv. kit) and darwin
Darwin 4078 PCB layout
f205v
Darwin 4078
Data East, 1986
----------
|----------------------|
| Fully boxed = socket |
|----------------------|
| separation = solder
upper PCB - 3002A
|-------------------------------------------------|
|t |-------| |
|o |---------| |YM2203C| |
| |prom28s42| |-------| |
|l |---------| |YM3526 |C
|o |-----| |O
|w |-----| |epr5 | |N
|e |epr8 | |-----| |N
|r |-----| |E
| |epr7 | |HD68A09P |C
| |-----| |-----| |T
|t |epr6 | |epr4 | |O
|o |-----| |-----| |R
| |--------| |epr3 | |
|l |HD6809EP| |-----| |
|o |--------| |epr2 | dip 8x |
|w |-----| dip 8x |
|e |epr1 | |
|r |-----| |
|-------------------------------------------------|
Notes:
Chips:
HD68A09P : 3G1-UL-HD68A09P Japan (DIP40)
HD6809EP : 5M1-HD6809EP Japan (DIP40)
YM2203C : Yamaha YM2203C-5X-18-89-F (DIP40)
YM3526 : Yamaha YM3526-61-09-75-E (DIP40)
ROMs:
1,2,3,5,6,7,8 : Intel IP27256
4 : M27128Z-N
prom : TBP28S42N
Connectors:
2x flat cable to upper board
1x NON-JAMMA 22 contacts
lower PCB - 3002B
|-----------------------------------------------------|
|t |-----| |
|o |------| |epr11| |
| |pal -a| |-----| |------| |
|u |------| |epr10| |pal -b| |
|p |-----| |------| |------| |
|p |epr9 | |pal -c| |
|e |-----| |------| |
|r |-----| |
| |epr12| |
| |-----| |
|t |
|o |
| |
|u |
|p 12.0000MHz |
|p |
|e |
|r |
|-----------------------------------------------------|
Notes:
ROMs:
9,10,11 : Intel IP27256
12 : TMS2764JL
pal : AmPAL16R4PC
Connectors:
2x flat cable to upper board
brkthru, brkthruj and brkthrut have a Self Test Mode not mentioned anywhere
in the manual. It is accessed by holding down both player 1 and player 2 start
buttons while powering up the game. It can be accessed in MAME by holding the
buttons down after the game has started then pressing F3 to reset the game.
***************************************************************************/
#include "emu.h"
#include "cpu/m6809/m6809.h"
#include "machine/gen_latch.h"
#include "sound/ymopl.h"
#include "sound/ymopn.h"
#include "emupal.h"
#include "screen.h"
#include "speaker.h"
#include "tilemap.h"
namespace {
class brkthru_state : public driver_device
{
public:
brkthru_state(const machine_config &mconfig, device_type type, const char *tag) :
driver_device(mconfig, type, tag),
m_fg_videoram(*this, "fg_videoram"),
m_videoram(*this, "videoram"),
m_spriteram(*this, "spriteram"),
m_mainbank(*this, "mainbank"),
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_gfxdecode(*this, "gfxdecode"),
m_palette(*this, "palette")
{ }
void brkthru(machine_config &config);
void darwin(machine_config &config);
DECLARE_INPUT_CHANGED_MEMBER(coin_inserted);
protected:
virtual void machine_start() override;
virtual void machine_reset() override;
virtual void video_start() override;
private:
// memory pointers
required_shared_ptr<uint8_t> m_fg_videoram;
required_shared_ptr<uint8_t> m_videoram;
required_shared_ptr<uint8_t> m_spriteram;
required_memory_bank m_mainbank;
// video-related
tilemap_t *m_fg_tilemap = nullptr;
tilemap_t *m_bg_tilemap = nullptr;
uint16_t m_bgscroll = 0;
uint8_t m_bgbasecolor = 0;
uint8_t m_flipscreen = 0;
// devices
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_audiocpu;
required_device<gfxdecode_device> m_gfxdecode;
required_device<palette_device> m_palette;
uint8_t m_nmi_mask = 0U;
void brkthru_1803_w(uint8_t data);
void darwin_0803_w(uint8_t data);
void bgram_w(offs_t offset, uint8_t data);
void fgram_w(offs_t offset, uint8_t data);
void _1800_w(offs_t offset, uint8_t data);
TILE_GET_INFO_MEMBER(get_bg_tile_info);
TILE_GET_INFO_MEMBER(get_fg_tile_info);
void palette(palette_device &palette) const;
uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
DECLARE_WRITE_LINE_MEMBER(vblank_irq);
void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int prio);
void brkthru_main_map(address_map &map);
void darwin_main_map(address_map &map);
void sound_map(address_map &map);
};
// video
/***************************************************************************
Convert the color PROMs into a more useable format.
Break Thru has one 256x8 and one 256x4 palette PROMs.
I don't know for sure how the palette PROMs are connected to the RGB
output, but it's probably the usual:
bit 7 -- 220 ohm resistor -- GREEN
-- 470 ohm resistor -- GREEN
-- 1 kohm resistor -- GREEN
-- 2.2kohm resistor -- GREEN
-- 220 ohm resistor -- RED
-- 470 ohm resistor -- RED
-- 1 kohm resistor -- RED
bit 0 -- 2.2kohm resistor -- RED
bit 3 -- 220 ohm resistor -- BLUE
-- 470 ohm resistor -- BLUE
-- 1 kohm resistor -- BLUE
bit 0 -- 2.2kohm resistor -- BLUE
***************************************************************************/
void brkthru_state::palette(palette_device &palette) const
{
uint8_t const *color_prom = memregion("proms")->base();
for (int i = 0; i < palette.entries(); i++)
{
int bit0 = (color_prom[0] >> 0) & 0x01;
int bit1 = (color_prom[0] >> 1) & 0x01;
int bit2 = (color_prom[0] >> 2) & 0x01;
int bit3 = (color_prom[0] >> 3) & 0x01;
int const r = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3;
bit0 = (color_prom[0] >> 4) & 0x01;
bit1 = (color_prom[0] >> 5) & 0x01;
bit2 = (color_prom[0] >> 6) & 0x01;
bit3 = (color_prom[0] >> 7) & 0x01;
int const g = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3;
bit0 = (color_prom[palette.entries()] >> 0) & 0x01;
bit1 = (color_prom[palette.entries()] >> 1) & 0x01;
bit2 = (color_prom[palette.entries()] >> 2) & 0x01;
bit3 = (color_prom[palette.entries()] >> 3) & 0x01;
int const b = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3;
palette.set_pen_color(i, rgb_t(r, g, b));
color_prom++;
}
}
/***************************************************************************
Start the video hardware emulation.
***************************************************************************/
TILE_GET_INFO_MEMBER(brkthru_state::get_bg_tile_info)
{
/* BG RAM format
0 1
---- -c-- ---- ---- = Color
---- --xx xxxx xxxx = Code
*/
int code = (m_videoram[tile_index * 2] | ((m_videoram[tile_index * 2 + 1]) << 8)) & 0x3ff;
int region = 1 + (code >> 7);
int colour = m_bgbasecolor + ((m_videoram[tile_index * 2 + 1] & 0x04) >> 2);
tileinfo.set(region, code & 0x7f, colour,0);
}
void brkthru_state::bgram_w(offs_t offset, uint8_t data)
{
m_videoram[offset] = data;
m_bg_tilemap->mark_tile_dirty(offset / 2);
}
TILE_GET_INFO_MEMBER(brkthru_state::get_fg_tile_info)
{
uint8_t code = m_fg_videoram[tile_index];
tileinfo.set(0, code, 0, 0);
}
void brkthru_state::fgram_w(offs_t offset, uint8_t data)
{
m_fg_videoram[offset] = data;
m_fg_tilemap->mark_tile_dirty(offset);
}
void brkthru_state::video_start()
{
m_fg_tilemap = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(*this, FUNC(brkthru_state::get_fg_tile_info)), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
m_bg_tilemap = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(*this, FUNC(brkthru_state::get_bg_tile_info)), TILEMAP_SCAN_COLS, 16, 16, 32, 16);
m_fg_tilemap->set_transparent_pen(0);
m_bg_tilemap->set_transparent_pen(0);
}
void brkthru_state::_1800_w(offs_t offset, uint8_t data)
{
if (offset == 0) // low 8 bits of scroll
m_bgscroll = (m_bgscroll & 0x100) | data;
else if (offset == 1)
{
// bit 0-2 = ROM bank select
m_mainbank->set_entry(data & 0x07);
// bit 3-5 = background tiles color code
if (((data & 0x38) >> 2) != m_bgbasecolor)
{
m_bgbasecolor = (data & 0x38) >> 2;
m_bg_tilemap->mark_all_dirty();
}
// bit 6 = screen flip
if (m_flipscreen != (data & 0x40))
{
m_flipscreen = data & 0x40;
m_bg_tilemap->set_flip(m_flipscreen ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0);
m_fg_tilemap->set_flip(m_flipscreen ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0);
}
// bit 7 = high bit of scroll
m_bgscroll = (m_bgscroll & 0xff) | ((data & 0x80) << 1);
}
}
void brkthru_state::draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int prio)
{
// Draw the sprites. Note that it is important to draw them exactly in this order, to have the correct priorities.
/* Sprite RAM format
0 1 2 3
ccc- ---- ---- ---- ---- ---- ---- ---- = Color
---d ---- ---- ---- ---- ---- ---- ---- = Double Size
---- p--- ---- ---- ---- ---- ---- ---- = Priority
---- -bb- ---- ---- ---- ---- ---- ---- = Bank
---- ---e ---- ---- ---- ---- ---- ---- = Enable/Disable
---- ---- ssss ssss ---- ---- ---- ---- = Sprite code
---- ---- ---- ---- yyyy yyyy ---- ---- = Y position
---- ---- ---- ---- ---- ---- xxxx xxxx = X position
*/
for (int offs = 0; offs < m_spriteram.bytes(); offs += 4)
{
if ((m_spriteram[offs] & 0x09) == prio) // Enable && Low Priority
{
int sx = 240 - m_spriteram[offs + 3];
if (sx < -7)
sx += 256;
int sy = 240 - m_spriteram[offs + 2];
int code = m_spriteram[offs + 1] + 128 * (m_spriteram[offs] & 0x06);
int color = (m_spriteram[offs] & 0xe0) >> 5;
if (m_flipscreen)
{
sx = 240 - sx;
sy = 240 - sy;
}
if (m_spriteram[offs] & 0x10) // double height
{
m_gfxdecode->gfx(9)->transpen(bitmap, cliprect, code & ~1, color, m_flipscreen, m_flipscreen, sx, m_flipscreen ? sy + 16 : sy - 16, 0);
m_gfxdecode->gfx(9)->transpen(bitmap, cliprect, code | 1, color, m_flipscreen, m_flipscreen, sx, sy, 0);
// redraw with wraparound
m_gfxdecode->gfx(9)->transpen(bitmap, cliprect, code & ~1, color, m_flipscreen, m_flipscreen, sx,(m_flipscreen ? sy + 16 : sy - 16) + 256, 0);
m_gfxdecode->gfx(9)->transpen(bitmap, cliprect, code | 1, color, m_flipscreen, m_flipscreen, sx, sy + 256, 0);
}
else
{
m_gfxdecode->gfx(9)->transpen(bitmap, cliprect, code, color, m_flipscreen, m_flipscreen, sx, sy, 0);
// redraw with wraparound
m_gfxdecode->gfx(9)->transpen(bitmap, cliprect, code, color, m_flipscreen, m_flipscreen, sx, sy + 256, 0);
}
}
}
}
uint32_t brkthru_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
m_bg_tilemap->set_scrollx(0, m_bgscroll);
m_bg_tilemap->draw(screen, bitmap, cliprect, TILEMAP_DRAW_OPAQUE, 0);
// low priority sprites
draw_sprites(bitmap, cliprect, 0x01);
// draw background over low priority sprites
m_bg_tilemap->draw(screen, bitmap, cliprect, 0, 0);
// high priority sprites
draw_sprites(bitmap, cliprect, 0x09);
// fg layer
m_fg_tilemap->draw(screen, bitmap, cliprect, 0, 0);
return 0;
}
// machine
/*************************************
*
* Memory handlers
*
*************************************/
void brkthru_state::brkthru_1803_w(uint8_t data)
{
// bit 0 = NMI enable
m_nmi_mask = ~data & 1;
if (data & 2)
m_maincpu->set_input_line(0, CLEAR_LINE);
// bit 1 = ? maybe IRQ acknowledge
}
void brkthru_state::darwin_0803_w(uint8_t data)
{
// bit 0 = NMI enable
m_nmi_mask = data & 1;
logerror("0803 %02X\n", data);
if (data & 2)
m_maincpu->set_input_line(0, CLEAR_LINE);
// bit 1 = ? maybe IRQ acknowledge
}
INPUT_CHANGED_MEMBER(brkthru_state::coin_inserted)
{
// coin insertion causes an IRQ
if (oldval)
m_maincpu->set_input_line(0, ASSERT_LINE);
}
/*************************************
*
* Address maps
*
*************************************/
void brkthru_state::brkthru_main_map(address_map &map)
{
map(0x0000, 0x03ff).ram().w(FUNC(brkthru_state::fgram_w)).share(m_fg_videoram);
map(0x0400, 0x0bff).ram();
map(0x0c00, 0x0fff).ram().w(FUNC(brkthru_state::bgram_w)).share(m_videoram);
map(0x1000, 0x10ff).ram().share(m_spriteram);
map(0x1100, 0x17ff).ram();
map(0x1800, 0x1800).portr("P1");
map(0x1801, 0x1801).portr("P2");
map(0x1802, 0x1802).portr("DSW1");
map(0x1803, 0x1803).portr("DSW2_COIN");
map(0x1800, 0x1801).w(FUNC(brkthru_state::_1800_w)); // bg scroll and color, ROM bank selection, flip screen
map(0x1802, 0x1802).w("soundlatch", FUNC(generic_latch_8_device::write));
map(0x1803, 0x1803).w(FUNC(brkthru_state::brkthru_1803_w)); // NMI enable, + ?
map(0x2000, 0x3fff).bankr(m_mainbank);
map(0x4000, 0xffff).rom();
}
// same as brktrhu, but XOR 0x1000 below 8k
void brkthru_state::darwin_main_map(address_map &map)
{
map(0x1000, 0x13ff).ram().w(FUNC(brkthru_state::fgram_w)).share(m_fg_videoram);
map(0x1400, 0x1bff).ram();
map(0x1c00, 0x1fff).ram().w(FUNC(brkthru_state::bgram_w)).share(m_videoram);
map(0x0000, 0x00ff).ram().share(m_spriteram);
map(0x0100, 0x01ff).nopw(); // tidy up, nothing really here?
map(0x0800, 0x0800).portr("P1");
map(0x0801, 0x0801).portr("P2");
map(0x0802, 0x0802).portr("DSW1");
map(0x0803, 0x0803).portr("DSW2_COIN");
map(0x0800, 0x0801).w(FUNC(brkthru_state::_1800_w)); // bg scroll and color, ROM bank selection, flip screen
map(0x0802, 0x0802).w("soundlatch", FUNC(generic_latch_8_device::write));
map(0x0803, 0x0803).w(FUNC(brkthru_state::darwin_0803_w)); // NMI enable, + ?
map(0x2000, 0x3fff).bankr(m_mainbank);
map(0x4000, 0xffff).rom();
}
void brkthru_state::sound_map(address_map &map)
{
map(0x0000, 0x1fff).ram();
map(0x2000, 0x2001).w("ym2", FUNC(ym3526_device::write));
map(0x4000, 0x4000).r("soundlatch", FUNC(generic_latch_8_device::read));
map(0x6000, 0x6001).rw("ym1", FUNC(ym2203_device::read), FUNC(ym2203_device::write));
map(0x8000, 0xffff).rom();
}
/*************************************
*
* Input ports
*
*************************************/
static INPUT_PORTS_START( brkthru )
PORT_START("P1")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 )
PORT_START("P2")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_CUSTOM ) PORT_VBLANK("screen") // used only by the self test
PORT_START("DSW1")
PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:1,2")
PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) )
PORT_DIPSETTING( 0x03, DEF_STR( 1C_1C ) )
PORT_DIPSETTING( 0x02, DEF_STR( 1C_2C ) )
PORT_DIPSETTING( 0x01, DEF_STR( 1C_3C ) )
PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:3,4")
PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) )
PORT_DIPSETTING( 0x0c, DEF_STR( 1C_1C ) )
PORT_DIPSETTING( 0x08, DEF_STR( 1C_2C ) )
PORT_DIPSETTING( 0x04, DEF_STR( 1C_3C ) )
PORT_DIPNAME( 0x10, 0x10, "Enemy Vehicles" ) PORT_DIPLOCATION("SW1:5")
PORT_DIPSETTING( 0x10, "Slow" )
PORT_DIPSETTING( 0x00, "Fast" )
PORT_DIPNAME( 0x20, 0x20, "Enemy Bullets" ) PORT_DIPLOCATION("SW1:6")
PORT_DIPSETTING( 0x20, "Slow" )
PORT_DIPSETTING( 0x00, "Fast" )
PORT_DIPNAME( 0x40, 0x00, "Control Panel" ) PORT_DIPLOCATION("SW1:7")
PORT_DIPSETTING( 0x40, "1 Player" )
PORT_DIPSETTING( 0x00, "2 Players" )
PORT_DIPNAME( 0x80, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW1:8")
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
PORT_DIPSETTING( 0x80, DEF_STR( Cocktail ) )
PORT_START("DSW2_COIN")
PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:1,2")
PORT_DIPSETTING( 0x02, "2" )
PORT_DIPSETTING( 0x03, "3" )
PORT_DIPSETTING( 0x01, "5" )
PORT_DIPSETTING( 0x00, "99 (Cheat)")
PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW2:3,4")
PORT_DIPSETTING( 0x00, "20000 Points Only" )
PORT_DIPSETTING( 0x04, "10000/20000 Points" )
PORT_DIPSETTING( 0x0c, "20000/30000 Points" )
PORT_DIPSETTING( 0x08, "20000/40000 Points" )
PORT_DIPNAME( 0x10, 0x10, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW2:5") // Manual says ALWAYS OFF
PORT_DIPSETTING( 0x00, DEF_STR( No ) )
PORT_DIPSETTING( 0x10, DEF_STR( Yes ) )
// According to the manual, bit 5 should control Flip Screen
// PORT_DIPNAME( 0x20, 0x20, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW2:6")
// PORT_DIPSETTING( 0x20, DEF_STR( Off ) )
// PORT_DIPSETTING( 0x00, DEF_STR( On ) )
// SW2:7,8 ALWAYS OFF according to the manual
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, brkthru_state, coin_inserted, 0)
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_CHANGED_MEMBER(DEVICE_SELF, brkthru_state, coin_inserted, 0)
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, brkthru_state, coin_inserted, 0)
INPUT_PORTS_END
static INPUT_PORTS_START( brkthruj )
PORT_INCLUDE( brkthru )
PORT_MODIFY("DSW2_COIN")
PORT_SERVICE_DIPLOC( 0x10, IP_ACTIVE_LOW, "SW2:5" )
INPUT_PORTS_END
static INPUT_PORTS_START( darwin )
PORT_INCLUDE( brkthru )
PORT_MODIFY("DSW1")
PORT_DIPUNKNOWN_DIPLOC( 0x10, 0x10, "SW1:5" ) // Manual says must be OFF
PORT_DIPNAME( 0x20, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW1:6")
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
PORT_DIPSETTING( 0x20, DEF_STR( Cocktail ) )
PORT_DIPNAME( 0x40, 0x40, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:7")
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING( 0x40, DEF_STR( On ) )
PORT_DIPUNKNOWN_DIPLOC( 0x80, 0x80, "SW1:8" ) // Manual says must be OFF
PORT_MODIFY("DSW2_COIN") // modified by Shingo Suzuki 1999/11/02
PORT_DIPNAME( 0x01, 0x01, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:1")
PORT_DIPSETTING( 0x01, "3" )
PORT_DIPSETTING( 0x00, "5" )
PORT_DIPNAME( 0x02, 0x02, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW2:2")
PORT_DIPSETTING( 0x02, "20k, 50k and every 50k" )
PORT_DIPSETTING( 0x00, "30k, 80k and every 80k" )
PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:3,4")
PORT_DIPSETTING( 0x0c, DEF_STR( Easy ) )
PORT_DIPSETTING( 0x08, DEF_STR( Medium ) )
PORT_DIPSETTING( 0x04, DEF_STR( Hard ) )
PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) )
// According to the manual, bit 5 should control Flip Screen
// PORT_DIPNAME( 0x20, 0x20, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW2:6")
// PORT_DIPSETTING( 0x20, DEF_STR( Off ) )
// PORT_DIPSETTING( 0x00, DEF_STR( On ) )
// SW2:5,7,8 ALWAYS OFF according to the manual
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, brkthru_state, coin_inserted, 0)
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_CHANGED_MEMBER(DEVICE_SELF, brkthru_state, coin_inserted, 0)
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, brkthru_state, coin_inserted, 0)
INPUT_PORTS_END
/*************************************
*
* Graphics definitions
*
*************************************/
static const gfx_layout charlayout =
{
8,8, // 8*8 chars
256, // 256 characters
3, // 3 bits per pixel
{ 512*8*8+4, 0, 4 }, // plane offset
{ 256*8*8+0, 256*8*8+1, 256*8*8+2, 256*8*8+3, 0, 1, 2, 3 },
{ 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 },
8*8 // every char takes 8 consecutive bytes
};
static const gfx_layout tilelayout1 =
{
16,16, // 16*16 tiles
128, // 128 tiles
3, // 3 bits per pixel
{ 0x4000*8+4, 0, 4 }, // plane offset
{ 0, 1, 2, 3, 1024*8*8+0, 1024*8*8+1, 1024*8*8+2, 1024*8*8+3,
16*8+0, 16*8+1, 16*8+2, 16*8+3, 16*8+1024*8*8+0, 16*8+1024*8*8+1, 16*8+1024*8*8+2, 16*8+1024*8*8+3 },
{ 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8,
8*8, 9*8, 10*8, 11*8, 12*8, 13*8, 14*8, 15*8 },
32*8 // every tile takes 32 consecutive bytes
};
static const gfx_layout tilelayout2 =
{
16,16, // 16*16 tiles
128, // 128 tiles
3, // 3 bits per pixel
{ 0x3000*8+0, 0, 4 }, // plane offset
{ 0, 1, 2, 3, 1024*8*8+0, 1024*8*8+1, 1024*8*8+2, 1024*8*8+3,
16*8+0, 16*8+1, 16*8+2, 16*8+3, 16*8+1024*8*8+0, 16*8+1024*8*8+1, 16*8+1024*8*8+2, 16*8+1024*8*8+3 },
{ 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8,
8*8, 9*8, 10*8, 11*8, 12*8, 13*8, 14*8, 15*8 },
32*8 // every tile takes 32 consecutive bytes
};
static const gfx_layout spritelayout =
{
16,16, // 16*16 sprites
1024, // 1024 sprites
3, // 3 bits per pixel
{ 2*1024*32*8, 1024*32*8, 0 }, // plane offset
{ 16*8+0, 16*8+1, 16*8+2, 16*8+3, 16*8+4, 16*8+5, 16*8+6, 16*8+7,
0, 1, 2, 3, 4, 5, 6, 7 },
{ 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8,
8*8, 9*8, 10*8, 11*8, 12*8, 13*8, 14*8, 15*8 },
32*8 // every sprite takes 32 consecutive bytes
};
static GFXDECODE_START( gfx_brkthru )
GFXDECODE_ENTRY( "chars", 0x00000, charlayout, 0x00, 1 ) // use colors 0x00-0x07
GFXDECODE_ENTRY( "tiles", 0x00000, tilelayout1, 0x80, 16 ) // use colors 0x80-0xff
GFXDECODE_ENTRY( "tiles", 0x01000, tilelayout2, 0x80, 16 )
GFXDECODE_ENTRY( "tiles", 0x08000, tilelayout1, 0x80, 16 )
GFXDECODE_ENTRY( "tiles", 0x09000, tilelayout2, 0x80, 16 )
GFXDECODE_ENTRY( "tiles", 0x10000, tilelayout1, 0x80, 16 )
GFXDECODE_ENTRY( "tiles", 0x11000, tilelayout2, 0x80, 16 )
GFXDECODE_ENTRY( "tiles", 0x18000, tilelayout1, 0x80, 16 )
GFXDECODE_ENTRY( "tiles", 0x19000, tilelayout2, 0x80, 16 )
GFXDECODE_ENTRY( "sprites", 0x00000, spritelayout, 0x40, 8 ) // use colors 0x40-0x7f
GFXDECODE_END
/*************************************
*
* Machine driver
*
*************************************/
void brkthru_state::machine_start()
{
uint8_t *rom = memregion("maincpu")->base();
m_mainbank->configure_entries(0, 8, &rom[0x10000], 0x2000);
save_item(NAME(m_bgscroll));
save_item(NAME(m_bgbasecolor));
save_item(NAME(m_flipscreen));
save_item(NAME(m_nmi_mask));
}
void brkthru_state::machine_reset()
{
m_bgscroll = 0;
m_bgbasecolor = 0;
m_flipscreen = 0;
m_nmi_mask = 0;
}
WRITE_LINE_MEMBER(brkthru_state::vblank_irq)
{
if (state && m_nmi_mask)
m_maincpu->pulse_input_line(INPUT_LINE_NMI, attotime::zero);
}
void brkthru_state::brkthru(machine_config &config)
{
static constexpr XTAL MASTER_CLOCK = XTAL(12'000'000);
// basic machine hardware
MC6809E(config, m_maincpu, MASTER_CLOCK / 8); // 1.5 MHz ?
m_maincpu->set_addrmap(AS_PROGRAM, &brkthru_state::brkthru_main_map);
MC6809(config, m_audiocpu, MASTER_CLOCK / 2); // 1.5 MHz ?
m_audiocpu->set_addrmap(AS_PROGRAM, &brkthru_state::sound_map);
// video hardware
GFXDECODE(config, m_gfxdecode, m_palette, gfx_brkthru);
PALETTE(config, m_palette, FUNC(brkthru_state::palette), 256);
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));
screen.set_raw(MASTER_CLOCK / 2, 384, 8, 248, 272, 8, 248); // verified for darwin, not 100% sure it's the same for brkthru
/* frames per second, vblank duration
Horizontal video frequency:
HSync = Dot Clock / Horizontal Frame Length
= Xtal /2 / (HDisplay + HBlank)
= 12MHz/2 / (240 + 144)
= 15.625kHz
Vertical Video frequency:
VSync = HSync / Vertical Frame Length
= HSync / (VDisplay + VBlank)
= 15.625kHz / (240 + 32)
= 57.444855Hz
tuned by Shingo SUZUKI(VSyncMAME Project) 2000/10/19 */
screen.set_screen_update(FUNC(brkthru_state::screen_update));
screen.set_palette(m_palette);
screen.screen_vblank().set(FUNC(brkthru_state::vblank_irq));
// sound hardware
SPEAKER(config, "mono").front_center();
GENERIC_LATCH_8(config, "soundlatch").data_pending_callback().set_inputline(m_audiocpu, INPUT_LINE_NMI);
ym2203_device &ym1(YM2203(config, "ym1", MASTER_CLOCK / 8));
ym1.add_route(0, "mono", 0.10);
ym1.add_route(1, "mono", 0.10);
ym1.add_route(2, "mono", 0.10);
ym1.add_route(3, "mono", 0.50);
ym3526_device &ym2(YM3526(config, "ym2", MASTER_CLOCK / 4));
ym2.irq_handler().set_inputline(m_audiocpu, M6809_IRQ_LINE);
ym2.add_route(ALL_OUTPUTS, "mono", 1.0);
}
void brkthru_state::darwin(machine_config &config)
{
brkthru(config);
m_maincpu->set_addrmap(AS_PROGRAM, &brkthru_state::darwin_main_map);
}
/*************************************
*
* ROM definition(s)
*
*************************************/
ROM_START( brkthru )
ROM_REGION( 0x20000, "maincpu", 0 )
ROM_LOAD( "brkthru.1", 0x04000, 0x4000, CRC(cfb4265f) SHA1(4cd748fa06fd2727de1694196912d605672d4883) )
ROM_LOAD( "brkthru.2", 0x08000, 0x8000, CRC(fa8246d9) SHA1(d6da03b2a3d8a83411191351ee110b89352a3ead) )
ROM_LOAD( "brkthru.4", 0x10000, 0x8000, CRC(8cabf252) SHA1(45e8847b2e6b278989f67e0b27b827a9b3b92581) )
ROM_LOAD( "brkthru.3", 0x18000, 0x8000, CRC(2f2c40c2) SHA1(fcb78941453520a3a07f272127dae7c2cc1999ea) )
ROM_REGION( 0x02000, "chars", 0 )
ROM_LOAD( "brkthru.12", 0x00000, 0x2000, CRC(58c0b29b) SHA1(9dc075f8afae7e8fe164a9fe325e9948cdc7e4bb) )
ROM_REGION( 0x20000, "tiles", 0 )
// background
// we do a lot of scatter loading here, to place the data in a format which can be decoded by MAME's standard functions
ROM_LOAD( "brkthru.7", 0x00000, 0x4000, CRC(920cc56a) SHA1(c75806691073f1f3bd54dcaca4c14155ecf4471d) ) // bitplanes 1,2 for bank 1,2
ROM_CONTINUE( 0x08000, 0x4000 ) // bitplanes 1,2 for bank 3,4
ROM_LOAD( "brkthru.6", 0x10000, 0x4000, CRC(fd3cee40) SHA1(3308b96bb69e0fa6dffbdff296273fafa16d5e70) ) // bitplanes 1,2 for bank 5,6
ROM_CONTINUE( 0x18000, 0x4000 ) // bitplanes 1,2 for bank 7,8
ROM_LOAD( "brkthru.8", 0x04000, 0x1000, CRC(f67ee64e) SHA1(75634bd481ae44b8aa02acb4f9b4d7ff973a4c71) ) // bitplane 3 for bank 1,2
ROM_CONTINUE( 0x06000, 0x1000 )
ROM_CONTINUE( 0x0c000, 0x1000 ) // bitplane 3 for bank 3,4
ROM_CONTINUE( 0x0e000, 0x1000 )
ROM_CONTINUE( 0x14000, 0x1000 ) // bitplane 3 for bank 5,6
ROM_CONTINUE( 0x16000, 0x1000 )
ROM_CONTINUE( 0x1c000, 0x1000 ) // bitplane 3 for bank 7,8
ROM_CONTINUE( 0x1e000, 0x1000 )
ROM_REGION( 0x18000, "sprites", 0 )
ROM_LOAD( "brkthru.9", 0x00000, 0x8000, CRC(f54e50a7) SHA1(eccf4d859c26944271ec6586644b4730a72851fd) )
ROM_LOAD( "brkthru.10", 0x08000, 0x8000, CRC(fd156945) SHA1(a0575a4164217e63317886176ab7e59d255fc771) )
ROM_LOAD( "brkthru.11", 0x10000, 0x8000, CRC(c152a99b) SHA1(f96133aa01219eda357b9e906bd9577dbfe359c0) )
ROM_REGION( 0x0200, "proms", 0 )
ROM_LOAD( "brkthru.13", 0x0000, 0x0100, CRC(aae44269) SHA1(7c66aeb93577104109d264ee8b848254256c81eb) ) // red and green component
ROM_LOAD( "brkthru.14", 0x0100, 0x0100, CRC(f2d4822a) SHA1(f535e91b87ff01f2a73662856fd3f72907ca62e9) ) // blue component
ROM_REGION( 0x10000, "audiocpu", 0 )
ROM_LOAD( "brkthru.5", 0x8000, 0x8000, CRC(c309435f) SHA1(82914004c2b169a7c31aa49af83a699ebbc7b33f) )
ROM_END
ROM_START( brkthruj )
ROM_REGION( 0x20000, "maincpu", 0 )
ROM_LOAD( "1", 0x04000, 0x4000, CRC(09bd60ee) SHA1(9591a4c89bb69d5615a5d6b29c47e6b17350c007) )
ROM_LOAD( "2", 0x08000, 0x8000, CRC(f2b2cd1c) SHA1(dafccc74310876bc1c88de7f3c86f93ed8a0eb62) )
ROM_LOAD( "4", 0x10000, 0x8000, CRC(b42b3359) SHA1(c1da550e0f7cc52721802c7c0f2770ef0087e28b) )
ROM_LOAD( "brkthru.3", 0x18000, 0x8000, CRC(2f2c40c2) SHA1(fcb78941453520a3a07f272127dae7c2cc1999ea) )
ROM_REGION( 0x02000, "chars", 0 )
ROM_LOAD( "12", 0x00000, 0x2000, CRC(3d9a7003) SHA1(2e5de982eb75ac75312fb29bb4cb2ed12ec0fd56) )
ROM_REGION( 0x20000, "tiles", 0 )
// background
// we do a lot of scatter loading here, to place the data in a format which can be decoded by MAME's standard functions
ROM_LOAD( "brkthru.7", 0x00000, 0x4000, CRC(920cc56a) SHA1(c75806691073f1f3bd54dcaca4c14155ecf4471d) ) // bitplanes 1,2 for bank 1,2
ROM_CONTINUE( 0x08000, 0x4000 ) // bitplanes 1,2 for bank 3,4
ROM_LOAD( "6", 0x10000, 0x4000, CRC(cb47b395) SHA1(bf5459d696e863644f13c8b0786b8f45caf6ceb6) ) // bitplanes 1,2 for bank 5,6
ROM_CONTINUE( 0x18000, 0x4000 ) // bitplanes 1,2 for bank 7,8
ROM_LOAD( "8", 0x04000, 0x1000, CRC(5e5a2cd7) SHA1(f1782d67b924b4b89bcb6602e970c28fbeaab522) ) // bitplane 3 for bank 1,2
ROM_CONTINUE( 0x06000, 0x1000 )
ROM_CONTINUE( 0x0c000, 0x1000 ) // bitplane 3 for bank 3,4
ROM_CONTINUE( 0x0e000, 0x1000 )
ROM_CONTINUE( 0x14000, 0x1000 ) // bitplane 3 for bank 5,6
ROM_CONTINUE( 0x16000, 0x1000 )
ROM_CONTINUE( 0x1c000, 0x1000 ) // bitplane 3 for bank 7,8
ROM_CONTINUE( 0x1e000, 0x1000 )
ROM_REGION( 0x18000, "sprites", 0 )
ROM_LOAD( "brkthru.9", 0x00000, 0x8000, CRC(f54e50a7) SHA1(eccf4d859c26944271ec6586644b4730a72851fd) )
ROM_LOAD( "brkthru.10", 0x08000, 0x8000, CRC(fd156945) SHA1(a0575a4164217e63317886176ab7e59d255fc771) )
ROM_LOAD( "brkthru.11", 0x10000, 0x8000, CRC(c152a99b) SHA1(f96133aa01219eda357b9e906bd9577dbfe359c0) )
ROM_REGION( 0x0200, "proms", 0 )
ROM_LOAD( "brkthru.13", 0x0000, 0x0100, CRC(aae44269) SHA1(7c66aeb93577104109d264ee8b848254256c81eb) ) // red and green component
ROM_LOAD( "brkthru.14", 0x0100, 0x0100, CRC(f2d4822a) SHA1(f535e91b87ff01f2a73662856fd3f72907ca62e9) ) // blue component
ROM_REGION( 0x10000, "audiocpu", 0 )
ROM_LOAD( "brkthru.5", 0x8000, 0x8000, CRC(c309435f) SHA1(82914004c2b169a7c31aa49af83a699ebbc7b33f) )
ROM_END
// Tecfri PCB with Data East license (DE-0230-2 / DE-0231-2).
ROM_START( brkthrut )
ROM_REGION( 0x20000, "maincpu", 0 )
ROM_LOAD( "5_de-0230-2_27128.f9", 0x04000, 0x4000, CRC(158e660a) SHA1(608082e8b49d3c5595c25be8c19b80402310406a) )
ROM_LOAD( "6_de-0230-2_27256.f11", 0x08000, 0x8000, CRC(62dbe49e) SHA1(f0510cf0144d75c208f0ced342d3a726325a70d4) )
ROM_LOAD( "8_de-0230-2_27256.f13", 0x10000, 0x8000, CRC(8cabf252) SHA1(45e8847b2e6b278989f67e0b27b827a9b3b92581) ) // Same as parent
ROM_LOAD( "7_de-0230-2_27256.f12", 0x18000, 0x8000, CRC(2f2c40c2) SHA1(fcb78941453520a3a07f272127dae7c2cc1999ea) ) // Same as parent
ROM_REGION( 0x02000, "chars", 0 )
ROM_LOAD( "9_de-0231-2_2764.c8", 0x00000, 0x2000, CRC(58c0b29b) SHA1(9dc075f8afae7e8fe164a9fe325e9948cdc7e4bb) ) // same as parent
ROM_REGION( 0x20000, "tiles", 0 )
// Background
// We do a lot of scatter loading here, to place the data in a format
// which can be decoded by MAME's standard functions
ROM_LOAD( "2_de-0230-2_27256.a6", 0x00000, 0x4000, CRC(920cc56a) SHA1(c75806691073f1f3bd54dcaca4c14155ecf4471d) ) // Bitplanes 1,2 for bank 1,2, same as parent
ROM_CONTINUE( 0x08000, 0x4000 ) // Bitplanes 1,2 for bank 3,4
ROM_LOAD( "1_de-0230-2_27256.a5", 0x10000, 0x4000, CRC(fd3cee40) SHA1(3308b96bb69e0fa6dffbdff296273fafa16d5e70) ) // Bitplanes 1,2 for bank 5,6, same as parent
ROM_CONTINUE( 0x18000, 0x4000 ) // Bitplanes 1,2 for bank 7,8
ROM_LOAD( "3_de-0230-2_27256.a8", 0x04000, 0x1000, CRC(f67ee64e) SHA1(75634bd481ae44b8aa02acb4f9b4d7ff973a4c71) ) // Bitplane 3 for bank 1,2, same as parent
ROM_CONTINUE( 0x06000, 0x1000 )
ROM_CONTINUE( 0x0c000, 0x1000 ) // Bitplane 3 for bank 3,4
ROM_CONTINUE( 0x0e000, 0x1000 )
ROM_CONTINUE( 0x14000, 0x1000 ) // Bitplane 3 for bank 5,6
ROM_CONTINUE( 0x16000, 0x1000 )
ROM_CONTINUE( 0x1c000, 0x1000 ) // Bitplane 3 for bank 7,8
ROM_CONTINUE( 0x1e000, 0x1000 )
ROM_REGION( 0x18000, "sprites", 0 )
ROM_LOAD( "10_de-0231-2_27156.h2", 0x00000, 0x8000, CRC(f54e50a7) SHA1(eccf4d859c26944271ec6586644b4730a72851fd) ) // Same as parent
ROM_LOAD( "11_de-0231-2_27156.h4", 0x08000, 0x8000, CRC(fd156945) SHA1(a0575a4164217e63317886176ab7e59d255fc771) ) // Same as parent
ROM_LOAD( "12_de-0231-2_27156.h5", 0x10000, 0x8000, CRC(c152a99b) SHA1(f96133aa01219eda357b9e906bd9577dbfe359c0) ) // Same as parent
ROM_REGION( 0x0300, "proms", 0 ) // Truly dumped on the Tecfri PCB.
/*
The original 82s129 bipolar PROM for R/G was replaced with one 82s147
that has twice the size. Seems that A05 line was disconnected, and the
rest of bigger addressing lines were displaced covering the hole...
*/
ROM_LOAD( "6309.c2", 0x0000, 0x0040, CRC(cd9709be) SHA1(1d9c451c771a7b38680e2179aa22289ea7cb2720) ) // Red and Green component (82S147N)
ROM_CONTINUE( 0x0020, 0x0040 )
ROM_CONTINUE( 0x0040, 0x0040 )
ROM_CONTINUE( 0x0060, 0x0040 )
ROM_CONTINUE( 0x0080, 0x0040 )
ROM_CONTINUE( 0x00a0, 0x0040 )
ROM_CONTINUE( 0x00c0, 0x0040 )
ROM_CONTINUE( 0x00e0, 0x0040 )
ROM_LOAD( "6301.c1", 0x0100, 0x0100, CRC(f2d4822a) SHA1(f535e91b87ff01f2a73662856fd3f72907ca62e9) ) // Blue component (82S129N), same as parent
ROM_REGION( 0x10000, "audiocpu", 0 )
ROM_LOAD( "4_de-0230-2_27256.d6", 0x8000, 0x8000, CRC(c309435f) SHA1(82914004c2b169a7c31aa49af83a699ebbc7b33f) ) // Same as parent
ROM_END
ROM_START( brkthrubl ) // 3002A + 3002B PCBs. Everything's the same as the original but the main CPU ROMs, which differ quite a lot (possibly bootlegged from a different revision?)
ROM_REGION( 0x20000, "maincpu", 0 )
ROM_LOAD( "4", 0x04000, 0x4000, CRC(0f21b4c5) SHA1(e5ef67006394d475571196dcdc181d28a0831bdf) )
ROM_LOAD( "3", 0x08000, 0x8000, CRC(51c7c378) SHA1(b779df719b89bb41e342c472b38e20d8fc71ca6d) )
ROM_LOAD( "1", 0x10000, 0x8000, CRC(209484c2) SHA1(da7311768b675b833066a7403fd507969d74699e) )
ROM_LOAD( "2", 0x18000, 0x8000, CRC(2f2c40c2) SHA1(fcb78941453520a3a07f272127dae7c2cc1999ea) )
ROM_REGION( 0x02000, "chars", 0 )
ROM_LOAD( "12", 0x00000, 0x2000, CRC(58c0b29b) SHA1(9dc075f8afae7e8fe164a9fe325e9948cdc7e4bb) )
ROM_REGION( 0x20000, "tiles", 0 ) // background
ROM_LOAD( "7", 0x00000, 0x4000, CRC(920cc56a) SHA1(c75806691073f1f3bd54dcaca4c14155ecf4471d) ) // bitplanes 1,2 for bank 1,2
ROM_CONTINUE( 0x08000, 0x4000 ) // bitplanes 1,2 for bank 3,4
ROM_LOAD( "6", 0x10000, 0x4000, CRC(fd3cee40) SHA1(3308b96bb69e0fa6dffbdff296273fafa16d5e70) ) // bitplanes 1,2 for bank 5,6
ROM_CONTINUE( 0x18000, 0x4000 ) // bitplanes 1,2 for bank 7,8
ROM_LOAD( "8", 0x04000, 0x1000, CRC(f67ee64e) SHA1(75634bd481ae44b8aa02acb4f9b4d7ff973a4c71) ) // bitplane 3 for bank 1,2
ROM_CONTINUE( 0x06000, 0x1000 )
ROM_CONTINUE( 0x0c000, 0x1000 ) // bitplane 3 for bank 3,4
ROM_CONTINUE( 0x0e000, 0x1000 )
ROM_CONTINUE( 0x14000, 0x1000 ) // bitplane 3 for bank 5,6
ROM_CONTINUE( 0x16000, 0x1000 )
ROM_CONTINUE( 0x1c000, 0x1000 ) // bitplane 3 for bank 7,8
ROM_CONTINUE( 0x1e000, 0x1000 )
ROM_REGION( 0x18000, "sprites", 0 )
ROM_LOAD( "9", 0x00000, 0x8000, CRC(f54e50a7) SHA1(eccf4d859c26944271ec6586644b4730a72851fd) )
ROM_LOAD( "10", 0x08000, 0x8000, CRC(fd156945) SHA1(a0575a4164217e63317886176ab7e59d255fc771) )
ROM_LOAD( "11", 0x10000, 0x8000, CRC(c152a99b) SHA1(f96133aa01219eda357b9e906bd9577dbfe359c0) )
ROM_REGION( 0x0200, "proms", 0 )
ROM_LOAD( "brkthru.13", 0x0000, 0x0100, CRC(aae44269) SHA1(7c66aeb93577104109d264ee8b848254256c81eb) ) // red and green component
ROM_LOAD( "brkthru.14", 0x0100, 0x0100, CRC(f2d4822a) SHA1(f535e91b87ff01f2a73662856fd3f72907ca62e9) ) // blue component
ROM_REGION( 0x10000, "audiocpu", 0 )
ROM_LOAD( "5", 0x8000, 0x8000, CRC(c309435f) SHA1(82914004c2b169a7c31aa49af83a699ebbc7b33f) )
ROM_END
// bootleg, changed prg ROM fails test, probably just the Japanese version modified to have English title
ROM_START( forcebrk )
ROM_REGION( 0x20000, "maincpu", 0 )
ROM_LOAD( "1", 0x04000, 0x4000, CRC(09bd60ee) SHA1(9591a4c89bb69d5615a5d6b29c47e6b17350c007) )
ROM_LOAD( "2", 0x08000, 0x8000, CRC(f2b2cd1c) SHA1(dafccc74310876bc1c88de7f3c86f93ed8a0eb62) )
ROM_LOAD( "forcebrk4", 0x10000, 0x8000, CRC(b4838c19) SHA1(b32f183ee042872a6eb6689aab219108d37829e4) )
ROM_LOAD( "brkthru.3", 0x18000, 0x8000, CRC(2f2c40c2) SHA1(fcb78941453520a3a07f272127dae7c2cc1999ea) )
ROM_REGION( 0x02000, "chars", 0 )
ROM_LOAD( "12", 0x00000, 0x2000, CRC(3d9a7003) SHA1(2e5de982eb75ac75312fb29bb4cb2ed12ec0fd56) )
ROM_REGION( 0x20000, "tiles", 0 )
// background
// we do a lot of scatter loading here, to place the data in a format which can be decoded by MAME's standard functions
ROM_LOAD( "brkthru.7", 0x00000, 0x4000, CRC(920cc56a) SHA1(c75806691073f1f3bd54dcaca4c14155ecf4471d) ) // bitplanes 1,2 for bank 1,2
ROM_CONTINUE( 0x08000, 0x4000 ) // bitplanes 1,2 for bank 3,4
ROM_LOAD( "forcebrk6", 0x10000, 0x4000, CRC(08bca16a) SHA1(d5dcf5cf68a5090f467c076abb1b9cf0baffe272) ) // bitplanes 1,2 for bank 5,6
ROM_CONTINUE( 0x18000, 0x4000 ) // bitplanes 1,2 for bank 7,8
ROM_LOAD( "forcebrk8", 0x04000, 0x1000, CRC(a3a1131e) SHA1(e0b73c8b2c8ea6b31418bc642830875c5985f800) ) // bitplane 3 for bank 1,2
ROM_CONTINUE( 0x06000, 0x1000 )
ROM_CONTINUE( 0x0c000, 0x1000 ) // bitplane 3 for bank 3,4
ROM_CONTINUE( 0x0e000, 0x1000 )
ROM_CONTINUE( 0x14000, 0x1000 ) // bitplane 3 for bank 5,6
ROM_CONTINUE( 0x16000, 0x1000 )
ROM_CONTINUE( 0x1c000, 0x1000 ) // bitplane 3 for bank 7,8
ROM_CONTINUE( 0x1e000, 0x1000 )
ROM_REGION( 0x18000, "sprites", 0 )
ROM_LOAD( "brkthru.9", 0x00000, 0x8000, CRC(f54e50a7) SHA1(eccf4d859c26944271ec6586644b4730a72851fd) )
ROM_LOAD( "brkthru.10", 0x08000, 0x8000, CRC(fd156945) SHA1(a0575a4164217e63317886176ab7e59d255fc771) )
ROM_LOAD( "brkthru.11", 0x10000, 0x8000, CRC(c152a99b) SHA1(f96133aa01219eda357b9e906bd9577dbfe359c0) )
ROM_REGION( 0x0200, "proms", 0 )
ROM_LOAD( "brkthru.13", 0x0000, 0x0100, CRC(aae44269) SHA1(7c66aeb93577104109d264ee8b848254256c81eb) ) // red and green component
ROM_LOAD( "brkthru.14", 0x0100, 0x0100, CRC(f2d4822a) SHA1(f535e91b87ff01f2a73662856fd3f72907ca62e9) ) // blue component
ROM_REGION( 0x10000, "audiocpu", 0 )
ROM_LOAD( "brkthru.5", 0x8000, 0x8000, CRC(c309435f) SHA1(82914004c2b169a7c31aa49af83a699ebbc7b33f) )
ROM_END
ROM_START( darwin )
ROM_REGION( 0x20000, "maincpu", 0 )
ROM_LOAD( "darw_04.rom", 0x04000, 0x4000, CRC(0eabf21c) SHA1(ccad6b30fe9361e8a21b8aaf8116aa85f9e6bb19) )
ROM_LOAD( "darw_05.rom", 0x08000, 0x8000, CRC(e771f864) SHA1(8ba9f97c6abf035ceaf9f5505495708506f1b0c5) )
ROM_LOAD( "darw_07.rom", 0x10000, 0x8000, CRC(97ac052c) SHA1(8baa117472d46b99e5946f095b869de9b5c48f9a) )
ROM_LOAD( "darw_06.rom", 0x18000, 0x8000, CRC(2a9fb208) SHA1(f04a5502600e49e2494a87ec65a44a2843441d37) )
ROM_REGION( 0x02000, "chars", 0 )
ROM_LOAD( "darw_09.rom", 0x00000, 0x2000, CRC(067b4cf5) SHA1(fc752bb72e4850b71565afd1df0cbb4f732f131c) )
ROM_REGION( 0x20000, "tiles", 0 )
// background
// we do a lot of scatter loading here, to place the data in a format which can be decoded by MAME's standard functions
ROM_LOAD( "darw_03.rom", 0x00000, 0x4000, CRC(57d0350d) SHA1(6f904047485e669afb5f4b590818743111f010c6) ) // bitplanes 1,2 for bank 1,2
ROM_CONTINUE( 0x08000, 0x4000 ) // bitplanes 1,2 for bank 3,4
ROM_LOAD( "darw_02.rom", 0x10000, 0x4000, CRC(559a71ab) SHA1(a28de25e89e0d68332f4095b988827a9cb72c675) ) // bitplanes 1,2 for bank 5,6
ROM_CONTINUE( 0x18000, 0x4000 ) // bitplanes 1,2 for bank 7,8
ROM_LOAD( "darw_01.rom", 0x04000, 0x1000, CRC(15a16973) SHA1(5eb978a32be88176936e5d37b6ec18820d9720d8) ) // bitplane 3 for bank 1,2
ROM_CONTINUE( 0x06000, 0x1000 )
ROM_CONTINUE( 0x0c000, 0x1000 ) // bitplane 3 for bank 3,4
ROM_CONTINUE( 0x0e000, 0x1000 )
ROM_CONTINUE( 0x14000, 0x1000 ) // bitplane 3 for bank 5,6
ROM_CONTINUE( 0x16000, 0x1000 )
ROM_CONTINUE( 0x1c000, 0x1000 ) // bitplane 3 for bank 7,8
ROM_CONTINUE( 0x1e000, 0x1000 )
ROM_REGION( 0x18000, "sprites", 0 )
ROM_LOAD( "darw_10.rom", 0x00000, 0x8000, CRC(487a014c) SHA1(c9543df8115088b02019e76a6473ecc5f645a836) )
ROM_LOAD( "darw_11.rom", 0x08000, 0x8000, CRC(548ce2d1) SHA1(3b1757c70346ab4ee19ec85e7ae5137f8ccf446f) )
ROM_LOAD( "darw_12.rom", 0x10000, 0x8000, CRC(faba5fef) SHA1(848da4d4888f0218b737f1dc9b62944f68349a43) )
// A PCB has been found with the first PROM substituted with a TBP28S42 (4b56a744) SHA1(5fdc336d90c8a289c146c66f241dd217fc11bf35), see brkthrut ROM loading for how they did it.
// With that in mind, there's a one byte difference at 0x55 (0xf0 instead of 0x70). It is unknown if it's bitrot or if it's intended.
ROM_REGION( 0x0200, "proms", 0 )
ROM_LOAD( "df.12", 0x0000, 0x0100, CRC(89b952ef) SHA1(77dc4020a2e25f81fae1182d58993cf09d13af00) ) // red and green component
ROM_LOAD( "df.13", 0x0100, 0x0100, CRC(d595e91d) SHA1(5e9793f6602455c79afdc855cd13183a7f48ab1e) ) // blue component
ROM_REGION( 0x10000, "audiocpu", 0 )
ROM_LOAD( "darw_08.rom", 0x8000, 0x8000, CRC(6b580d58) SHA1(a70aebc6b4a291b4adddbb41d092b2682fc2d421) )
ROM_REGION( 0x600, "plds", ROMREGION_ERASEFF )
ROM_LOAD( "1-pal16r4pc.bin", 0x000, 0x104, CRC(c859298c) SHA1(7db617fec6eecaf3f6043d7446bc1786bbc2b08c) )
ROM_LOAD( "2-pal16r4pc.bin", 0x200, 0x104, CRC(226629c3) SHA1(fd5704dfbb91a46665050b27b15bd22527a46a6e) )
ROM_LOAD( "3-pal16r4pc.bin", 0x400, 0x104, CRC(b3e980a0) SHA1(b1dbf01621d1053e641570fcac6618562d0721b4) )
ROM_END
} // anonymous namespace
/*************************************
*
* Game driver(s)
*
*************************************/
GAME( 1986, brkthru, 0, brkthru, brkthru, brkthru_state, empty_init, ROT0, "Data East USA", "Break Thru (US)", MACHINE_SUPPORTS_SAVE )
GAME( 1986, brkthruj, brkthru, brkthru, brkthruj, brkthru_state, empty_init, ROT0, "Data East Corporation", "Kyohkoh-Toppa (Japan)", MACHINE_SUPPORTS_SAVE )
GAME( 1986, brkthrut, brkthru, brkthru, brkthruj, brkthru_state, empty_init, ROT0, "Data East Corporation (Tecfri license)", "Break Thru (Tecfri license)", MACHINE_SUPPORTS_SAVE )
GAME( 1986, forcebrk, brkthru, brkthru, brkthruj, brkthru_state, empty_init, ROT0, "bootleg", "Force Break (bootleg)", MACHINE_SUPPORTS_SAVE )
GAME( 1986, brkthrubl, brkthru, brkthru, brkthruj, brkthru_state, empty_init, ROT0, "bootleg", "Break Thru (bootleg)", MACHINE_SUPPORTS_SAVE )
GAME( 1986, darwin, 0, darwin, darwin, brkthru_state, empty_init, ROT270, "Data East Corporation", "Darwin 4078 (Japan)", MACHINE_SUPPORTS_SAVE )
|