-
Notifications
You must be signed in to change notification settings - Fork 1
/
neoyume_gamedb.spin2
3040 lines (2842 loc) · 86.7 KB
/
neoyume_gamedb.spin2
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
DAT
gamelist word ' Note that these are in alphabetical order _of full title_
wordfit @game_2020bb - @gamedb_base
wordfit @game_240ptest - @gamedb_base
wordfit @game_3countb - @gamedb_base
wordfit @game_aodk - @gamedb_base
wordfit @game_alpham2 - @gamedb_base
wordfit @game_androdun - @gamedb_base
wordfit @game_aof - @gamedb_base
wordfit @game_aof2 - @gamedb_base
wordfit @game_aof3 - @gamedb_base
wordfit @game_bakatono - @gamedb_base
wordfit @game_b2b - @gamedb_base
wordfit @game_bangbead - @gamedb_base
wordfit @game_bstars - @gamedb_base
wordfit @game_bstars2 - @gamedb_base
wordfit @game_flipshot - @gamedb_base
wordfit @game_blazstar - @gamedb_base
wordfit @game_bjourney - @gamedb_base
wordfit @game_breakers - @gamedb_base
wordfit @game_breakrev - @gamedb_base
wordfit @game_burningf - @gamedb_base
wordfit @game_ctomaday - @gamedb_base
wordfit @game_crsword - @gamedb_base
wordfit @game_crswd2bl - @gamedb_base
wordfit @game_cyberlip - @gamedb_base
wordfit @game_doubledr - @gamedb_base
wordfit @game_eightman - @gamedb_base
wordfit @game_fatfury1 - @gamedb_base
wordfit @game_fatfury2 - @gamedb_base
wordfit @game_fatfursp - @gamedb_base
wordfit @game_fatfury3 - @gamedb_base
wordfit @game_fightfev - @gamedb_base
wordfit @game_fbfrenzy - @gamedb_base
wordfit @game_galaxyfg - @gamedb_base
wordfit @game_ganryu - @gamedb_base
wordfit @game_ghostlop - @gamedb_base
wordfit @game_gpilots - @gamedb_base
wordfit @game_goalx3 - @gamedb_base
wordfit @game_gururin - @gamedb_base
wordfit @game_ironclad - @gamedb_base
wordfit @game_janshin - @gamedb_base
wordfit @game_kabukikl - @gamedb_base
wordfit @game_karnovr - @gamedb_base
wordfit @game_kof94 - @gamedb_base
wordfit @game_kof95 - @gamedb_base
wordfit @game_kof96 - @gamedb_base
wordfit @game_kof97 - @gamedb_base
wordfit @game_kof98h - @gamedb_base
wordfit @game_kof99ka - @gamedb_base
wordfit @game_kof2000n - @gamedb_base
wordfit @game_kof2001h - @gamedb_base
wordfit @game_kof2002 - @gamedb_base
wordfit @game_kof2003h - @gamedb_base
wordfit @game_kotmh - @gamedb_base
wordfit @game_kotm2 - @gamedb_base
wordfit @game_kizuna - @gamedb_base
wordfit @game_lastblad - @gamedb_base
wordfit @game_lastbld2 - @gamedb_base
wordfit @game_lresort - @gamedb_base
wordfit @game_lbowling - @gamedb_base
wordfit @game_legendos - @gamedb_base
wordfit @game_mahretsu - @gamedb_base
wordfit @game_magdrop2 - @gamedb_base
wordfit @game_magdrop3 - @gamedb_base
wordfit @game_maglord - @gamedb_base
wordfit @game_marukodq - @gamedb_base
wordfit @game_mosyougi - @gamedb_base
wordfit @game_matrim - @gamedb_base
wordfit @game_mslug - @gamedb_base
wordfit @game_mslug2 - @gamedb_base
wordfit @game_mslugx - @gamedb_base
wordfit @game_mslug3h - @gamedb_base
wordfit @game_mslug4h - @gamedb_base
wordfit @game_mslug5h - @gamedb_base
wordfit @game_minasan - @gamedb_base
wordfit @game_miexchng - @gamedb_base
wordfit @game_mutnat - @gamedb_base
wordfit @game_nam1975 - @gamedb_base
wordfit @game_neobombe - @gamedb_base
wordfit @game_neodrift - @gamedb_base
wordfit @game_neocup98 - @gamedb_base
wordfit @game_neomrdo - @gamedb_base
wordfit @game_turfmast - @gamedb_base
wordfit @game_nitd - @gamedb_base
wordfit @game_ncombat - @gamedb_base
wordfit @game_ncommand - @gamedb_base
wordfit @game_ninjamas - @gamedb_base
wordfit @game_overtop - @gamedb_base
wordfit @game_panicbom - @gamedb_base
wordfit @game_pgoal - @gamedb_base
wordfit @game_pnyaa - @gamedb_base
wordfit @game_popbounc - @gamedb_base
wordfit @game_pspikes2 - @gamedb_base
wordfit @game_preisle2 - @gamedb_base
wordfit @game_pulstar - @gamedb_base
wordfit @game_pbobbl2n - @gamedb_base
wordfit @game_puzzledp - @gamedb_base
wordfit @game_puzzldpr - @gamedb_base
wordfit @game_joyjoy - @gamedb_base ' Export name is Puzzled
wordfit @game_quizdais - @gamedb_base
wordfit @game_quizdai2 - @gamedb_base
wordfit @game_quizkof - @gamedb_base
wordfit @game_ragnagrd - @gamedb_base
wordfit @game_rotdh - @gamedb_base
wordfit @game_rbff1 - @gamedb_base
wordfit @game_rbffspec - @gamedb_base
wordfit @game_rbff2 - @gamedb_base
wordfit @game_ridhero - @gamedb_base
wordfit @game_roboarmy - @gamedb_base
wordfit @game_samsho - @gamedb_base
wordfit @game_samsho2 - @gamedb_base
wordfit @game_samsho3h - @gamedb_base
wordfit @game_samsho4 - @gamedb_base
wordfit @game_samsho5h - @gamedb_base
wordfit @game_samsh5sp - @gamedb_base
wordfit @game_samsh5pf - @gamedb_base
wordfit @game_savagere - @gamedb_base
wordfit @game_sengoku - @gamedb_base
wordfit @game_sengoku2 - @gamedb_base
wordfit @game_sengoku3 - @gamedb_base
wordfit @game_shocktro - @gamedb_base
wordfit @game_shocktr2 - @gamedb_base
wordfit @game_svc - @gamedb_base
wordfit @game_socbrawl - @gamedb_base
wordfit @game_sonicwi2 - @gamedb_base
wordfit @game_sonicwi3 - @gamedb_base
wordfit @game_spinmast - @gamedb_base
wordfit @game_stakwin - @gamedb_base
wordfit @game_stakwin2 - @gamedb_base
wordfit @game_strhoop - @gamedb_base
wordfit @game_s1945p - @gamedb_base
wordfit @game_sdodgeb - @gamedb_base
wordfit @game_ssideki - @gamedb_base
wordfit @game_ssideki2 - @gamedb_base
wordfit @game_ssideki3 - @gamedb_base
wordfit @game_superspy - @gamedb_base
wordfit @game_tws96 - @gamedb_base
wordfit @game_trally - @gamedb_base
wordfit @game_tophuntr - @gamedb_base
wordfit @game_tpgolf - @gamedb_base
wordfit @game_twinspri - @gamedb_base
wordfit @game_ssideki4 - @gamedb_base ' The Ultimate 11
wordfit @game_viewpoin - @gamedb_base
wordfit @game_gowcaizr - @gamedb_base ' Voltage Fighter
wordfit @game_wakuwak7 - @gamedb_base
wordfit @game_wh1h - @gamedb_base
wordfit @game_wh2 - @gamedb_base
wordfit @game_wh2j - @gamedb_base
wordfit @game_whp - @gamedb_base
wordfit @game_wjammers - @gamedb_base
wordfit @game_zedblade - @gamedb_base
wordfit @game_zupapa - @gamedb_base
gamelist_end
gamedb_base
game_ironclad byte "ironclad",0,"Ironclad",0,"220-",0,GAME_OK ' Note: proto prefix needs to be removed to fit 8.3 naming
byte SET_CHAR
byte LOAD_CROM,"C1",0,"C2",0,word $80_0
byte LOAD_CROM,"C3",0,"C4",0,word $80_0
byte SET_PROG+WITH_OFFSET,word $10_0
byte SET_PORT
byte LOAD_BSWAP,"P1",0,word $20_0
byte SET_ADPCM_A,SET_ADPCM_B
byte LOAD_RAW,"V1",0,word $40_0
byte SET_FIX
byte LOAD_SROM,"S1",0,word $02_0
byte SET_Z80
byte LOAD_RAW,"M1",0,word $02_0
byte SET_BIOS,LOAD_BIOS
byte 0
game_twinspri byte "twinspri",0,"Twinkle Star Sprites",0,"224-",0,GAME_OK
byte SET_CHAR
byte LOAD_CROM,"C1",0,"C2",0,word $80_0
byte LOAD_CROM,"C3",0,"C4",0,word $20_0
byte SET_PROG+WITH_OFFSET,word $10_0
byte SET_PORT
byte LOAD_BSWAP,"P1",0,word $20_0
byte SET_ADPCM_A,SET_ADPCM_B
byte LOAD_RAW,"V1",0,word $40_0
byte LOAD_RAW,"V2",0,word $20_0
byte SET_FIX
byte LOAD_SROM,"S1",0,word $02_0
byte SET_Z80
byte LOAD_RAW,"M1",0,word $02_0
byte SET_BIOS,LOAD_BIOS
byte 0
game_samsho byte "samsho",0,"Samurai Shodown",0,"045-",0,GAME_OK
byte SET_CHAR
byte LOAD_CROM,"C1",0,"C2",0,word $40_0
byte LOAD_CROM,"C3",0,"C4",0,word $40_0
byte LOAD_CROM,"C51",0,"C61",0,word $20_0
byte SET_PROG
byte LOAD_BSWAP,"P1",0,word $10_0
byte SET_PORT
byte LOAD_BSWAP,"PG2",0,word $10_0
byte SET_ADPCM_A,SET_ADPCM_B
byte LOAD_RAW,"V1",0,word $20_0
byte LOAD_RAW,"V2",0,word $20_0
byte SET_FIX
byte LOAD_SROM,"S1",0,word $02_0
byte SET_Z80
byte LOAD_RAW,"M1",0,word $02_0
byte SET_BIOS,LOAD_BIOS
byte 0
game_samsho2 byte "samsho2",0,"Samurai Shodown 2",0,"063-",0,GAME_OK
byte LOAD_CROM,"C1",0,"C2",0,word $40_0
byte LOAD_CROM,"C3",0,"C4",0,word $40_0
byte LOAD_CROM,"C5",0,"C6",0,word $40_0
byte LOAD_CROM,"C7",0,"C8",0,word $40_0
byte SET_PROG+WITH_OFFSET,word $10_0
byte SET_PORT
byte LOAD_BSWAP,"P1",0,word $20_0
byte SET_ADPCM_A,SET_ADPCM_B
byte LOAD_RAW,"V1",0,word $20_0
byte LOAD_RAW,"V2",0,word $20_0
byte LOAD_RAW,"V3",0,word $20_0
byte LOAD_RAW,"V4",0,word $10_0
byte SET_FIX
byte LOAD_SROM,"S1",0,word $02_0
byte SET_Z80
byte LOAD_RAW,"M1",0,word $02_0
byte SET_BIOS,LOAD_BIOS
byte 0
game_samsho3h byte "samsho3h",0,"Samurai Shodown 3",0,"087-",0,GAME_OK
byte LOAD_CROM,"C1",0,"C2",0,word $80_0
byte LOAD_CROM,"C3",0,"C4",0,word $80_0
byte LOAD_CROM,"C5",0,"C6",0,word $80_0
byte LOAD_CROM,"C7",0,"C8",0,word $20_0
byte SET_PROG
byte LOAD_BSWAP,"PG1",0,word $10_0
byte SET_PORT,SET_BANKSWITCH_2M
byte LOAD_BSWAP,"P2",0,word $20_0
byte SET_ADPCM_A,SET_ADPCM_B
byte LOAD_RAW,"V1",0,word $40_0
byte LOAD_RAW,"V2",0,word $20_0
byte SET_FIX
byte LOAD_SROM,"S1",0,word $02_0
byte SET_Z80
byte LOAD_RAW,"M1",0,word $02_0
byte SET_BIOS,LOAD_BIOS
byte 0
game_samsho4 byte "samsho4",0,"Samurai Shodown 4",0,"222-",0,GAME_OK
byte LOAD_CROM,"C1",0,"C2",0,word $80_0
byte LOAD_CROM,"C3",0,"C4",0,word $80_0
byte LOAD_CROM,"C5",0,"C6",0,word $80_0
byte LOAD_CROM,"C7",0,"C8",0,word $80_0
byte SET_PROG
byte LOAD_BSWAP,"P1",0,word $10_0
byte SET_PORT,SET_BANKSWITCH_4M
byte LOAD_BSWAP,"P2",0,word $40_0
byte SET_ADPCM_A,SET_ADPCM_B
byte LOAD_RAW,"V1",0,word $40_0
byte LOAD_RAW,"V2",0,word $40_0
byte LOAD_RAW,"V3",0,word $20_0
byte SET_FIX
byte LOAD_SROM,"S1",0,word $02_0
byte SET_Z80
byte LOAD_RAW,"M1",0,word $02_0
byte SET_BIOS,LOAD_BIOS
byte 0
game_samsho5h byte "samsho5h",0,"Samurai Shodown 5",0,"270-",0,GAME_OK
byte LOAD_CROM,"C1D",0,"C2D",0,word $100_0
byte LOAD_CROM,"C3D",0,"C4D",0,word $100_0
byte LOAD_CROM,"C5D",0,"C6D",0,word $100_0
byte LOAD_CROM,"C7D",0,"C8D",0,word $100_0
byte SET_PORT,SET_BANKSWITCH_8M
byte LOAD_BSWAP+WITH_OFFSET,"P2C",0,word $08_0,word $30_0
byte LOAD_BSWAP+WITH_OFFSET,"P2C",0,word $08_0,word $28_0
byte LOAD_BSWAP+WITH_OFFSET,"P2C",0,word $08_0,word $10_0
byte LOAD_BSWAP+WITH_OFFSET,"P1C",0,word $10_0,word $18_0
byte LOAD_BSWAP+WITH_OFFSET,"P2C",0,word $08_0,word $08_0
byte LOAD_BSWAP+WITH_OFFSET,"P1C",0,word $08_0,word $30_0
byte LOAD_BSWAP+WITH_OFFSET,"P2C",0,word $08_0,word $38_0
byte LOAD_BSWAP+WITH_OFFSET,"P2C",0,word $08_0,word $20_0
byte LOAD_BSWAP+WITH_OFFSET,"P1C",0,word $08_0,word $28_0
byte LOAD_BSWAP+WITH_OFFSET,"P1C",0,word $08_0,word $10_0
byte LOAD_BSWAP+WITH_OFFSET,"P2C",0,word $08_0,word $18_0
byte LOAD_BSWAP+WITH_OFFSET,"P2C",0,word $08_0,word $00_0
byte LOAD_BSWAP+WITH_OFFSET,"P1C",0,word $08_0,word $38_0
byte SET_PROG
byte LOAD_BSWAP,"P1C",0,word $10_0
byte SET_ADPCM_A,SET_ADPCM_B
'byte LOAD_RAW,"270-V1",0,word $80_0
'byte LOAD_RAW,"270-V2",0,word $80_0
byte LOAD_RAW,"VD",0,word $100_0
byte SET_FIX
byte LOAD_SROM_CMC+WITH_OFFSET,"C7D",0,"C8D",0,word $02_0,word $07F_0
byte SET_Z80
byte LOAD_RAW,"M1D",0,word $02_0
byte SET_BIOS,LOAD_BIOS
byte 0
game_samsh5sp byte "samsh5sp",0,"Samurai Shodown 5 Special",0,"272-",0,GAME_OK
byte LOAD_CROM,"C1D",0,"C2D",0,word $100_0
byte LOAD_CROM,"C3D",0,"C4D",0,word $100_0
byte LOAD_CROM,"C5D",0,"C6D",0,word $100_0
byte LOAD_CROM,"C7D",0,"C8D",0,word $100_0
byte SET_PORT,SET_BANKSWITCH_8M
byte LOAD_BSWAP+WITH_OFFSET,"P2",0,word $08_0,word $10_0
byte LOAD_BSWAP+WITH_OFFSET,"P2",0,word $08_0,word $08_0
byte LOAD_BSWAP+WITH_OFFSET,"P2",0,word $08_0,word $20_0
byte LOAD_BSWAP+WITH_OFFSET,"P2",0,word $08_0,word $18_0
byte LOAD_BSWAP+WITH_OFFSET,"P2",0,word $08_0,word $30_0
byte LOAD_BSWAP+WITH_OFFSET,"P1",0,word $08_0,word $28_0
byte LOAD_BSWAP+WITH_OFFSET,"P1",0,word $08_0,word $10_0
byte LOAD_BSWAP+WITH_OFFSET,"P2",0,word $08_0,word $28_0
byte LOAD_BSWAP+WITH_OFFSET,"P2",0,word $08_0,word $00_0
byte LOAD_BSWAP+WITH_OFFSET,"P2",0,word $08_0,word $38_0
byte LOAD_BSWAP+WITH_OFFSET,"P1",0,word $08_0,word $20_0
byte LOAD_BSWAP+WITH_OFFSET,"P1",0,word $08_0,word $38_0
byte LOAD_BSWAP+WITH_OFFSET,"P1",0,word $08_0,word $30_0
byte LOAD_BSWAP+WITH_OFFSET,"P1",0,word $08_0,word $18_0
byte SET_PROG
byte LOAD_BSWAP,"P1",0,word $10_0
byte SET_ADPCM_A,SET_ADPCM_B
'byte LOAD_RAW,"272-V1",0,word $80_0
'byte LOAD_RAW,"272-V2",0,word $80_0
byte LOAD_RAW,"VD",0,word $100_0
byte SET_FIX
byte LOAD_SROM_CMC+WITH_OFFSET,"C7D",0,"C8D",0,word $02_0,word $07F_0
byte SET_Z80
byte LOAD_RAW,"M1D",0,word $02_0
byte SET_BIOS,LOAD_BIOS
byte 0
' Aftermarket, dump should be decrypted to begin with
game_samsh5pf byte "samsh5pf",0,"Samurai Shodown 5 Perfect",0,"273-",0,GAME_OK
byte LOAD_CROM,"C1D",0,"C2D",0,word $100_0
byte LOAD_CROM,"C3D",0,"C4D",0,word $100_0
byte LOAD_CROM,"C5D",0,"C6D",0,word $100_0
byte LOAD_CROM,"C7D",0,"C8D",0,word $100_0
byte SET_PORT,SET_BANKSWITCH_8M
byte LOAD_BSWAP+WITH_OFFSET,"P1",0,word $70_0, word $10_0
byte SET_PROG
byte LOAD_BSWAP,"P1",0,word $10_0
byte SET_ADPCM_A,SET_ADPCM_B
byte LOAD_RAW,"V1D",0,word $80_0
byte LOAD_RAW,"V2D",0,word $80_0
byte SET_FIX
byte LOAD_SROM,"S1",0,word $02_0
byte SET_Z80
byte LOAD_RAW,"M1",0,word $02_0
byte SET_BIOS,LOAD_BIOS
byte 0
game_mslug byte "mslug",0,"Metal Slug",0,"201-",0,GAME_OK
byte SET_CHAR
byte LOAD_CROM,"C1",0,"C2",0,word $80_0
byte LOAD_CROM,"C3",0,"C4",0,word $80_0
byte SET_PROG+WITH_OFFSET,word $10_0
byte SET_PORT
byte LOAD_BSWAP,"P1",0,word $20_0
byte SET_ADPCM_A,SET_ADPCM_B
byte LOAD_RAW,"V1",0,word $40_0
byte LOAD_RAW,"V2",0,word $40_0
byte SET_FIX
byte LOAD_SROM,"S1",0,word $02_0
byte SET_Z80
byte LOAD_RAW,"M1",0,word $02_0
byte SET_BIOS,LOAD_BIOS
byte 0
game_mslug2 byte "mslug2",0,"Metal Slug 2",0,"241-",0,GAME_OK
byte SET_CHAR
byte LOAD_CROM,"C1",0,"C2",0,word $100_0
byte LOAD_CROM,"C3",0,"C4",0,word $100_0
byte SET_PROG
byte LOAD_BSWAP,"P1",0,word $10_0
byte SET_PORT,SET_BANKSWITCH_2M
byte LOAD_BSWAP,"P2",0,word $20_0
byte SET_ADPCM_A,SET_ADPCM_B
byte LOAD_RAW,"V1",0,word $40_0
byte LOAD_RAW,"V2",0,word $40_0
byte SET_FIX
byte LOAD_SROM,"S1",0,word $02_0
byte SET_Z80
byte LOAD_RAW,"M1",0,word $02_0
byte SET_BIOS,LOAD_BIOS
byte 0
game_mslugx byte "mslugx",0,"Metal Slug X",0,"250-",0,GAME_OK
byte SET_CHAR
byte LOAD_CROM,"C1",0,"C2",0,word $100_0
byte LOAD_CROM,"C3",0,"C4",0,word $100_0
byte LOAD_CROM,"C5",0,"C6",0,word $100_0
byte SET_PROG
byte LOAD_BSWAP,"P1P",0,word $10_0
'' Copy protection patches
{
byte PATCH_PATTERN,long -$10_0000,long $8_0000-3
byte 2,6, $02,$43,$00,$01,$66,$00 ' Find pattern (ANDI.W #1,D3; BNE.W xxxx)
byte 4,4, $4E,$71,$4E,$71 ' Replace pattern (replace BNE.W with NOPs)
'}
{
byte PATCH_PATTERN,long -$10_0000,long $8_0000-3
byte 2,6, $43,$F9,$00,$2F,$FF,$E0 ' Find pattern (LEA $2FFFE0,A1)
byte 2,4, $00,$E0,$00,$00 ' Replace pattern (use $E00000)
'}
{
byte PATCH_SINGLE,long $3BDC - $10_0000,6, $4E,$71,$4E,$71,$4E,$71
byte PATCH_SINGLE,long $3C0C - $10_0000,6, $4E,$71,$4E,$71,$4E,$71
byte PATCH_SINGLE,long $3C36 - $10_0000,4, $4E,$71,$4E,$71
'}
byte SET_PORT,SET_BANKSWITCH_4M
byte LOAD_BSWAP,"P2",0,word $40_0
byte SET_ADPCM_A,SET_ADPCM_B
byte LOAD_RAW,"V1",0,word $40_0
byte LOAD_RAW,"V2",0,word $40_0
byte LOAD_RAW,"V3",0,word $20_0
byte SET_FIX
byte LOAD_SROM,"S1",0,word $02_0
byte SET_Z80
byte LOAD_RAW,"M1",0,word $02_0
byte SET_BIOS,LOAD_BIOS
byte 0
' Note: M1 too big -> broken sound
game_mslug3h byte "mslug3h",0,"Metal Slug 3",0,"256-",0,GAME_ISSUE
byte SET_CHAR
byte LOAD_CROM,"C1D",0,"C2D",0,word $100_0
byte LOAD_CROM,"C3D",0,"C4D",0,word $100_0
byte LOAD_CROM,"C5D",0,"C6D",0,word $100_0
byte LOAD_CROM,"C7D",0,"C8D",0,word $100_0
byte SET_PROG
byte LOAD_BSWAP,"256-PH1",0,word $10_0
byte SET_PORT,SET_BANKSWITCH_4M
byte LOAD_BSWAP,"256-PH2",0,word $40_0
byte SET_ADPCM_A,SET_ADPCM_B
byte LOAD_RAW,"V1",0,word $40_0
byte LOAD_RAW,"V2",0,word $40_0
byte LOAD_RAW,"V3",0,word $40_0
byte LOAD_RAW,"V4",0,word $40_0
byte SET_FIX
byte LOAD_SROM_CMC+WITH_OFFSET,"C7D",0,"C8D",0,word $02_0,word $07D_0
byte SET_Z80
byte LOAD_RAW,"M1",0,word $02_0
byte SET_BIOS,LOAD_BIOS
byte 0
game_mslug4h byte "mslug4h",0,"Metal Slug 4",0,"263-",0,GAME_OK
byte SET_CHAR
byte LOAD_CROM,"C1D",0,"C2D",0,word $100_0
byte LOAD_CROM,"C3D",0,"C4D",0,word $100_0
byte LOAD_CROM,"C5D",0,"C6D",0,word $100_0
byte SET_PROG
byte LOAD_BSWAP,"PH1",0,word $10_0
byte SET_PORT,SET_BANKSWITCH_4M
byte LOAD_BSWAP,"PH2",0,word $40_0
byte SET_ADPCM_A,SET_ADPCM_B
byte LOAD_LSWAP,"V1",0,word $80_0
byte LOAD_LSWAP,"V2",0,word $80_0
byte SET_FIX
byte LOAD_SROM_CMC+WITH_OFFSET,"C5D",0,"C6D",0,word $02_0,word $07D_0
byte SET_Z80
byte LOAD_RAW,"M1D",0,word $02_0
byte SET_BIOS,LOAD_BIOS
byte 0
game_mslug5h byte "mslug5h",0,"Metal Slug 5",0,"268-",0,GAME_OK
byte SET_CHAR
byte LOAD_CROM,"C1D",0,"C2D",0,word $100_0
byte LOAD_CROM,"C3D",0,"C4D",0,word $100_0
byte LOAD_CROM,"C5D",0,"C6D",0,word $100_0
byte LOAD_CROM,"C7D",0,"C8D",0,word $100_0
byte SET_PROG,SET_PORT+WITH_OFFSET,word $10_0,SET_BANKSWITCH_PVC_8M
byte LOAD_RAW,"PD",0,word $80_0
byte SET_ADPCM_A,SET_ADPCM_B
byte LOAD_RAW,"VD",0,word $100_0
byte SET_FIX
byte LOAD_SROM_CMC+WITH_OFFSET,"C7D",0,"C8D",0,word $02_0,word $07F_0
byte SET_Z80
byte LOAD_RAW,"M1D",0,word $02_0
byte SET_BIOS,LOAD_BIOS
byte 0
'' NOTE: Busted graphics
game_neodrift byte "neodrift",0,"Neo Drift Out",0,"213-",0,GAME_ISSUE
byte SET_CHAR
byte LOAD_CROM,"C1",0,"C2",0,word $80_0
byte SET_PROG+WITH_OFFSET,word $10_0
byte SET_PORT
byte LOAD_BSWAP,"P1",0,word $20_0
byte SET_ADPCM_A,SET_ADPCM_B
byte LOAD_RAW,"V1",0,word $20_0
byte LOAD_RAW,"V2",0,word $20_0
byte SET_FIX
byte LOAD_SROM,"S1",0,word $02_0
byte SET_Z80
byte LOAD_RAW,"M1",0,word $02_0
byte SET_BIOS,LOAD_BIOS
byte 0
game_cyberlip byte "cyberlip",0,"Cyber-Lip",0,"010-",0,GAME_OK
byte SET_TILEMASK,15
byte SET_CHAR
byte LOAD_CROM,"C1",0,"C2",0,word $10_0
byte LOAD_CROM,"C3",0,"C4",0,word $10_0
byte LOAD_CROM,"C5",0,"C6",0,word $10_0
byte SET_PROG
byte SET_PORT ' huh...
byte LOAD_BSWAP,"P1",0,word $08_0
byte LOAD_FILLER,255,word $08_0
byte SET_ADPCM_A
byte LOAD_RAW,"V11",0,word $08_0
byte LOAD_RAW,"V12",0,word $08_0
byte LOAD_RAW,"V13",0,word $08_0
byte LOAD_RAW,"V14",0,word $08_0
byte SET_ADPCM_B
byte LOAD_RAW,"V21",0,word $08_0
byte SET_Z80
byte LOAD_RAW,"M1",0,word $01_0 ' Non-banked 64K
byte SET_FIX
byte LOAD_SROM,"S1",0,word $02_0
byte SET_BIOS,LOAD_BIOS
byte 0
'' NOTE: Slightly broken Sammy logo due to lack of timer IRQ
game_viewpoin byte "viewpoin",0,"Viewpoint",0,"051-",0,GAME_OK
byte SET_TILEMASK,15
byte SET_CHAR
byte LOAD_CROM,"C1",0,"C2",0,word $20_0
byte LOAD_FILLER,255,word $20_0
byte LOAD_CROM+WITH_OFFSET,"C1",0,"C2",0,word $20_0,word $10_0
byte LOAD_FILLER,255,word $20_0
byte SET_PROG
byte SET_PORT
byte LOAD_BSWAP,"P1",0,word $10_0
byte SET_ADPCM_A,SET_ADPCM_B
byte LOAD_RAW,"V1",0,word $20_0
byte LOAD_RAW,"V2",0,word $20_0
byte SET_FIX
byte LOAD_SROM,"S1",0,word $02_0
byte SET_Z80
byte LOAD_RAW,"M1",0,word $02_0
byte SET_BIOS,LOAD_BIOS
byte 0
game_zedblade byte "zedblade",0,"Zed Blade",0,"076-",0,GAME_OK
byte SET_CHAR
byte LOAD_CROM,"C1",0,"C2",0,word $40_0
byte LOAD_CROM,"C3",0,"C4",0,word $40_0
byte SET_PROG
byte SET_PORT
byte LOAD_BSWAP,"P1",0,word $08_0
byte LOAD_BSWAP,"P1",0,word $08_0
byte SET_ADPCM_A,SET_ADPCM_B
byte LOAD_RAW,"V1",0,word $20_0
byte LOAD_RAW,"V2",0,word $20_0
byte LOAD_RAW,"V3",0,word $10_0
byte SET_FIX
byte LOAD_SROM,"S1",0,word $02_0
byte SET_Z80
byte LOAD_RAW,"M1",0,word $02_0
byte SET_BIOS,LOAD_BIOS
byte 0
game_sengoku byte "sengoku",0,"Sengoku",0,"017-",0,GAME_OK
byte SET_CHAR
byte LOAD_CROM,"C1",0,"C2",0,word $20_0
byte LOAD_CROM,"C3",0,"C4",0,word $20_0
byte SET_PROG
byte SET_PORT
byte LOAD_BSWAP,"P1",0,word $08_0
byte LOAD_BSWAP,"P2",0,word $02_0
byte SET_ADPCM_A,SET_ADPCM_B
byte LOAD_RAW,"V1",0,word $10_0
byte LOAD_RAW,"V2",0,word $10_0
byte SET_FIX
byte LOAD_SROM,"S1",0,word $02_0
byte SET_Z80
byte LOAD_RAW,"M1",0,word $02_0
byte SET_BIOS,LOAD_BIOS
byte 0
game_sengoku2 byte "sengoku2",0,"Sengoku 2",0,"040-",0,GAME_OK
byte SET_CHAR
byte LOAD_CROM,"C1",0,"C2",0,word $20_0
byte LOAD_CROM,"C3",0,"C4",0,word $10_0
byte LOAD_FILLER,255,word $10_0
byte LOAD_CROM+WITH_OFFSET,"C1",0,"C2",0,word $20_0,word $10_0
byte SET_PROG
byte SET_PORT
byte LOAD_BSWAP,"P1",0,word $10_0
byte SET_ADPCM_A,SET_ADPCM_B
byte LOAD_RAW,"V1",0,word $20_0
byte LOAD_RAW,"V2",0,word $10_0
byte SET_FIX
byte LOAD_SROM,"S1",0,word $02_0
byte SET_Z80
byte LOAD_RAW,"M1",0,word $02_0
byte SET_BIOS,LOAD_BIOS
byte 0
game_sengoku3 byte "sengoku3",0,"Sengoku 3",0,"261-",0,GAME_OK
byte SET_CHAR
byte LOAD_CROM,"C1D",0,"C2D",0,word $100_0
byte LOAD_CROM,"C3D",0,"C4D",0,word $100_0
byte SET_PROG+WITH_OFFSET,word $10_0
byte SET_PORT
byte LOAD_BSWAP,"PH1",0,word $20_0
byte SET_ADPCM_A,SET_ADPCM_B
byte LOAD_RAW,"V1",0,word $40_0
byte LOAD_RAW,"V2",0,word $40_0
byte LOAD_RAW,"V3",0,word $40_0
byte LOAD_RAW,"V4",0,word $20_0
byte SET_FIX
byte LOAD_SROM_CMC+WITH_OFFSET,"C3D",0,"C4D",0,word $02_0,word $07F_0
byte SET_Z80
byte LOAD_RAW,"M1",0,word $02_0 ' Technically 512K M1, but only first 64K is used.
byte SET_BIOS,LOAD_BIOS
byte 0
game_doubledr byte "doubledr",0,"Double Dragon",0,"082-",0,GAME_OK
byte SET_CHAR
byte LOAD_CROM,"C1",0,"C2",0,word $40_0
byte LOAD_CROM,"C3",0,"C4",0,word $40_0
byte LOAD_CROM,"C5",0,"C6",0,word $40_0
byte LOAD_CROM,"C7",0,"C8",0,word $20_0
byte SET_PROG+WITH_OFFSET,word $10_0
byte SET_PORT
byte LOAD_BSWAP,"P1",0,word $20_0
byte SET_ADPCM_A,SET_ADPCM_B
byte LOAD_RAW,"V1",0,word $20_0
byte LOAD_RAW,"V2",0,word $20_0
byte SET_FIX
byte LOAD_SROM,"S1",0,word $02_0
byte SET_Z80
byte LOAD_RAW,"M1",0,word $02_0
byte SET_BIOS,LOAD_BIOS
byte 0
game_fatfury1 byte "fatfury1",0,"Fatal Fury",0,"033-",0,GAME_OK
byte SET_CHAR
byte LOAD_CROM,"C1",0,"C2",0,word $20_0
byte LOAD_CROM,"C3",0,"C4",0,word $20_0
byte SET_PROG
byte SET_PORT
byte LOAD_BSWAP,"P1",0,word $08_0
byte LOAD_BSWAP,"P2",0,word $02_0
byte SET_ADPCM_A,SET_ADPCM_B
byte LOAD_RAW,"V1",0,word $10_0
byte LOAD_RAW,"V2",0,word $10_0
byte SET_FIX
byte LOAD_SROM,"S1",0,word $02_0
byte SET_Z80
byte LOAD_RAW,"M1",0,word $02_0
byte SET_BIOS,LOAD_BIOS
byte 0
' WARNING: UNEMULATED COPY PROTECTION - WILL GLITCH AFTER A WHILE
game_fatfury2 byte "fatfury2",0,"Fatal Fury 2",0,"047-",0,GAME_BROKEN
byte SET_CHAR
byte SET_TILEMASK,15
byte LOAD_CROM,"C1",0,"C2",0,word $20_0
byte LOAD_CROM,"C3",0,"C4",0,word $20_0
byte LOAD_CROM+WITH_OFFSET,"C1",0,"C2",0,word $20_0,word $10_0
byte LOAD_CROM+WITH_OFFSET,"C3",0,"C4",0,word $20_0,word $10_0
byte SET_PROG, SET_PORT
byte LOAD_BSWAP,"P1",0,word $08_0
byte LOAD_BSWAP,"P2",0,word $08_0
byte SET_ADPCM_A,SET_ADPCM_B
byte LOAD_RAW,"V1",0,word $20_0
byte LOAD_RAW,"V2",0,word $20_0
byte SET_FIX
byte LOAD_SROM,"S1",0,word $02_0
byte SET_Z80
byte LOAD_RAW,"M1",0,word $02_0
byte SET_BIOS,LOAD_BIOS
byte 0
game_fatfursp byte "fatfursp",0,"Fatal Fury Special",0,"058-",0,GAME_OK
byte SET_CHAR
byte LOAD_CROM,"C1",0,"C2",0,word $40_0
byte LOAD_CROM,"C3",0,"C4",0,word $40_0
byte LOAD_CROM,"C5",0,"C6",0,word $40_0
byte SET_PROG
byte LOAD_BSWAP,"P1",0,word $10_0
byte SET_PORT
byte LOAD_BSWAP,"P2",0,word $08_0
byte LOAD_FILLER,0,word $08_0
byte SET_ADPCM_A,SET_ADPCM_B
byte LOAD_RAW,"V1",0,word $20_0
byte LOAD_RAW,"V2",0,word $20_0
byte LOAD_RAW,"V3",0,word $10_0
byte SET_FIX
byte LOAD_SROM,"S1",0,word $02_0
byte SET_Z80
byte LOAD_RAW,"M1",0,word $02_0
byte SET_BIOS,LOAD_BIOS
byte 0
game_fatfury3 byte "fatfury3",0,"Fatal Fury 3",0,"069-",0,GAME_OK
byte SET_CHAR
byte LOAD_CROM,"C1",0,"C2",0,word $80_0
byte LOAD_CROM,"C3",0,"C4",0,word $80_0
byte LOAD_CROM,"C5",0,"C6",0,word $40_0
byte SET_PROG
byte LOAD_BSWAP,"P1",0,word $10_0
byte SET_PORT,SET_BANKSWITCH_2M
byte LOAD_BSWAP,"SP2",0,word $20_0
byte SET_ADPCM_A,SET_ADPCM_B
byte LOAD_RAW,"V1",0,word $40_0
byte LOAD_RAW,"V2",0,word $40_0
byte LOAD_RAW,"V3",0,word $20_0
byte SET_FIX
byte LOAD_SROM,"S1",0,word $02_0
byte SET_Z80
byte LOAD_RAW,"M1",0,word $02_0
byte SET_BIOS,LOAD_BIOS
byte 0
game_rbff1 byte "rbff1",0,"Real Bout Fatal Fury",0,"",0,GAME_OK
byte SET_CHAR
byte LOAD_CROM,"069-C1",0,"069-C2",0,word $80_0
byte LOAD_CROM,"069-C3",0,"069-C4",0,word $80_0
byte LOAD_CROM,"095-C5",0,"095-C6",0,word $80_0
byte LOAD_CROM,"095-C7",0,"095-C8",0,word $40_0
byte SET_PROG
byte LOAD_BSWAP,"095-P1",0,word $10_0
byte SET_PORT,SET_BANKSWITCH_2M
byte LOAD_BSWAP,"095-P2",0,word $20_0
byte SET_ADPCM_A,SET_ADPCM_B
byte LOAD_RAW,"069-V1",0,word $40_0
byte LOAD_RAW,"069-V2",0,word $40_0
byte LOAD_RAW,"095-V3",0,word $40_0
byte SET_FIX
byte LOAD_SROM,"095-S1",0,word $02_0
byte SET_Z80
byte LOAD_RAW,"095-M1",0,word $02_0
byte SET_BIOS,LOAD_BIOS
byte 0
game_rbffspec byte "rbffspec",0,"Real Bout Fatal Fury Special",0,"223-",0,GAME_OK
byte SET_CHAR
byte LOAD_CROM,"C1",0,"C2",0,word $80_0
byte LOAD_CROM,"C3",0,"C4",0,word $80_0
byte LOAD_CROM,"C5",0,"C6",0,word $80_0
byte LOAD_CROM,"C7",0,"C8",0,word $80_0
byte SET_PROG
byte LOAD_BSWAP,"P1",0,word $10_0
byte SET_PORT,SET_BANKSWITCH_4M
byte LOAD_BSWAP,"P2",0,word $40_0
byte SET_ADPCM_A,SET_ADPCM_B
byte LOAD_RAW,"V1",0,word $40_0
byte LOAD_RAW,"V2",0,word $40_0
byte LOAD_RAW,"V3",0,word $40_0
byte SET_FIX
byte LOAD_SROM,"S1",0,word $02_0
byte SET_Z80
byte LOAD_RAW,"M1",0,word $02_0
byte SET_BIOS,LOAD_BIOS
byte 0
game_rbff2 byte "rbff2",0,"Real Bout Fatal Fury 2",0,"240-",0,GAME_OK
byte SET_CHAR
byte LOAD_CROM,"C1",0,"C2",0,word $100_0
byte LOAD_CROM,"C3",0,"C4",0,word $100_0
byte LOAD_CROM,"C5",0,"C6",0,word $100_0
byte SET_PROG
byte LOAD_BSWAP,"P1",0,word $10_0
byte SET_PORT,SET_BANKSWITCH_4M
byte LOAD_BSWAP,"P2",0,word $40_0
byte SET_ADPCM_A,SET_ADPCM_B
byte LOAD_RAW,"V1",0,word $40_0
byte LOAD_RAW,"V2",0,word $40_0
byte LOAD_RAW,"V3",0,word $40_0
byte LOAD_RAW,"V4",0,word $20_0
byte SET_FIX
byte LOAD_SROM,"S1",0,word $02_0
byte SET_Z80
byte LOAD_RAW,"M1",0,word $02_0
byte SET_BIOS,LOAD_BIOS
byte 0
game_crsword byte "crsword",0,"Crossed Swords",0,"037-",0,GAME_OK
byte SET_CHAR
byte SET_TILEMASK,14
byte LOAD_CROM,"C1",0,"C2",0,word $20_0
byte LOAD_CROM,"C3",0,"C4",0,word $20_0
byte SET_PROG
byte SET_PORT
byte LOAD_BSWAP,"P1",0,word $08_0
byte LOAD_BSWAP,"P1",0,word $08_0
byte SET_ADPCM_A,SET_ADPCM_B
byte LOAD_RAW,"V1",0,word $10_0
byte SET_FIX
byte LOAD_SROM,"S1",0,word $02_0
byte SET_Z80
byte LOAD_RAW,"M1",0,word $02_0
byte SET_BIOS,LOAD_BIOS
byte 0
game_crswd2bl byte "crswd2bl",0,"Crossed Swords 2",0,"054-",0,GAME_OK
byte SET_CHAR
byte LOAD_CROM,"C1",0,"C2",0,word $80_0
byte SET_PROG+WITH_OFFSET,word $10_0
byte SET_PORT
byte LOAD_BSWAP,"P1",0,word $20_0
byte SET_ADPCM_A,SET_ADPCM_B
byte LOAD_RAW,"V1",0,word $20_0
byte SET_FIX
byte LOAD_SROM,"S1",0,word $02_0
byte SET_Z80
byte LOAD_RAW,"M1",0,word $02_0
byte SET_BIOS,LOAD_BIOS
byte 0
game_sonicwi2 byte "sonicwi2",0,"Sonic Wings 2",0,"075-",0,GAME_OK
byte SET_CHAR
byte LOAD_CROM,"C1",0,"C2",0,word $40_0
byte LOAD_CROM,"C3",0,"C4",0,word $40_0
byte SET_PROG+WITH_OFFSET,word $10_0
byte SET_PORT
byte LOAD_BSWAP,"P1",0,word $20_0
byte SET_ADPCM_A,SET_ADPCM_B
byte LOAD_RAW,"V1",0,word $20_0
byte LOAD_RAW,"V2",0,word $10_0
byte SET_FIX
byte LOAD_SROM,"S1",0,word $02_0
byte SET_Z80
byte LOAD_RAW,"M1",0,word $02_0
byte SET_BIOS,LOAD_BIOS
byte 0
game_sonicwi3 byte "sonicwi3",0,"Sonic Wings 3",0,"097-",0,GAME_OK
byte SET_CHAR
byte LOAD_CROM,"C1",0,"C2",0,word $80_0
byte LOAD_CROM,"C3",0,"C4",0,word $40_0
byte SET_PROG+WITH_OFFSET,word $10_0
byte SET_PORT
byte LOAD_BSWAP,"P1",0,word $20_0
byte SET_ADPCM_A,SET_ADPCM_B
byte LOAD_RAW,"V1",0,word $40_0
byte LOAD_RAW,"V2",0,word $20_0
byte SET_FIX
byte LOAD_SROM,"S1",0,word $02_0
byte SET_Z80
byte LOAD_RAW,"M1",0,word $02_0
byte SET_BIOS,LOAD_BIOS
byte 0
game_mutnat byte "mutnat",0,"Mutation Nation",0,"014-",0,GAME_OK
byte SET_CHAR
byte LOAD_CROM,"C1",0,"C2",0,word $20_0
byte LOAD_CROM,"C3",0,"C4",0,word $20_0
byte SET_PROG
byte SET_PORT
byte LOAD_BSWAP,"P1",0,word $08_0
byte LOAD_BSWAP,"P1",0,word $08_0
byte SET_ADPCM_A,SET_ADPCM_B
byte LOAD_RAW,"V1",0,word $10_0
byte LOAD_RAW,"V2",0,word $10_0
byte SET_FIX
byte LOAD_SROM,"S1",0,word $02_0
byte SET_Z80
byte LOAD_RAW,"M1",0,word $02_0
byte SET_BIOS,LOAD_BIOS
byte 0
game_wakuwak7 byte "wakuwak7",0,"Waku Waku 7",0,"225-",0,GAME_OK
byte SET_CHAR
byte LOAD_CROM,"C1",0,"C2",0,word $80_0
byte LOAD_CROM,"C3",0,"C4",0,word $80_0
byte LOAD_CROM,"C5",0,"C6",0,word $80_0
byte SET_PROG
byte LOAD_BSWAP,"P1",0,word $10_0
byte SET_PORT,SET_BANKSWITCH_2M
byte LOAD_BSWAP,"P2",0,word $20_0
byte SET_ADPCM_A,SET_ADPCM_B
byte LOAD_RAW,"V1",0,word $40_0
byte LOAD_RAW,"V2",0,word $40_0
byte SET_FIX
byte LOAD_SROM,"S1",0,word $02_0
byte SET_Z80
byte LOAD_RAW,"M1",0,word $02_0
byte SET_BIOS,LOAD_BIOS
byte 0
game_kof94 byte "kof94",0,"King of Fighters '94",0,"055-",0,GAME_OK
byte SET_CHAR
byte LOAD_CROM,"C1",0,"C2",0,word $40_0
byte LOAD_CROM,"C3",0,"C4",0,word $40_0
byte LOAD_CROM,"C5",0,"C6",0,word $40_0
byte LOAD_CROM,"C7",0,"C8",0,word $40_0
byte SET_PROG+WITH_OFFSET,word $10_0
byte SET_PORT
byte LOAD_BSWAP,"P1",0,word $20_0
byte SET_ADPCM_A,SET_ADPCM_B
byte LOAD_RAW,"V1",0,word $20_0
byte LOAD_RAW,"V2",0,word $20_0
byte LOAD_RAW,"V3",0,word $20_0
byte SET_FIX
byte LOAD_SROM,"S1",0,word $02_0
byte SET_Z80
byte LOAD_RAW,"M1",0,word $02_0
byte SET_BIOS,LOAD_BIOS
byte 0
'' NOTE: wierd holey memory map, doesn't fit in 32MB when it really should
game_kof95 byte "kof95",0,"King of Fighters '95",0,"084-",0,GAME_OK
byte SET_CHAR
byte LOAD_CROM,"C1",0,"C2",0,word $80_0
byte LOAD_CROM,"C3",0,"C4",0,word $80_0
byte LOAD_CROM,"C5",0,"C6",0,word $40_0
' Note: Weird CROM memory map hole.
byte SET_PROG+WITH_OFFSET,word $10_0
byte SET_PORT
byte LOAD_BSWAP,"P1",0,word $20_0
byte SET_FIX
byte LOAD_SROM,"S1",0,word $02_0
byte SET_Z80
byte LOAD_RAW,"M1",0,word $02_0
byte SET_BIOS,LOAD_BIOS
byte LOAD_FILLER,255,word $20_0 - $02_0*3
byte LOAD_CROM,"C7",0,"C8",0,word $20_0
byte SET_ADPCM_A,SET_ADPCM_B
byte LOAD_RAW,"V1",0,word $40_0
byte LOAD_RAW,"V2",0,word $20_0
' No space left for these
byte LOAD_FILLER,255,word $20_0
byte LOAD_RAW,"V3",0,word $10_0
byte 0
game_kof96 byte "kof96",0,"King of Fighters '96",0,"214-",0,GAME_OK
byte SET_CHAR
byte LOAD_CROM,"C1",0,"C2",0,word $80_0
byte LOAD_CROM,"C3",0,"C4",0,word $80_0
byte LOAD_CROM,"C5",0,"C6",0,word $80_0
byte LOAD_CROM,"C7",0,"C8",0,word $80_0
byte SET_PROG
byte LOAD_BSWAP,"P1",0,word $10_0
byte SET_PORT,SET_BANKSWITCH_2M
byte LOAD_BSWAP,"P2",0,word $20_0
byte SET_ADPCM_A,SET_ADPCM_B
byte LOAD_RAW,"V1",0,word $40_0
byte LOAD_RAW,"V2",0,word $40_0
byte LOAD_RAW,"V3",0,word $20_0
byte SET_FIX
byte LOAD_SROM,"S1",0,word $02_0
byte SET_Z80
byte LOAD_RAW,"M1",0,word $02_0
byte SET_BIOS,LOAD_BIOS
byte 0
game_kof97 byte "kof97",0,"King of Fighters '97",0,"232-",0,GAME_OK
byte SET_CHAR
byte LOAD_CROM,"C1",0,"C2",0,word $100_0
byte LOAD_CROM,"C3",0,"C4",0,word $100_0
byte LOAD_CROM,"C5",0,"C6",0,word $80_0
byte SET_PROG
byte LOAD_BSWAP,"P1",0,word $10_0
byte SET_PORT,SET_BANKSWITCH_4M
byte LOAD_BSWAP,"P2",0,word $40_0
byte SET_ADPCM_A,SET_ADPCM_B
byte LOAD_RAW,"V1",0,word $40_0
byte LOAD_RAW,"V2",0,word $40_0
byte LOAD_RAW,"V3",0,word $40_0
byte SET_FIX
byte LOAD_SROM,"S1",0,word $02_0
byte SET_Z80
byte LOAD_RAW,"M1",0,word $02_0
byte SET_BIOS,LOAD_BIOS
byte 0
'' Note: MG1 is 256k, but sound isn't obviously broken
game_kof98h byte "kof98h",0,"King of Fighters '98",0,"242-",0,GAME_OK
byte LOAD_CROM,"C1",0,"C2",0,word $100_0
byte LOAD_CROM,"C3",0,"C4",0,word $100_0
byte LOAD_CROM,"C5",0,"C6",0,word $100_0
byte LOAD_CROM,"C7",0,"C8",0,word $100_0
byte SET_PROG
byte LOAD_BSWAP,"PN1",0,word $10_0
byte SET_PORT,SET_BANKSWITCH_4M
byte LOAD_BSWAP,"P2",0,word $40_0
byte SET_ADPCM_A,SET_ADPCM_B
byte LOAD_RAW,"V1",0,word $40_0
byte LOAD_RAW,"V2",0,word $40_0
byte LOAD_RAW,"V3",0,word $40_0