/
dc_atomiswave.cpp
1516 lines (1293 loc) · 80.2 KB
/
dc_atomiswave.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:LGPL-2.1+
// copyright-holders: Samuele Zannoli, R. Belmont, ElSemi, David Haywood, Angelo Salese, Olivier Galibert, MetalliC
// thanks-to: CaH4e3, Deunan Knute, Stefanos Kornilios Mitsis Poiiitidis, Guru, Psyman, ZeZu
/**************************************************************************************************
Atomiswave (c) 2003 Sammy
===================================================================================================
Guru's Readme
-------------
Sammy Atomiswave (codename SYSTEM X) system overview
(high likely) developed by SI Electroncs Ltd, former Sammy subsidiary
released April 2003
The Atomiswave System is basically just a Sega Dreamcast using ROM carts.
PCB Layout
----------
Sammy AM3AGA-04 Main PCB 2002 (top side)
1111-00006701 (bottom side)
|--------------------------------------------|
|- TA8210AH D4721 3V_BATT|
|VGA BS62LV1023TC|
|VOL |
|SER |-----| PCM1725U |
|- |ROMEO| D4516161 |
|CN3 | | BIOS.IC23|
|--|SW1 |-----| |
| |-----| |-----| |
| 33.8688MHz|315- | |ROMEO| |
| |-----| |6232 | | | |
| |315- | |-----| |-----| |
| |6258 | 32.768kHz |
|J |-----| |
|A |-------------| D4564323 |
|M | | |
|M | | |--------| |
|A D4516161 | 315-6267 | | | |
| | | | SH4 | |
| | | | | |
| TD62064 | | | | |
| D4516161 | | |--------| |
| |-------------| |
| D4564323 |
|--| D4516161 D4516161 |
| W129AG 13.5MHz|
|--------------------------------------------|
Notes:
------
BS62LV1023TC-70 - Brilliance Semiconductor Low Power 128k x8 CMOS SRAM (TSOP32)
TA8210AH - Toshiba 19W x 2 Channel Power Amplifier
D4516161AG5 - NEC uPD4516161AG5-A80 1M x16 (16MBit) SDRAM (SSOP50)
D4564323 - NEC uPD4564323G5-A10 512K x 32 x 4 (64MBit) SDRAM (SSOP86)
D4721 - NEC uPD4721 RS232 Line Driver Receiver IC (SSOP20)
PCM1725U - Burr-Brown PCM1725U 16Bit Digital to Analog Converter (SOIC14)
2100 - New Japan Radio Co. Ltd. NJM2100 Dual Op Amp (SOIC8)
ROMEO - Sammy AX0201A01 'ROMEO' 4111-00000501 0250 K13 rebadged Fujitsu MBCG61723P-102 TP2H50 - CG61P series CMOS Gate Array ASIC (TQFP100)
315-6232 - SEGA 315-6232 custom ASIC (QFP100)
315-6258 - SEGA 315-6258 custom ASIC (QFP56)
315-6267 - SEGA 315-6267 custom ASIC (BGAxxx)
TD62064 - Toshiba TD62064 NPN 50V 1.5A Quad Darlington Driver (SOIC16)
SH4 - Hitachi SH-4 HD6417091RA CPU (BGA256)
BIOS.IC23 - Macronix 29L001MC-10 3.3volt (1MBit) FlashROM (SOP44, byte mode, reverse pinout: use reverse adapter or "dead bug" method, pinout equivalent to reversed MX29LV160 with four high address lines unused)
W129AG - IC Works W129AG Programmable Clock Frequency Generator, clock input of 13.5MHz (SOIC16)
SW1 - 2-position Dip Switch
VGA - 15 pin VGA out connector @ 31.5kHz
SER - 9 pin Serial connector \
VOL - Volume pot / These are on a small daughterboard that plugs into the main PCB via a multi-wire cable.
CN3 - 10 pin Speaker output & Extension serial connector
3V_BATT - Panasonic ML2020 3 Volt Coin Battery
Sega 837-14624R
later PCB revision from Sega, mostly same as above, notable differences:
ROMEO - SEGA 315-6434
315-6232 - SEGA 315-6232A
315-6258 - SEGA 315-6258A
315-6267 - SEGA 315-6318A
SH4 - Hitachi HD6417091T
BIOS.IC48 - Amic A29L004A 4MBit flash ROM (TSOP40) labeled FPR-24363
CN3 Pinout
Pin Function I/O Pin Function I/O
----------------------------------------------
1 Stereo L (+) Out | 2 TXD Out
3 Stereo L (-) Out | 4 RXD In
5 Stereo R (+) Out | 6 GND -
7 Stereo R (-) Out | 8 +5V Out
9 No Connection | 10 No Connection
The bottom of the PCB contains nothing significant except some connectors. One for the game cart, one for special controls
or I/O, one for a communication module, one for a cooling fan and one for the serial connection daughterboard.
Atomiswave cart PCB layout and game usage (revision 1.0 26/2/2011 5:59pm)
-----------------------------------------
Type 1 ROM Board:
AM3AGB-04
MROM PCB
2002
|----------------------------|
| XC9536 |
| IC18 IC17* IC10 |
| |
| |
| IC16* IC11 |
| |
| |
||-| IC15* IC12 |
|| | |
|| | |
|| |CN1 IC14* IC13 |
|| | |
||-| |
|----------------------------|
Notes:
* - Denotes those devices are on the other side of the PCB
CN1 - This connector plugs into the main board.
XC9536 - Xilinx XC9536 in-system programmable CPLD (PLCC44), stamped with a
game code. This code is different for each different game.
The last 3 digits seems to be for the usage.
F01 = CPLD/protection device and M01 = mask ROM
Game (sorted by code) Code
-----------------------------------------------
Sports Shooting USA AX0101F01
Dolphin Blue AX0401F01
Maximum Speed AX0501F01
Demolish Fist AX0601F01
Guilty Gear X Ver. 1.5 AX0801F01
Guilt Gear Isuka AX1201F01
Knights Of Valour Seven Spirits AX1301F01
Salaryman Kintaro AX1401F01
Ranger Mission AX1601F01
Faster Than Speed AX1701F01
Rumble Fish AX1801F01
Fist Of The North Star AX1901F01
Victory Furlong : Horse Racing AX2001F01
King Of Fighters NEOWAVE AX2201F01
Extreme Hunting AX2401F01
IC18 - Fujitsu 29DL640E 64M TSOP48 FlashROM. This ROM has no additional custom markings
The name in the archive has been devised purely for convenience.
This ROM holds the main program.
IC10 to IC17 - Custom-badged 128M TSOP48 mask ROMs.
IC10 - Not Populated for 7 ROMs or less (ROM 01 if 8 ROMs are populated)
IC11 - ROM 01 (or ROM 02 if 8 ROMs are populated)
IC12 - ROM 02 (or ROM 03 if 8 ROMs are populated)
IC13 - ROM 03 (or ROM 04 if 8 ROMs are populated)
IC14 - ROM 04 (or ROM 05 if 8 ROMs are populated)
IC15 - ROM 05 (or ROM 06 if 8 ROMs are populated)
IC16 - ROM 06 (or ROM 07 if 8 ROMs are populated)
IC17 - ROM 07 (or ROM 08 if 8 ROMs are populated)
ROM Codes
---------
Number
Game (sorted by code) Code of ROMs
-----------------------------------------------------------------------
Sports Shooting USA AX0101M01 to AX0104M01 4
Dolphin Blue AX0401M01 to AX0405M01 5
Maximum Speed AX0501M01 to AX0505M01 5
Demolish Fist AX0601M01 to AX0607M01 7
Guilty Gear X Ver. 1.5 AX0801M01 to AX0807M01 7
Guilty Gear Isuka AX1201M01 to AX1208M01 8
Knights Of Valour Seven Spirits AX1301M01 to AX1307M01 7
Salaryman Kintaro AX1401M01 to AX1407M01 7
Ranger Mission AX1601M01 to AX1605M01 5
Faster Than Speed AX1701M01 to AX1706M01 6
Rumble Fish AX1801M01 to AX1807M01 7
Fist Of The North Star AX1901M01 to AX1907M01 7
Victory Furlong : Horse Racing AX2001M01 to AX2007M01 7
King Of Fighters NEOWAVE AX2201M01 to AX2206M01 6
Extreme Hunting AX2401M01 to AX2406M01 6
Type 2 ROM Board:
AM3ALW-02
MROM2 PCB
2005
|----------------------------|
| FMEM1 |
| FMEM2* MROM12 |
| MROM11* |
| MROM9 |
| MROM10 MROM8*|
| XCR3128XL* MROM7* |
| |
||-| MROM6 |
|| | MROM3* MROM4 |
|| | MROM5*|
|| |CN1 MROM2 |
|| | MROM1* |
||-| |
|----------------------------|
Notes:
* - Denotes those devices are on the other side of the PCB
CN1 - This connector plugs into the main board.
XCR3128XL - Xilinx XCR3128XL in-system programmable 128 Macro-cell CPLD (TQFP100)
stamped with a game code. This code is different for each different game.
The last 3 digits seems to be for the usage.
F01 = CPLD/protection device and M01 = mask ROM
Game (sorted by code) Code
-----------------------------------------------
Samurai Spirits Tenkaichi Kenkakuden AX2901F01
Metal Slug 6 AX3001F01
The King Of Fighters XI AX3201F01
Neogeo Battle Coliseum AX3301F01
Rumble Fish 2 AX3401F01
FMEM1/FMEM2 - Fujitsu 29DL640E 64M TSOP48 FlashROM. This ROM has no additional custom markings
The name in the archive has been devised purely for convenience.
This ROM holds the main program.
This location is wired to accept TSOP56 ROMs, however the actual chip populated
is a TSOP48, using the middle pins. The other 2 pins on each side of the ROM
are not connected to anything.
MROM* - Custom-badged 256M SSOP70 mask ROMs
ROM Codes
---------
Number
Game (sorted by code) Code of ROMs
-----------------------------------------------------------------------
Samurai Spirits Tenkaichi Kenkakuden AX2901M01 to AX2907M01 7
Metal Slug 6 AX3001M01 to AX3004M01 4
The King Of Fighters XI AX3201M01 to AX3207M01 7
Neogeo Battle Coliseum AX3301M01 to AX3307M01 7
Rumble Fish 2 AX3401M01 to AX3405M01 5
Type 3 ROM Board:
This type is manufactured by Sega when Sammy merged with Sega.
171-8355A
PC BD A/W 128M FLASH
837-14608 (sticker for Extreme Hunting 2 Tournament Edition, Sega Bass Fishing Challenge, Sega Clay Challenge)
837-14695 (sticker for Dirty Pigskin Football)
|----------------------------|
| XC9536* U16 U2* |
| |
|J2 |
| |
| U4* U14 |
| |
| |
||-| |
|| | U17 U1* |
|| | |
|| |J1* |
|| | |
||-| U3* U15 |
|----------------------------|
Notes:
* - Denotes those parts are on the other side of the PCB
J1 - This connector plugs into the main board.
J2 - 6 pin connector for programming the XC9536 CPLD and/or the flash ROMs
XC9536 - Xilinx XC9536 in-system programmable CPLD (PLCC44), stamped with a
Sega 315-xxxx part number with a sticker over the top of it.
all known games on this type ROM BD have the same part# and decryption key.
Game Part# Sticker
---------------------------------------------------------
Extreme Hunting 2 Tournament Edition 315-6428P 315-6248
Dirty Pigskin Football 315-6248 -
Sega Bass Fishing Challenge 315-6248 -
Sega Bass Fishing Challenge Version A 315-6248 -
Sega Clay Challenge 315-6248 -
Animal Basket VM2001F01 -
Block Pong-Pong VM2001F01 -
WaiWai Drive VM2001F01 -
Faster Than Speed 837-14681 315-6248 - (not dumped, known to exists)
U* - Fujitsu MBM29PL12LM-10PCN 128M MirrorFlash TSOP56 flash ROM.
(configured as 16Mbytes x8bit or 8Mwords x16bit)
This ROM has no additional custom markings. The name in the archive has been devised
purely for convenience using the Sega 837- sticker number. The number of ROMs may vary
between games. So far all 8 positions have been seen populated. It's also possible all
positions are present when manufactured, each board is programmed to requirements and
depending on the total data length, some ROMs may be empty.
Development ROM board:
There are a few unreleased and many prototype game versions known to exist on this ROM board.
Currently Rumble Fish 1, Rumble Fish 2 prototypes and Sushi Bar are dumped.
PC BD SYSTEMX 3MODE FLASH Rev.B
1111-00001402
|--------------------------------------------|
| CN3 |
| |
||-| IC14 IC17 IC20 IC23 |
|| | XC9536 |
|| | |
|| | |
||CN1 IC12 IC15 IC18 IC21 IC24 IC26 |
|| | |
|| | |
|| | XC2S30 |
||-| IC13 IC16 IC19 IC22 IC25 IC27 |
| 17S30 |
| CN2 |
|--------------------------------------------|
Notes:
CN1 - This connector plugs into the main board through 'PC RELAY BD SX CRTG V1' adapter.
CN2 - 8 pin connector
CN3 - 6 pin connector for programming the XC9536 CPLD
XC9536 - Xilinx XC9536XL in-system programmable CPLD (PLCC44), stamped JULIE_DEV on RF2 proto
XC2S30 - Xilinx XC2S30 Spartan-II FPGA (TQFP144), Rumble Fish 2 have printed sticker A08
17S30 - Xilinx 17S30APC OTP Configuration PROM, stamped SXFLS
IC12-IC27 - Fujitsu MBM29DL640E 64M TSOP48 flash ROMs
Network Board
-------------
This board is required for Extreme Hunting 2 Tournament Edition (and possibly some other Sega-made Atomiswave carts)
although it doesn't need to be connected to a network or another Atomiswave unit to boot up. However it must be
plugged into the PCB in the communication slot or the game will not go in-game. It will boot but then displays
NETWORK BOARD ERROR if not present. Externally there's a hole for an RJ45 network cable and a slot for a
PIC16C621/PIC16C622 PIC enclosed in a black plastic housing. This is the same type as used in NAOMI etc. This
board probably acts like the NAOMI network DIMM board minus the on-board DIMM RAM storage.
837-14508R
171-8324C
(C) SEGA 2005
|-----------------------------------|
| RJ45 24LC0241* IC2 CN3 |
|LLLL K4S643232* IC14 |
| RTL8201 LLLL |
|25MHz |
| 6417710 IC4S* |
| XC3S200 |
|MAX3221 JP1 XCF01S* |
|CN5 33.333MHz JP2 CN2*|
|-----------------------------------|
Notes:
* - Denotes those parts are on the other side of the PCB
L - LED
RJ45 - RJ45 network connector
24LC0241 - EEPROM (SOIC8)
K4S643232- Samsung K4S643232 512k x 32bit x 4 banks synchronous DRAM (TSOPII-86)
RTL8201 - Realtek RTL8201 Single Port 10/100M Fast Ethernet IC (QFP48)
6417710 - Renesas HD6417710BPV SH3-DSP 32-Bit RISC Microcomputer SuperHTM RISC engine Family / SH7700 Series (BGA256)
XC3S200 - Xilinx Spartan XC3S200 FPGA (QFP100)
XCF01S - Xilinx XCF01S In-System Programmable 1Mbit PROM for Configuration of Xilinx FPGAs (TSSOP20)
MAX3221 - Maxim MAX3221 3.0V to 5.5V, 250kbps, RS-232 Transceivers with Auto Shutdown (TSSOP16)
JP1/2 - Jumpers, both set to 1-2
CN2 - This connector plugs into the main board
CN3 - 6 pin connector
CN5 - 3 position connector
IC2 - ST M29DW324DB 32M flash ROM (TSOP48)
IC4S - Spartan S29GL128N10TFIO1 128M flash ROM (TSOP56)
IC14 - socket for PIC16C621 mounted in a plastic plug-in case
PIC Usage:
Game Sega Part#
---------------------------------------------------
Extreme Hunting 2 Tournament Edition 317-0445-COM
AW-NET Network Board
--------------------
Sammy
AM3AJG-01
LAN PCB
2003
SAMLAN Rev: D
|-----------------------------------|
| RJ45 |
|PULSE |
| 25Mz |
| |
| RTL8139CL+* CN* |
| 315-6310* |
| |
| L46R |
|-----------------------------------|
Notes:
* - Denotes those parts are on the other side of the PCB
RJ45 - RJ45 network connector
PULSE - Pulse H0011 10/100 LAN Magnetics Module (SOIC16)
L46R - 93C46 compatible 128x8 EEPROM (SOIC8)
RTL8139CL+ - Realtek RTL8139CL+ 3.3 volt Single Chip Fast Ethernet Controller with Power Management (QFP120)
315-6310 - Sega 315-6310 Custom IC (QFP100)
CN - This connector plugs into the main board
Gun Sub Board
-------------
AM3AGT-02 GUN SUB PCB
|------------------|
|CN5 CN4 CN3 CN2|
| 74HC74 |
| |
| 74HC74 7CHC74 |
| 74HC74 |
| |
| CN1 |
|------------------|
Notes:
CN1 - 8 pin connector joining to I/O Expansion Module (which is plugged into main board)
CN2 - Gun connection for player 2 trigger and optical
CN3 - Gun connection for player 2 pump switch
CN4 - Gun connection for player 1 trigger and optical
CN5 - Gun connection for player 1 pump switch
Other games not dumped
----------------------
Miracle Stadium
Cancelled, prototypes known to exists
----------------------
Chase 1929
Force Five
Kenju
Premier Eleven
**************************************************************************************************/
#include "emu.h"
#include "dc_atomiswave.h"
//#include "machine/gunsense.h"
//#include "emupal.h"
#include "screen.h"
#include "speaker.h"
/*
0x00600280 r 0000dcba
a/b - 1P/2P coin inputs (JAMMA), active low
c/d - 3P/4P coin inputs (EX. IO board), active low
(ab == 0) -> BIOS skip RAM test
*/
uint32_t atomiswave_state::aw_modem_r(offs_t offset, uint32_t mem_mask)
{
switch(offset)
{
case 0x280/4:
return (ioport("COINS")->read() & 0x0f);
case 0x284/4:
// CHECKME: any game that uses non-canonical input method should be checked from here
return m_exid_in.read_safe(m_aw_ctrl_type);
}
osd_printf_verbose("MODEM: Unmapped read %08x\n", 0x600000+offset*4);
return 0;
}
/*
0x00600284 rw ddcc0000
cc/dd - set type of Maple devices at ports 2/3 (EX. IO board)
0 - regular Atomiswave controller
1 - DC lightgun
2,3 - DC mouse/trackball
0x00600288 rw 0000dcba
a - 1P coin counter
b - 2P coin counter
c - 1P coin lockout
d - 2P coin lockout
0x0060028C rw POUT CN304 (EX. IO board)
counter/lockout for 3P/4P in ggisuka (same bit mapping as above)
dolphin known to read it too (verify)
*/
void atomiswave_state::aw_modem_w(offs_t offset, uint32_t data, uint32_t mem_mask)
{
switch(offset)
{
case 0x284/4:
// EX ID output
// - initialized with 0xf0 only by:
// waidrive, sprtshot, samsptk, rangrmsn, claychal, basschal, anmlbskt
// - 0xf0 plus double sequence of 0x10->0x50->0x40->0x00 by:
// xtrmhnt2, xtrmhunt
// Real HW tests shows that writing to this will ping the value back to reads
// (open bus/drain?)
m_aw_ctrl_type = data & 0xf0;
if (m_exid_out)
m_exid_out->write(m_aw_ctrl_type);
logerror("%s: write to ctrl port %02x %08x\n", machine().describe_context(), data, mem_mask);
break;
}
osd_printf_verbose("MODEM: [%08x] write %x to %x, mask %x\n", 0x600000+offset*4, data, offset, mem_mask);
}
void atomiswave_state::aw_map(address_map &map)
{
/* Area 0 */
map(0x00000000, 0x0001ffff).rw(m_awflash, FUNC(macronix_29l001mc_device::read), FUNC(macronix_29l001mc_device::write));
map(0xa0000000, 0xa001ffff).rw(m_awflash, FUNC(macronix_29l001mc_device::read), FUNC(macronix_29l001mc_device::write));
map(0x00200000, 0x0021ffff).ram().share("sram"); // battery backed up RAM
map(0x005f6800, 0x005f69ff).rw(FUNC(atomiswave_state::dc_sysctrl_r), FUNC(atomiswave_state::dc_sysctrl_w));
map(0x005f6c00, 0x005f6cff).mirror(0x02000000).m(m_maple, FUNC(maple_dc_device::amap));
map(0x005f7000, 0x005f70ff).mirror(0x02000000).m(m_naomig1, FUNC(naomi_g1_device::submap)).umask64(0x0000ffff0000ffff);
map(0x005f7400, 0x005f74ff).mirror(0x02000000).m(m_naomig1, FUNC(naomi_g1_device::amap));
map(0x005f7800, 0x005f78ff).mirror(0x02000000).m(m_g2if, FUNC(dc_g2if_device::amap));
map(0x005f7c00, 0x005f7cff).mirror(0x02000000).m(m_powervr2, FUNC(powervr2_device::pd_dma_map));
map(0x005f8000, 0x005f9fff).mirror(0x02000000).m(m_powervr2, FUNC(powervr2_device::ta_map));
map(0x00600000, 0x006007ff).rw(FUNC(atomiswave_state::aw_modem_r), FUNC(atomiswave_state::aw_modem_w)).umask64(0xffffffffffffffff);
map(0x00700000, 0x00707fff).rw(FUNC(atomiswave_state::dc_aica_reg_r), FUNC(atomiswave_state::dc_aica_reg_w));
map(0x00710000, 0x0071000f).mirror(0x02000000).rw("aicartc", FUNC(aicartc_device::read), FUNC(aicartc_device::write)).umask64(0x0000ffff0000ffff);
map(0x00800000, 0x00ffffff).rw(FUNC(atomiswave_state::soundram_r), FUNC(atomiswave_state::soundram_w)); // sound RAM (8 MB)
/* Area 1 - half the texture memory, like dreamcast, not naomi */
// texture memory 64 bit access
map(0x04000000, 0x047fffff).mirror(0x02800000).ram().share("dc_texture_ram");
// apparently this actually accesses the same memory as the 64-bit texture memory access, but in a different format, keep it apart for now
map(0x05000000, 0x057fffff).mirror(0x02800000).ram().share("frameram");
// 0x067xxxxx written by maxspeed title screen animation
/* Area 2 */
map(0x08000000, 0x0bffffff).noprw(); // 'Unassigned'
/* Area 3 */
map(0x0c000000, 0x0cffffff).ram().share("dc_ram");
map(0x0d000000, 0x0dffffff).ram().share("dc_ram"); // extra ram on Naomi (mirror on DC)
map(0x0e000000, 0x0effffff).ram().share("dc_ram"); // mirror
map(0x0f000000, 0x0fffffff).ram().share("dc_ram"); // mirror
map(0x8c000000, 0x8cffffff).ram().share("dc_ram"); // RAM access through cache
map(0x8d000000, 0x8dffffff).ram().share("dc_ram"); // RAM access through cache
/* Area 4 - half the texture memory, like dreamcast, not naomi */
map(0x10000000, 0x107fffff).mirror(0x02000000).w(m_powervr2, FUNC(powervr2_device::ta_fifo_poly_w));
map(0x10800000, 0x10ffffff).w(m_powervr2, FUNC(powervr2_device::ta_fifo_yuv_w));
map(0x11000000, 0x117fffff).w(m_powervr2, FUNC(powervr2_device::ta_texture_directpath0_w)).mirror(0x00800000); // access to texture / framebuffer memory (either 32-bit or 64-bit area depending on SB_LMMODE0 register - cannot be written directly, only through dma / store queue
/* 0x12000000 -0x13ffffff Mirror area of 0x10000000 -0x11ffffff */
map(0x13000000, 0x137fffff).w(m_powervr2, FUNC(powervr2_device::ta_texture_directpath1_w)).mirror(0x00800000); // access to texture / framebuffer memory (either 32-bit or 64-bit area depending on SB_LMMODE1 register - cannot be written directly, only through dma / store queue
/* Area 5 */
//map(0x14000000, 0x17ffffff).noprw(); // MPX Ext.
/* Area 6 */
//map(0x18000000, 0x1bffffff).noprw(); // Unassigned
/* Area 7 */
//map(0x1c000000, 0x1fffffff).noprw(); // SH4 Internal
}
void atomiswave_state::aw_port(address_map &map)
{
// ???
}
/*
ALL.Net board
-------------
Block diagram:
GPIO Port A - Jumpers, LEDs
PIC16 GPIO Port B - I2C EEPROM
| |
G2 Bus <-> FPGA <-> SH-3 <-> Ethernet PHY <-> Ethernet
|
|--- boot flash ROM 4MB
|--- SDRAM 8MB
|--- data buffer flash ROM 16MB
SH-3 external address space
00000000 - 003fffff boot flash ROM (IC2)
0c000000 - 0c7fffff SDRAM
10000000 - 10ffffff data buffer flash ROM (IC4)
16000000 rw FPGA_INT_OUT interrupt to host, bit 0 active low
16000004 rw FPGA_INT_IN interrupt from host (SH-3 IRQ0 line), bit 0 active low
16000008 rw FPGA_INT_MASK enable interrupt from host, bit 0 active low
1600000c rw FPGA_READY bit 0 active high
16000010 r FPGA_REVISION 8bit value
16002000 - 16007fff shared RAM (FPGA internal)
SH-3 GPIO PortA bits
2-3 - jumpers x2 (inputs, active low)
4-7 - LEDs x4 (outputs, active low)
SH-3 GPIO PortB bits (24LC024 I2C EEPROM)
0 - I2C SCL
6 - unknown, set to output 1
7 - I2C SDA
SH-4 address space
01000000 r ID "G2IFSOJ AM"
01000020 w interrupt to net board, bit 0 active low
01000024 w interrupt from net board (HOLLY EXT IRQ line), bit 0 active low
01000028 w enable interrupt from net board, bit 0 active low
0100002c w net board reset?, bit 0 active high
01000030 r FPGA_READY?
01000100 - 01000114 protection registers, probably mirror of 010000xx
01000400/01000800/01001400/01001800 r at POST, tries to read these, discards the other three values and put the result to 0xc00efc8, expecting a value to "SPAG" / 0x53504147 for a flag at PC=cf1a108, connection handshake related?
01010000 - 01016000 shared RAM (FPGA internal)
protection registers (16bit):
00-09 r ID mirror? (unused)
0a r some ID? value (unused)
0c w RNG seed?, game write here random value during init
0e w data offset/index (0-3 in xtrmhnt2)
10 r data read, xtrmhnt2 expecting: 1f9f, 1f03, 1f1c, 1f57
12 rw control reg?, write 0001 after offset set, wait for bit1=1 before data read
14 rw PIC detect/init reg, game check if bit0=1 (probably means if PIC present), then write RNG register, then write 0003, then wait for bit2=1 (probably means PIC initialised OK)
*/
uint64_t atomiswave_xtrmhnt2_state::allnet_hack_r(offs_t offset, uint64_t mem_mask)
{
// disable ALL.Net board check
// PC checks refers to -nodrc || -drc || -drc -debug
logerror("%s: ALL.net check %x (%x)\n", machine().describe_context(), offset * 8, mem_mask);
// "100 NETBD NOT RESPOND" right off the bat
if (m_maincpu->pc() == 0xc03cb30 ||
m_maincpu->pc() == 0xc03cb10 ||
m_maincpu->pc() == 0xc03cb2e)
{
dc_ram[0x357fe/8] |= (uint64_t)0x200 << 48;
dc_ram[0x358e2/8] |= (uint64_t)0x200 << 16;
dc_ram[0x38bb2/8] |= (uint64_t)0x200 << 16;
dc_ram[0x38bee/8] |= (uint64_t)0x200 << 48;
}
// "ERROR: THIS IS NOT ACCEPTABLE BY MAIN BOARD"
if (m_maincpu->pc() == 0xc108240 ||
m_maincpu->pc() == 0xc108210 ||
m_maincpu->pc() == 0xc10823e)
dc_ram[0x9acc8/8] = (dc_ram[0x9acc8/8] & 0xffffffffffff0000U) | (uint64_t)0x0009;
return 0;
}
void atomiswave_xtrmhnt2_state::aw_map(address_map &map)
{
atomiswave_state::aw_map(map);
// ALL.net
map(0x01000000, 0x0100011f).r(FUNC(atomiswave_xtrmhnt2_state::allnet_hack_r));
// map(0x01001800, 0x01001803).lr32(NAME([]() -> u32 { return 0x53504147; }));
}
// Atomiswave - inputs are read as standard Dreamcast controllers.
// Controller bit patterns:
//
// SHOT3 (1<<0)
// SHOT2 (1<<1)
// SHOT1 (1<<2)
// START (1<<3)
// UP (1<<4)
// DOWN (1<<5)
// LEFT (1<<6)
// RIGHT (1<<7)
// SHOT5 (1<<9)
// SHOT4 (1<<10)
// SERVICE (1<<13)
// TEST (1<<14)
// 2 joysticks variant
static INPUT_PORTS_START( aw2c )
PORT_START("P1.0")
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START1 )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1)
PORT_START("P1.1")
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_SERVICE_NO_TOGGLE( 0x40, IP_ACTIVE_LOW )
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_SERVICE1 )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1)
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(1)
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_PLAYER(1)
PORT_START("P2.0")
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2)
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2)
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2)
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2)
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START2 )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2)
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2)
PORT_START("P2.1")
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_SERVICE2 )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2)
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(2)
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_PLAYER(2)
PORT_START("COINS")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
PORT_BIT( 0x0c, IP_ACTIVE_LOW, IPT_UNUSED )
INPUT_PORTS_END
// ggisuka
static INPUT_PORTS_START( aw4c )
PORT_INCLUDE( aw2c )
PORT_MODIFY("COINS")
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN3 )
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN4 )
PORT_START("EXID_IN")
// return 0x0x for p3/p4 connectors to work properly
PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNUSED )
PORT_START("P3.0")
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(3)
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(3)
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(3)
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(3)
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START3 )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3)
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3)
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(3)
PORT_START("P3.1")
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) // IPT_SERVICE3 )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(3)
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(3)
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_PLAYER(3)
PORT_START("P4.0")
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(4)
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(4)
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(4)
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(4)
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START4 )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(4)
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(4)
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(4)
PORT_START("P4.1")
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) //IPT_SERVICE4 )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(4)
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(4)
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_PLAYER(4)
INPUT_PORTS_END
// Single-player wheel variant
static INPUT_PORTS_START( aw1w )
PORT_START("P1.0")
PORT_BIT( 0xf1, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START1 )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
PORT_START("P1.1")
PORT_SERVICE_NO_TOGGLE( 0x40, IP_ACTIVE_LOW )
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_SERVICE1 )
PORT_BIT( 0x9f, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_START("P2.A0") /* steering */
PORT_BIT( 0xff, 0x80, IPT_PADDLE ) PORT_SENSITIVITY(100) PORT_KEYDELTA(4)
PORT_START("P2.A1") /* gas pedal */
PORT_BIT( 0xff, 0x00, IPT_PEDAL ) PORT_SENSITIVITY(100) PORT_KEYDELTA(20)
PORT_START("P2.A2") /* brake */
PORT_BIT( 0xff, 0x00, IPT_PEDAL2 ) PORT_SENSITIVITY(100) PORT_KEYDELTA(40)
PORT_START("P2.A3") /* steering */
PORT_BIT( 0xff, 0x80, IPT_PADDLE ) PORT_SENSITIVITY(100) PORT_KEYDELTA(4)
PORT_START("P2.A4") /* gas pedal */
PORT_BIT( 0xff, 0x00, IPT_PEDAL ) PORT_SENSITIVITY(100) PORT_KEYDELTA(20)
PORT_START("P2.A5") /* brake */
PORT_BIT( 0xff, 0x00, IPT_PEDAL2 ) PORT_SENSITIVITY(100) PORT_KEYDELTA(40)
PORT_START("COINS")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
PORT_BIT( 0x0c, IP_ACTIVE_LOW, IPT_UNUSED )
INPUT_PORTS_END
void atomiswave_state::aw_base(machine_config &config)
{
naomi_aw_base(config);
m_maincpu->set_addrmap(AS_PROGRAM, &atomiswave_state::aw_map);
m_maincpu->set_addrmap(AS_IO, &atomiswave_state::aw_port);
MACRONIX_29L001MC(config, "awflash");
aw_rom_board &rom_board(AW_ROM_BOARD(config, "rom_board", 0));
rom_board.irq_callback().set(FUNC(dc_state::g1_irq));
MCFG_MACHINE_RESET_OVERRIDE(dc_state,dc_console)
NVRAM(config, "sram", nvram_device::DEFAULT_ALL_0);
}
void atomiswave_state::aw1c(machine_config &config)
{
aw_base(config);
dc_controller_device &dcctrl0(DC_CONTROLLER(config, "dcctrl0", 0, m_maple, 0));
dcctrl0.set_port_tags("P1.0", "P1.1", "P1.A0", "P1.A1", "P1.A2", "P1.A3", "P1.A4", "P1.A5");
// TODO: isn't it supposed to be just one controller?
dc_controller_device &dcctrl1(DC_CONTROLLER(config, "dcctrl1", 0, m_maple, 1));
dcctrl1.set_port_tags("P2.0", "P2.1", "P2.A0", "P2.A1", "P2.A2", "P2.A3", "P2.A4", "P2.A5");
}
void atomiswave_state::aw2c(machine_config &config)
{
aw_base(config);
dc_controller_device &dcctrl0(DC_CONTROLLER(config, "dcctrl0", 0, m_maple, 0));
dcctrl0.set_port_tags("P1.0", "P1.1", "P1.A0", "P1.A1", "P1.A2", "P1.A3", "P1.A4", "P1.A5");
dc_controller_device &dcctrl1(DC_CONTROLLER(config, "dcctrl1", 0, m_maple, 1));
dcctrl1.set_port_tags("P2.0", "P2.1", "P2.A0", "P2.A1", "P2.A2", "P2.A3", "P2.A4", "P2.A5");
}
void atomiswave_state::aw4c(machine_config &config)
{
aw2c(config);
dc_controller_device &dcctrl2(DC_CONTROLLER(config, "dcctrl2", 0, m_maple, 2));
dcctrl2.set_port_tags("P3.0", "P3.1", "P3.A0", "P3.A1", "P3.A2", "P3.A3", "P3.A4", "P3.A5");
dc_controller_device &dcctrl3(DC_CONTROLLER(config, "dcctrl3", 0, m_maple, 3));
dcctrl3.set_port_tags("P4.0", "P4.1", "P4.A0", "P4.A1", "P4.A2", "P4.A3", "P4.A4", "P4.A5");
}
#define ROM_LOAD16_WORD_SWAP_BIOS(bios,name,offset,length,hash) \
ROMX_LOAD(name, offset, length, hash, ROM_GROUPWORD | ROM_BIOS(bios))
#define AW_BIOS \
ROM_REGION64_LE( 0x200000, "awflash", 0) \
ROM_SYSTEM_BIOS( 0, "bios0", "Sammy BIOS" ) \
ROM_LOAD16_WORD_SWAP_BIOS( 0, "bios0.ic23", 0x000000, 0x020000, CRC(719b2b0b) SHA1(b4c1a26bc8906d5275eb28c701dff2b9365bcdfa) ) \
ROM_LOAD16_WORD_SWAP_BIOS( 0, "bios1.ic23", 0x000000, 0x020000, CRC(d3e80a9f) SHA1(33024f9d51c04884c2b44ce146f340e7a857b959) ) \
ROM_SYSTEM_BIOS( 1, "bios1", "Sega BIOS" ) \
ROM_LOAD16_WORD_SWAP_BIOS( 1, "fpr-24363.ic48", 0x000000, 0x020000, CRC(82a105f0) SHA1(5128fe2ddcced77332bdcab691c09958051fa564) ) \
ROM_CONTINUE( 0x000000, 0x020000 ) \
ROM_CONTINUE( 0x000000, 0x020000 ) \
ROM_CONTINUE( 0x000000, 0x020000 )
ROM_START( awbios )
AW_BIOS
ROM_REGION( 0x8400000, "rom_board", ROMREGION_ERASE)
ROM_END
/**********************************************
*
* Atomiswave cart defines
*
*********************************************/
// note: games with AW-NET features, i.e. NGBC or KOF NW, have "CUSTOMER ID" data (shown in NETWORK SETTINGS) in ROM @ 7FE000 (not encrypted, 8 bytes of data followed by 2 bytes of bytesumm)
// EN cartridges have this area empty (FF-filled), i.e. AW-NET features not used.
// JP cartridges have it filled with unique ID, which also means dumps of several JP cartridges will differ by this few bytes.
void atomiswave_state::init_atomiswave()
{
uint64_t *ROM = (uint64_t *)memregion("awflash")->base();
// patch out long startup delay
// (Sammy logo on -bios 0 before "ALL BACKUP DATA WAS CLEARED" msg)
// Notice that you also need to zap NVRAM contents in order to boot without this patch.
ROM[0x98e/8] = (ROM[0x98e/8] & 0xffffffffffffU) | (uint64_t)0x0009<<48;
m_maincpu->sh2drc_add_fastram(0x00000000, 0x0001ffff, true, ROM);
m_maincpu->sh2drc_add_fastram(0xa0000000, 0xa001ffff, true, ROM);
}
ROM_START( fotns )
AW_BIOS
ROM_REGION( 0x8000000, "rom_board", ROMREGION_ERASE)
ROM_LOAD( "ax1901p01.ic18", 0x0000000, 0x0800000, CRC(a06998b0) SHA1(d617691db5170f6db176e40fc732966d523fd8cf) )
ROM_LOAD( "ax1901m01.ic11", 0x1000000, 0x1000000, CRC(ff5a1642) SHA1(49cefcce173f9a811fe9c0c07bee53aeba2bc3a8) )
ROM_LOAD( "ax1902m01.ic12", 0x2000000, 0x1000000, CRC(d9aae8a9) SHA1(bf87034088be0847b6e297b7665e0ea4d8cba631) )
ROM_LOAD( "ax1903m01.ic13", 0x3000000, 0x1000000, CRC(1711b23d) SHA1(ab628b2ec678839c75245e245297818ef1592d3b) )
ROM_LOAD( "ax1904m01.ic14", 0x4000000, 0x1000000, CRC(443bfb26) SHA1(6f7751afa0ca55dd0679758b27bed92b31c1b050) )
ROM_LOAD( "ax1905m01.ic15", 0x5000000, 0x1000000, CRC(eb1cada0) SHA1(459d21d622c72606f1d3095e8a25b6c4adccf8ab) )
ROM_LOAD( "ax1906m01.ic16", 0x6000000, 0x1000000, CRC(fe6da168) SHA1(d4ab6443383469bb5a4337005de917627a2e21cc) )
ROM_LOAD( "ax1907m01.ic17", 0x7000000, 0x1000000, CRC(9d3a0520) SHA1(78583fd171b34439f77a04a97ebe3c9d1bab61cc) )
ROM_PARAMETER(":rom_board:key", "c2") // ax1901f01
ROM_END
ROM_START( rangrmsn )
AW_BIOS
ROM_REGION( 0x8000000, "rom_board", ROMREGION_ERASE)
ROM_LOAD( "ax1601p01.ic18", 0x0000000, 0x0800000, CRC(00a74fbb) SHA1(57cc1eedd22d1f553956a825e69a597309ee2bef) )
ROM_LOAD( "ax1601m01.ic11", 0x1000000, 0x1000000, CRC(f34eed33) SHA1(1c171fb8aa95877f81ed78652d4a9ff80f7713ff) )
ROM_LOAD( "ax1602m01.ic12", 0x2000000, 0x1000000, CRC(a7d59efb) SHA1(a40938ce1399babefc8cf02f579a86cf08e211ef) )
ROM_LOAD( "ax1603m01.ic13", 0x3000000, 0x1000000, CRC(7c0aa241) SHA1(3e0e5ff3307dcfa52998fb9b4b14bf54bd056a99) )
ROM_LOAD( "ax1604m01.ic14", 0x4000000, 0x1000000, CRC(d2369144) SHA1(da1eae9957d27d1682c4191780cf51b32dfe6659) )
ROM_LOAD( "ax1605m01.ic15", 0x5000000, 0x1000000, CRC(0c11c1f9) SHA1(0585db60618c5b97f9b7c203baf7e5ac90883ca6) )
ROM_PARAMETER(":rom_board:key", "88") // ax1601f01
ROM_END
ROM_START( sprtshot )
AW_BIOS
ROM_REGION( 0x8000000, "rom_board", ROMREGION_ERASE)
ROM_LOAD( "ax0101p01.ic18", 0x0000000, 0x0800000, CRC(b3642b5d) SHA1(85eabd9551aefb825ae8eb6422092fb5a58d60f6) )
ROM_LOAD( "ax0101m01.ic11", 0x1000000, 0x1000000, CRC(1e39184d) SHA1(663e0cb9f43a0f89d9841e04b3d009f6c5e88d5e) )
ROM_LOAD( "ax0102m01.ic12", 0x2000000, 0x1000000, CRC(700764d1) SHA1(310f1606f7bbed1012c119f1ef5d89d231d8489e) )
ROM_LOAD( "ax0103m01.ic13", 0x3000000, 0x1000000, CRC(6144e7a8) SHA1(4d4341082f008dfd93ef5bf32a44c80869ef02a8) )
ROM_LOAD( "ax0104m01.ic14", 0x4000000, 0x1000000, CRC(ccb72150) SHA1(a1032d321c27f9ff43da41f20b8687bf1958ddc9) )
ROM_PARAMETER(":rom_board:key", "64") // ax0101f01
ROM_END
ROM_START( xtrmhunt )
AW_BIOS
ROM_REGION( 0x8000000, "rom_board", ROMREGION_ERASE)
ROM_LOAD( "ax2401p01.ic18", 0x0000000, 0x0800000, CRC(8e2a11f5) SHA1(b5106314fb8d4483254e83ac3982039bb60a78e8) )
ROM_LOAD( "ax2401m01.ic11", 0x1000000, 0x1000000, CRC(76dbc286) SHA1(8f36ca94b8e67c76e0f90b21debc5ac7890f0da1) )
ROM_LOAD( "ax2402m01.ic12", 0x2000000, 0x1000000, CRC(cd590ea2) SHA1(ee5e38bf68e95da665be478ebba9cc5ffed52bb7) )
ROM_LOAD( "ax2403m01.ic13", 0x3000000, 0x1000000, CRC(06f62eb5) SHA1(f7e8d1dda6bb59ca2bc7cfa1105889b9e8e6d55d) )
ROM_LOAD( "ax2404m01.ic14", 0x4000000, 0x1000000, CRC(759ef5cb) SHA1(27ac2d12c6fb358b3d631c017c7b693e5ad95fd7) )
ROM_LOAD( "ax2405m01.ic15", 0x5000000, 0x1000000, CRC(940d77f1) SHA1(eefdfcb92873032dc7d9ff9310bf5ed715c8bf4f) )
ROM_LOAD( "ax2406m01.ic16", 0x6000000, 0x1000000, CRC(cbcf2c5d) SHA1(61362fabcbb3bfc01c996748a7ca65f8a0e02f2f) )
ROM_PARAMETER(":rom_board:key", "e4") // ax2401f01
ROM_END
ROM_START( xtrmhnt2 )
AW_BIOS
ROM_REGION( 0x8000000, "rom_board", ROMREGION_ERASE)
ROM_LOAD( "610-0752.u3", 0x0000000, 0x1000000, CRC(bab6182e) SHA1(4d25256c81941316887cbb4524a203922f5b7104) )
ROM_LOAD( "610-0752.u1", 0x1000000, 0x1000000, CRC(3086bc47) SHA1(eb7b04db90d296985528f0cfdd4545f184c40b64) )
ROM_LOAD( "610-0752.u4", 0x2000000, 0x1000000, CRC(9787f145) SHA1(8445ede0477f70fbdc113810b80356945ce498d2) )
ROM_LOAD( "610-0752.u2", 0x3000000, 0x1000000, CRC(d3a88b31) SHA1(ccf14367e4e7efbc2cc835f3b001fd6d64302a5e) )
ROM_LOAD( "610-0752.u15", 0x4000000, 0x1000000, CRC(864a6342) SHA1(fb97532d5dd00f8520fdaf68dfcd1ea627bdf90a) )
ROM_LOAD( "610-0752.u17", 0x5000000, 0x1000000, CRC(a79fb1fa) SHA1(f75c5b574fd79677b926c595b369e95605a3c848) )
ROM_LOAD( "610-0752.u14", 0x6000000, 0x1000000, CRC(ce83bcc7) SHA1(e2d324a5a7eacbec7b0df9a4b9e276521bb9ab80) )
ROM_LOAD( "610-0752.u16", 0x7000000, 0x1000000, CRC(8ac71c76) SHA1(080e41e633bf082fc536781541c6031d1ac81939) )
ROM_PARAMETER(":rom_board:key", "2a") // 315-6248
ROM_REGION( 0x1400000, "network", 0) // network board
ROM_LOAD( "fpr-24330a.ic2", 0x000000, 0x400000, CRC(8d89877e) SHA1(6caafc49114eb0358e217bc2d1a3ab58a93c8d19) )
ROM_LOAD( "flash128.ic4s", 0x400000, 0x1000000, CRC(866ed675) SHA1(2c4c06935b7ab1876e640cede51713b841833567) )
ROM_END
// Sammy AM3AHC-01 type board
// Build:Jan 24 2005 14:12:29
ROM_START( anmlbskt )
AW_BIOS
ROM_REGION( 0x4000000, "rom_board", ROMREGION_ERASEFF)
ROM_LOAD( "vm2001f01.u3", 0x0000000, 0x800000, CRC(4fb33380) SHA1(9070990515544e6e9a1d24b1e0597cdea926a4c9) )
// U1 Populated, Empty
ROM_LOAD( "vm2001f01.u4", 0x1000000, 0x800000, CRC(7cb2e7c3) SHA1(8b4e46cf19fbc1d613af75c52faebefb2776280b) )
ROM_LOAD( "vm2001f01.u2", 0x1800000, 0x800000, CRC(386070a1) SHA1(bf46980ea822b4cfe67c622f0104bf793031f4ad) )
ROM_LOAD( "vm2001f01.u15", 0x2000000, 0x800000, CRC(2bb1be28) SHA1(fda7967d6c0341a608c52087ae3d461554760435) ) // data doesn't belong to this game, possibly a left-over from another game
// U17 Populated, Empty
// U14 Populated, Empty
// U16 Populated, Empty
ROM_PARAMETER(":rom_board:key", "45") // vm2001f01
ROM_END
// no case, Sega 171-8355A type board, stickers: VM20-6101-1 V20T0069
// Build:Jan 19 2005 13:09:07
ROM_START( anmlbskta )
AW_BIOS
ROM_REGION( 0x4000000, "rom_board", ROMREGION_ERASEFF)
ROM_LOAD( "u3", 0x0000000, 0x1000000, CRC(cd082af3) SHA1(d0bcce79fc9bdce04ebfe57fe8b5f7c59ef5fdf3) )
ROM_LOAD( "u1", 0x1000000, 0x1000000, CRC(4a2a01d3) SHA1(20d98b137efec539451c0573b2928c3a92be5743) ) // identical to parent set U4+U2
ROM_LOAD( "u4", 0x2000000, 0x1000000, CRC(646e9773) SHA1(dd081a9a42edca956f96124545772d4687ca2113) ) // data not belongs to this game, more looks like random trash
ROM_LOAD( "u2", 0x3000000, 0x1000000, CRC(b9162d97) SHA1(7f561617fa0538da554ad6f6c4d6a20e739491dc) ) // data not belongs to this game, more looks like random trash
// U14-U17 not populated
ROM_PARAMETER(":rom_board:key", "45") // vm2001f01
ROM_END
// game have 2 sets of graphics switched via "LOCATION" setting: SC (Shopping Center) kids oriented, and NORMAL
// since this version SC by default, possible it is special SC ver and there also was earlier regular game version
// no case, Sega 171-8355A type board, stickers: VM20-6101-1 V20T0004
ROM_START( blokpong )