2 # svp - Sega Virtua Processor
3 # pico - Sega Pico (not really cart hw, but convenient to support here)
4 # prot - siple copy protection devices in unlicensed cartridges (see prot. below)
5 # prot_lk3 - Lion King 3 / Super King Kong 99 protection.
7 # cartridge properties (prop = ...):
8 # no_sram - don't emulate sram/EEPROM even if ROM headers tell it's there
9 # no_eeprom - save storage is not EEPROM, even if ROM headers tell it is
10 # filled_sram - save storage needs to be initialized with FFh instead of 00h
13 # ssf2_mapper - used in Super Street Fighter2
14 # x_in_1_mapper - used in many *-in-1 pirate carts
16 # radica_mapper - similar to x_in_1_mapper
18 # save storage memory range (inclusive, overrides ROM header):
19 # sram_range = <start, end>
22 # eeprom_type = <1|2|3> - enable EEPROM, use type X (7bit, 2 addr words, 3 addr words).
23 # See EkeEke's gen_eeprom.pdf "mode" descriptions for 24Cxx EEPROMs.
24 # eeprom_lines = <SCL,SDA_IN,SDA_OUT>
25 # - select data bus pins that are connected to EEPROM
26 # SCL, SDA_IN and SDA_OUT pins (0-15 for D0-D15).
28 # prot_ro_value16 = <addr, mask, val> - return constant <val> on reads at location
29 # (<addr> & <mask>), ignore writes.
30 # prot_rw_value16 = <addr, mask, val> - same as above, but writeable
33 check_str = 0x150, "Virtua Racing"
37 check_str = 0x150, "VIRTUA RACING"
41 check_str = 0x100, "SEGA PICO"
45 check_str = 0x100, "IMA IKUNOUJYUKU"
48 # sram emulation triggers some protection for this one
50 check_str = 0x120, "PUGGSY"
53 # game has problems if it's save RAM is not initialized with FFh:
55 check_str = 0x150, "DINO DINI'S SOCCER"
58 [Micro Machines 2 - Turbo Tournament]
59 check_str = 0x150, "MICRO MACHINES II"
63 [Super Street Fighter II - The New Challengers (U)]
64 check_str = 0x150, "SUPER STREET FIGHTER2 The New Challengers"
68 # detect *_in_1 based on first game and if it's larger than it should be,
69 # as some dumps look like to be incomplete.
70 # This will also pick overdumps, but those should still work with the mapper applied.
72 check_str = 0x120, "FLICKY"
73 check_size_gt = 0x020000
77 check_str = 0x150, "ROBOCOP 3"
78 check_size_gt = 0x080000
82 check_str = 0x150, "ALIEN 3"
83 check_size_gt = 0x080000
87 check_str = 0x150, " SHOVE IT!"
88 check_size_gt = 0x020000
92 check_str = 0x150, "MS PACMAN"
93 check_size_gt = 0x020000
98 check_str = 0x150, "KID CHAMELEON"
99 check_size_gt = 0x100000
103 [Earth Defend, The (Unl)]
104 check_str = 0x94, "THE EARTH DEFEND"
107 [Funny World & Balloon Boy (Unl)]
108 check_str = 0xfe, "WISEGAME 11-03-1993"
111 [Whac-A-Critter (Unl)]
112 check_str = 0x95, "MALLET LEGEND"
115 # EEPROM games - thanks to EkeEke for most of this info
117 check_str = 0x150, "COLLEGE SLAM"
121 [Frank Thomas Big Hurt Baseball]
122 check_str = 0x150, "FRANK THOMAS BIGHURT BASEBAL"
127 check_str = 0x150, "MICRO MACHINES II"
128 sram_range = 0x300000,0x380001
132 [Micro Machines - Turbo Tournament '96]
133 check_str = 0x150, " "
135 sram_range = 0x300000,0x380001
139 [Micro Machines - Turbo Tournament '96]
140 check_str = 0x150, " "
142 sram_range = 0x300000,0x380001
146 [Micro Machines Military]
147 check_str = 0x150, " "
149 sram_range = 0x300000,0x380001
153 [Micro Machines Military]
154 check_str = 0x150, " "
156 sram_range = 0x300000,0x380001
161 check_str = 0x150, "NBA JAM "
165 [NBA Jam Tournament Edition]
166 check_str = 0x150, "NBA JAM TOURNAMENT EDITION"
167 sram_range = 0x200000,0x200001
171 [NFL Quarterback Club]
172 check_str = 0x150, "NFL QUARTERBACK CLUB"
177 check_str = 0x150, "NHLPA Hockey '93"
178 sram_range = 0x200000,0x200001
183 check_str = 0x150, "NHLPA HOCKEY '93"
184 sram_range = 0x200000,0x200001
189 check_str = 0x150, "RINGS OF POWER"
190 sram_range = 0x200000,0x200001
194 # Unlicensed games with simple protections
195 # some of these come from Haze, some from myself (notaz).
196 [Bug's Life, A (Unl)]
197 check_str = 0x104, " "
198 check_crc32 = 0x10458e09
200 prot_ro_value16 = 0xa13000,0xffff00,0x28
203 check_str = 0x172, "GAME : ELF WOR"
205 prot_ro_value16 = 0x400000,-2,0x5500
206 prot_ro_value16 = 0x400002,-2,0xc900 # check is done if the above one fails
207 prot_ro_value16 = 0x400004,-2,0x0f00
208 prot_ro_value16 = 0x400006,-2,0x1800 # similar to above
210 [King of Fighters '98, The (Unl)]
211 check_str = 0x104, " "
212 check_crc32 = 0xcbc38eea
214 prot_ro_value16 = 0x480000,0xff0000,0xaa00
215 prot_ro_value16 = 0x4a0000,0xff0000,0x0a00
216 prot_ro_value16 = 0x4c0000,0xff0000,0xf000
217 prot_ro_value16 = 0x400000,0xc00000,0x0000 # default for 400000-7f0000
220 check_str = 0x104, " are Registered Trademarks"
221 check_crc32 = 0xc004219d
224 [Lion King II, The (Unl)]
225 check_str = 0x104, " are Registered Trademarks"
226 check_crc32 = 0xaff46765
228 prot_rw_value16 = 0x400000,0xc00004,0
229 prot_rw_value16 = 0x400004,0xc00004,0
231 [Mahjong Lover (Unl)]
232 check_str = 0x118, "CREATON. "
233 check_crc32 = 0xddd02ba4
235 prot_ro_value16 = 0x400000,-2,0x9000
236 prot_ro_value16 = 0x401000,-2,0xd300
238 [Pocket Monsters (Unl)]
239 check_str = 0x104, " "
240 check_crc32 = 0xf68f6367
242 prot_ro_value16 = 0xa13002,-2,0x01
243 prot_ro_value16 = 0xa1303e,-2,0x1f
245 [Pocket Monsters (Unl) [a1]]
246 check_str = 0x104, " "
247 check_crc32 = 0xfb176667
249 prot_ro_value16 = 0xa13000,-2,0x14
250 prot_ro_value16 = 0xa13002,-2,0x01
251 prot_ro_value16 = 0xa1303e,-2,0x1f
255 check_crc32 = 0x3ee639f0
257 prot_ro_value16 = 0xa13000,-2,0x0c
261 check_crc32 = 0xdecdf740
263 prot_ro_value16 = 0x400000,-2,0x5500
264 prot_ro_value16 = 0x400002,-2,0x0f00
265 prot_ro_value16 = 0x400004,-2,0xaa00
266 prot_ro_value16 = 0x400006,-2,0xf000
269 check_str = 0x104, " "
270 check_crc32 = 0xf26f88d1
272 prot_ro_value16 = 0x400002,-2,0x9800
273 prot_ro_value16 = 0x400004,-2,0xaa00 # or 0xc900
274 prot_ro_value16 = 0x400006,-2,0xf000
276 [Super Bubble Bobble (Unl)]
277 check_str = 0x104, " are Registered Trademarks"
278 check_crc32 = 0x4820a161
280 prot_ro_value16 = 0x400000,-2,0x5500
281 prot_ro_value16 = 0x400002,-2,0x0f00
283 [Super King Kong 99 (Unl)]
284 check_str = 0x104, " are Registered Trademarks"
285 check_crc32 = 0x413dfee2
288 [Super Mario Bros. (Unl)]
289 check_str = 0x140, "SUPER MARIO BROS "
291 prot_ro_value16 = 0xa13000,-2,0x0c
293 [Super Mario 2 1998 (Unl)]
294 check_str = 0x104, " are Registered Trademarks"
295 check_crc32 = 0xf7e1b3e1
297 prot_ro_value16 = 0xa13000,-2,0x0a
300 check_str = 0x104, " are Registered Trademarks"
301 check_crc32 = 0xb8261ff5
303 prot_rw_value16 = 0x400000,0xc00000,0