minor psp stuff
[libpicofe.git] / base_readme.txt
1 #ifdef GP2X\r
2 For help / comments / questions visit GP32X boards at:\r
3 http://www.gp32x.com/board/\r
4 \r
5 #endif\r
6 \r
7 About\r
8 -----\r
9 \r
10 #ifdef PSP\r
11 This is yet another Megadrive / Genesis emulator for PSP, but with\r
12 Sega CD / Mega CD support. Although it has been originally written having\r
13 ARM CPU based devices in mind, it has now been ported to PSP too, by\r
14 replacing ARM specific parts with portable C code.\r
15 The base code originates from Dave's (fdave, finalburn) PicoDrive 0.30 for\r
16 Pocket PC. The Sega/Mega CD code is roughly based on Stephane Dallongeville's\r
17 Gens.\r
18 #else\r
19 This is yet another Megadrive / Genesis / Sega CD / Mega CD emulator, which\r
20 was written having ARM-based handheld devices in mind (such as PDAs,\r
21 smartphones and handheld consoles like GP2X and Gizmondo of course).\r
22 The critical parts (renderer, 68K and Z80 cpu interpreters) and some other\r
23 random code is written in ARM asm, other code is C. The base code originates\r
24 from Dave's (fdave, finalburn) PicoDrive 0.30 for Pocket PC. The Sega/Mega CD\r
25 code is roughly based on Stephane Dallongeville's Gens.\r
26 #endif\r
27 \r
28 PicoDrive is the first emulator ever to properly emulate Virtua Racing and\r
29 it's SVP chip.\r
30 \r
31 \r
32 How to make it run\r
33 ------------------\r
34 \r
35 #ifdef GP2X\r
36 Copy PicoDrive.gpe, pico940_v2.bin and mmuhack.o to any place in your filesystem\r
37 (all 3 files must be in the same directory) and run PicoDrive.gpe.\r
38 Then load a ROM and enjoy! ROMs can be in .smd or .bin format and can be zipped.\r
39 \r
40 #endif\r
41 #ifdef GIZ\r
42 First make sure you have homebrew-enabled Service Pack installed. Then copy\r
43 PicoDrive.exe and KGSDK.dll to any place in your filesystem (both files must\r
44 be in the same directory) and run PicoDrive.exe using the launcher of your choice\r
45 (some of them might require renaming PicoDrive.exe to Autorun.exe, placing it in\r
46 the root of SD, etc). Then load a ROM and enjoy! ROMs can be placed anywhere, can\r
47 be in .smd or .bin format and can be zipped (one ROM per zip).\r
48 \r
49 #endif\r
50 #ifdef PSP\r
51 If you are running a custom firmware, just copy the whole PicoDrive directory to\r
52 /PSP/GAME or /PSP/GAMEXXX directory in your memory stick (it shouldn't matter\r
53 which one GAME* directory to use).\r
54 \r
55 If you are on 1.5, there is a separate KXploited version for it.\r
56 \r
57 #endif\r
58 Note that this emulator may require some tweaking of configuration settings to run\r
59 some games well. For Genesis/MegaDrive, if you have any problems (game does not\r
60 boot, sound is glitchy, broken graphics), try to:\r
61   * enable "Accurate timing" (options menu)\r
62 #ifdef PSP\r
63   * enable "accurate renderer"\r
64 #else\r
65   * enable "16bit accurate renderer"\r
66 #endif\r
67   * make sure Z80 is not disabled (in "advanced options" submenu in options).\r
68 Some games may need to be reset after adjusting settings.\r
69 \r
70 For possible Sega/Mega CD problems, see "Other important stuff" section below.\r
71 \r
72 \r
73 How to run Sega/Mega CD games\r
74 -----------------------------\r
75 \r
76 To play any game, you need BIOS files. These files must be copied to the same\r
77 directory as mentioned PicoDrive files. Files can be named as follows:\r
78 \r
79 US: us_scd1_9210.bin us_scd2_9306.bin SegaCDBIOS9303.bin\r
80 EU: eu_mcd1_9210.bin eu_mcd2_9303.bin eu_mcd2_9306.bin\r
81 JP: jp_mcd1_9112.bin jp_mcd1_9111.bin\r
82 these files can also be zipped.\r
83 \r
84 The game must be dumped to ISO format, but BIN can be used too. If you want\r
85 CD music, you must use ISO+mp3 files. Audio from BIN files won't be read at\r
86 all. Also BIN files are usually larger, so it's better to use ISO. ISO+mp3\r
87 files can be named similarly as for other emus.\r
88 Here are some examples:\r
89 \r
90 SonicCD.iso             data track\r
91 SonicCD_02.mp3          audio track 1 (CD track 2)\r
92 SonicCD_03.mp3\r
93 ...\r
94 \r
95 Sonic the Hedgehog CD (US) - Track 01.iso\r
96 Sonic the Hedgehog CD (US) - Track 02.mp3\r
97 Sonic the Hedgehog CD (US) - Track 03.mp3\r
98 ...\r
99 \r
100 It is very important to have the MP3s encoded at 44kHz sample rate and they\r
101 must be stereo, or else they will play too fast/slow or won't play at all.\r
102 Be sure NOT to use anything but classic mp3 format (don't use things like\r
103 mp3pro).\r
104 \r
105 ISO files can also be .cso compressed or zipped (but not mp3 files, as they\r
106 are already compressed). CSO will cause slightly longer loading times, and\r
107 is not very good for FMV games. Zipping ISOs is not recommened, as it will\r
108 cause very long (several minute) loading times, and make some games\r
109 unplayable. File naming is similar as with uncompressed ISOs.\r
110 Example:\r
111 \r
112 SonicCD.cso             data track\r
113 SonicCD_02.mp3          audio track 1 (CD track 2)\r
114 SonicCD_03.mp3\r
115 ...\r
116 \r
117 \r
118 Other important stuff\r
119 ---------------------\r
120 \r
121 * If your Genesis/MD game hangs or has glitches, this is most likely because\r
122   "Accurate timing" option is not enabled, or fast renderer is used\r
123   (try the accurate one), or Z80 is disabled in "advanced options".\r
124 * Sega/Mega CD: If the game hangs after Sega logo, you may need to enable\r
125   "better sync" and/or "Scale/Rot. fx" options, found in "Sega/Mega CD options"\r
126   submenu, and then reset the game. Some other games may also require\r
127   "CDDA audio" and "PCM audio" to be enabled to work (enabled by default).\r
128   Incorrectly named/missing mp3s may also be the cause.\r
129 * Sega/Mega CD: If the background music is missing, you might have named your\r
130   MP3s incorrectly. Read "How to run Sega/Mega CD games" section again.\r
131 * Sega/Mega CD: If the game music plays too fast/too slow/out of sync, you have\r
132   encoded your MP3s incorrectly. You will have to re-encode and/or resample them.\r
133   PicoDrive is not a mp3 player, so all mp3s MUST be encoded at 44.1kHz stereo.\r
134   Badly encoded mp3s can cause various kind of problems, like noises, incorrect\r
135   playback speeds, not repeating music or even prevent game from starting.\r
136   Some games (like Snatcher) may hang in certain scenes because of this.\r
137   Some mp3 rippers/encoders remove silence and beginning/end of audio tracks,\r
138   what causes audio desyncs and/or mentioned problems.\r
139 * Sega/Mega CD: If your games hangs at the BIOS screen (with planets shown),\r
140   you may be using a bad BIOS dump. Try another from a different source.\r
141 * Some Sega/Mega CD games don't use Z80 for anything, but they leave it active,\r
142   so disabling Z80 manually (in advanced options) improves performance.\r
143 #ifdef GP2X\r
144 * When you use both GP2X CPUs, keep in mind that you can't overclock as high as\r
145   when using ARM920 only. For example my GP2X when run singlecore can reach\r
146   280MHz, but with both cores it's about 250MHz. When overclocked too much,\r
147   it may start hanging and producing random noise, or causing ARM940 crashes\r
148   ("940 crashed" message displayed).\r
149 #endif\r
150 * Use lower bitrate for better performance (96 or 128kbps CBRs recommended).\r
151 #ifdef GP2X\r
152 * Due to internal implementation mp3s must not be larger that 12MB\r
153   (12582912 bytes). Larger mp3s will not be fully loaded.\r
154 * RAM timings option is good for dualcore operation (it is disabled by\r
155   default because it doesn't work on every GP2X, so enable it in advanced\r
156   options).\r
157 #endif\r
158 \r
159 \r
160 Configuration\r
161 -------------\r
162 \r
163 @@0. "Renderer"\r
164 #ifdef GP2X\r
165 8bit fast:\r
166 This enables alternative heavily optimized tile-based renderer, which renders\r
167 pixels not line-by-line (this is what accurate renderers do), but in 8x8 tiles,\r
168 which is much faster. But because of the way it works it can't render any\r
169 mid-frame image changes (raster effects), so it is useful only with some games.\r
170 \r
171 Other two are accurate line-based renderers. The 8bit is faster but does not\r
172 run well with some games like Street Racer.\r
173 \r
174 #endif\r
175 #ifdef GIZ\r
176 This option allows to switch between 16bit and 8bit renderers. The 8bit one is\r
177 a bit faster for some games, but not much, because colors still need to be\r
178 converted to 16bit, as this is what Gizmondo requires. It also introduces\r
179 graphics problems for some games, so it's best to use 16bit one.\r
180 \r
181 #endif\r
182 #ifdef PSP\r
183 This option allows to switch between fast and accurate renderers. The fast one\r
184 is much faster, because it draws the whole frame at a time, instead of doing it\r
185 line by line, like the accurate one does. But because of the way it works it\r
186 can't render any mid-frame image changes (raster effects), so it is useful only\r
187 for some games.\r
188 \r
189 #endif\r
190 #ifdef GIZ\r
191 @@0. "Scanline mode"\r
192 This option was designed to work around slow framebuffer access (the Gizmondo's\r
193 main bottleneck) by drawing every other line (even numbered lines only).\r
194 This improves performance greatly, but looses detail.\r
195 \r
196 #endif\r
197 #ifdef GP2X\r
198 @@0. "Scaling"\r
199 "hw" means GP2X hardware scaler, which causes no performance loss, but scaled\r
200 image looks a bit blocky. "sw" means software scaling, which uses pixel\r
201 averaging and may look a bit nicer, but blurry. Horizontal scaling is only for\r
202 games which use so called "32 column mode" (256x224 or 256x240), and scales\r
203 image width to 320 pixels. Vertical scales height to 240 for games which use\r
204 height 224 (most of them).\r
205 \r
206 #endif\r
207 #ifdef GIZ\r
208 @@0. "Scale low res mode"\r
209 The Genesis/Megadrive had several graphics modes, some of which were only 256\r
210 pixels wide. This option scales their width to 320 by using simple\r
211 pixel averaging scaling. Works only when 16bit renderer is enabled.\r
212 \r
213 #endif\r
214 @@0. "Accurate timing"\r
215 This adds some more emulation precision, but slows the emulation down. Without\r
216 this option some games do not boot (Red Zone for example), others have sound\r
217 problems. This options has no effect for Sega/Mega CD emulation.\r
218 \r
219 @@0. "Accurate sprites"\r
220 This option improves emulation of sprite priorities, it also enables emulation\r
221 of sprite collision bit. If you see one sprite being drawn incorrectly above\r
222 the other (often seen in Sonic 3D Blast), you can enable this to fix the problem.\r
223 This only works with the accurate renderers (see first option).\r
224 \r
225 @@0. "Show FPS"\r
226 Self-explanatory. Format is XX/YY, where XX is the number of rendered frames and\r
227 YY is the number of emulated frames per second.\r
228 \r
229 @@0. "Frameskip"\r
230 How many frames to skip rendering before displaying another.\r
231 "Auto" is recommended.\r
232 \r
233 @@0. "Enable sound"\r
234 Does what it says. You must enable at least YM2612 or SN76496 (in advanced options,\r
235 see below) for this to make sense (already done by default).\r
236 \r
237 @@0. "Sound Quality"\r
238 #ifdef PSP\r
239 Sound sample rate, affects sound quality and emulation performance.\r
240 22050Hz setting is the recommended one.\r
241 #else\r
242 Sound sample rate and stereo mode. Mono is not available in Sega/Mega CD mode.\r
243 #endif\r
244 #ifdef GP2X\r
245 If you want 44100Hz sound, it is recommended to enable the second core (next option).\r
246 \r
247 @@0. "Use ARM940 core for sound"\r
248 This option causes PicoDrive to use ARM940T core (GP2X's second CPU) for sound \r
249 (i.e. to generate YM2612 samples) to improve performance noticeably.\r
250 #endif\r
251 \r
252 @@0. "6 button pad"\r
253 If you enable this, games will think that 6 button gamepad is connected. If you\r
254 go and reconfigure your keys, you will be able to bind X,Y,Z and mode actions.\r
255 \r
256 @@0. "Region"\r
257 This option lets you force the game to think it is running on machine from the\r
258 specified region, or just to set autodetection order. Also affects Sega/Mega CD.\r
259 \r
260 @@0. "Use SRAM/BRAM savestates"\r
261 This will automatically read/write SRAM (or BRAM for Sega/Mega CD) savestates for\r
262 games which are using them. SRAM is saved whenever you enter the menu or exit the\r
263 emulator.\r
264 \r
265 @@0. "Confirm savestate"\r
266 Allows to enable confirmation on savestate saving (to prevent savestate overwrites),\r
267 on loading (to prevent destroying current game progress), and on both or none, when\r
268 using shortcut buttons (not menu) for saving/loading.\r
269 \r
270 @@0. "Save slot"\r
271 This is a slot number to use for savestates. This can also be configured to be\r
272 changed with a button (see "key configuration").\r
273 \r
274 #ifdef GP2X\r
275 @@0. "GP2X CPU clocks"\r
276 Here you can change clocks of both GP2X's CPUs. Larger values increase performance.\r
277 There is no separate option for the second CPU because both CPUs use the same clock\r
278 source. Setting this option to 200 will cause PicoDrive NOT to change GP2X's clocks\r
279 at all (this is if you use external program to set clock).\r
280 \r
281 #endif\r
282 #ifdef PSP\r
283 @@0. "CPU/bus clock"\r
284 This allows to change CPU and bus clocks for PSP. 333MHz is recommended.\r
285 \r
286 @@0. "[Display options]"\r
287 Enters Display options menu (see below).\r
288 \r
289 #endif\r
290 @@0. "[Sega/Mega CD options]"\r
291 Enters Sega/Mega CD options menu (see below).\r
292 \r
293 @@0. "[advanced options]"\r
294 Enters advanced options menu (see below).\r
295 \r
296 @@0. "Save cfg as default"\r
297 If you save your config here it will be loaded on next ROM load, but only if there\r
298 is no game specific config saved (which will be loaded in that case).\r
299 You can press left/right to switch to a different config profile.\r
300 \r
301 @@0. "Save cfg for current game only"\r
302 Whenever you load current ROM again these settings will be loaded\r
303 #ifdef GP2X\r
304 (squidgehack and RAM settings will not take effect until emulator is restarted).\r
305 #endif\r
306 \r
307 \r
308 Advanced configuration\r
309 ----------------------\r
310 \r
311 Enter [advanced options] in config menu to see these options.\r
312 \r
313 #ifdef GP2X\r
314 @@1. "Gamma correction"\r
315 Alters image gamma through GP2X hardware. Larger values make image to look brighter,\r
316 lower - darker (default is 1.0).\r
317 \r
318 @@1. "A_SN's gamma curve"\r
319 If this is enabled, different gamma adjustment method will be used (suggested by A_SN\r
320 from gp32x boards). Basically it makes difference for dark and bright colors.\r
321 \r
322 @@1. "Perfect vsync"\r
323 This one adjusts the LCD refresh rate to better match game's refresh rate and starts\r
324 synchronizing rendering with it. Should make scrolling smoother and eliminate tearing.\r
325 \r
326 #endif\r
327 @@1. "Disable sprite limit"\r
328 The MegaDrive/Genesis had a limit on how many sprites (usually smaller moving\r
329 objects) can be displayed on single line. This option allows to disable that\r
330 limit. Note that some games used this to hide unwanted things, so it is not\r
331 always good to enable this option.\r
332 \r
333 @@1. "Emulate Z80"\r
334 Enables emulation of Z80 chip, which was mostly used to drive the other sound chips.\r
335 Some games do complex sync with it, so you must enable it even if you don't use\r
336 sound to be able to play them.\r
337 \r
338 @@1. "Emulate YM2612 (FM)"\r
339 This enables emulation of six-channel FM sound synthesizer chip, which was used to\r
340 produce sound effects and music.\r
341 \r
342 @@1. "Emulate SN76496 (PSG)"\r
343 This enables emulation of additional sound chip for additional effects.\r
344 \r
345 Note: if you change sound settings AFTER loading a ROM, you may need to reset\r
346 game to get sound. This is because most games initialize sound chips on\r
347 startup, and this data is lost when sound chips are being enabled/disabled.\r
348 \r
349 #ifdef GIZ\r
350 @@1. "Double buffering"\r
351 Draws the display to offscreen buffer, and flips it with visible one when done.\r
352 Unfortunately this causes serious tearing, unless v-sync is used (next option).\r
353 \r
354 @@1. "Wait for V-sync"\r
355 Waits for vertical sync before drawing (or flipping buffers, if previous option\r
356 is enabled). Emulation is stopped while waiting, so this causes large performance\r
357 hit.\r
358 \r
359 #endif\r
360 @@1. "gzip savestates"\r
361 This will always apply gzip compression on your savestates, allowing you to\r
362 save some space and load/save time.\r
363 \r
364 @@1. "Don't save last used ROM"\r
365 This will disable writing last used ROM to config on exit (what might cause SD\r
366 card corruption according to DaveC).\r
367 \r
368 #ifdef GP2X\r
369 @@1. "craigix's RAM timings"\r
370 This overclocks the GP2X RAM chips, but may cause instability. Recommended if you\r
371 use the second core for sound. Needs emulator restart to take effect.\r
372 See this thread:\r
373 http://www.gp32x.com/board/index.php?showtopic=32319\r
374 \r
375 @@1. "squidgehack"\r
376 Well known way to improve the GP2X performance. You must restart the emulator\r
377 for the change of this option to take effect.\r
378 \r
379 #endif\r
380 \r
381 Sega/Mega CD options \r
382 --------------------\r
383 \r
384 @@2,@@2,@@2. "USA/EUR/JAP BIOS"\r
385 These options just show if your BIOS files were correctly detected by the\r
386 emulator (it shows the filename it is using). If so, you can press Start to\r
387 test your BIOS.\r
388 \r
389 @@2. "CD LEDs"\r
390 The Sega/Mega CD unit had two blinking LEDs (red and green) on it. This option\r
391 will display them on top-left corner of the screen.\r
392 \r
393 @@2. "CDDA audio (using mp3s)"\r
394 This option enables CD audio playback.\r
395 \r
396 @@2. "PCM audio"\r
397 This enables 8 channel PCM sound source. It is required for some games to run,\r
398 because they monitor state of this audio chip.\r
399 \r
400 @@2. "ReadAhead buffer"\r
401 This option can prefetch more data from the CD image then requested by game\r
402 (to avoid accessing card later), what can improve performance in some cases.\r
403 #ifndef PSP\r
404 "OFF" is the recommended setting.\r
405 #endif\r
406 \r
407 @@2. "Save RAM cart"\r
408 Here you can enable 64K RAM cart. Format it in BIOS if you do.\r
409 \r
410 @@2. "Scale/Rot. fx"\r
411 The Sega/Mega CD had scaling/rotation chip, which allows effects similar to\r
412 "Mode 7" effects in SNES. Unfortunately emulating it is slow, and very few games\r
413 used it, so it's better to disable this option, unless game really needs it.\r
414 \r
415 @@2. "Better sync"\r
416 This option is similar to "Perfect synchro" in Gens. Some games require it to run,\r
417 for example most (all?) Wolfteam games, and some other ones. Don't use it for\r
418 games which don't need it, it will just slow them down.\r
419 \r
420 \r
421 #ifdef PSP\r
422 Display options\r
423 ---------------\r
424 \r
425 @@3. "Scale factor"\r
426 This allows to resize the displayed image by using the PSP's hardware. The number is\r
427 used to multiply width and height of the game image to get the size of image to be\r
428 displayed. If you just want to make it fullscreen, just use "Set to fullscreen"\r
429 setting below.\r
430 \r
431 @@3. "Hor. scale (for low res. games)"\r
432 This one works similarly as the previous setting, but can be used to apply additional\r
433 scaling horizontally, and is used for games which use lower (256 pixel wide) Gen/MD\r
434 resolution.\r
435 \r
436 @@3. "Hor. scale (for hi res. games)"\r
437 Same as above, only for higher (320 pixel wide) resolution using games.\r
438 \r
439 @@3. "Bilinear filtering"\r
440 If this is enabled, PSP hardware will apply bilinear filtering on the resulting image,\r
441 making it smoother, but blurry.\r
442 \r
443 @@3. "Gamma adjustment"\r
444 Color gamma can be adjusted with this.\r
445 \r
446 @@3. "Black level"\r
447 This can be used to reduce unwanted "ghosting" effect for dark games, by making\r
448 black pixels brighter. Use in conjunction with "gamma adjustment" for more effect.\r
449 \r
450 @@3. "Wait for vsync"\r
451 Wait for the screen to finish updating before switching to next frame, to avoid tearing.\r
452 There are 3 options:\r
453 * never: don't wait for vsync.\r
454 * sometimes: wait only if emulator is running fast enough.\r
455 * always: always wait (causes emulation slowdown).\r
456 \r
457 @@3. "Set to unscaled centered"\r
458 Adjust the resizing options to set game image to it's original size.\r
459 \r
460 @@3. "Set to fullscreen"\r
461 Adjust the resizing options to make the game image fullscreen.\r
462 \r
463 \r
464 #endif\r
465 Key configuration\r
466 -----------------\r
467 \r
468 Select "Configure controls" from the main menu. Then select "Player 1" and you will\r
469 see two columns. The left column lists names of Genesis/MD controller buttons, and\r
470 #ifdef GP2X\r
471 the right GP2X ones, which are assigned to them. If you bind 2 different GP2X buttons\r
472 #endif\r
473 #ifdef GIZ\r
474 the right Giz ones, which are assigned to them. If you bind 2 different Giz buttons\r
475 #endif\r
476 #ifdef PSP\r
477 the right PSP ones, which are assigned to them. If you bind 2 different PSP buttons\r
478 #endif\r
479 to the same action, you will get a combo (which means that you will have to press\r
480 both buttons for that action to happen.\r
481 \r
482 \r
483 Cheat support\r
484 -------------\r
485 \r
486 To use GG/patch codes, you must type them into your favorite text editor, one\r
487 per line. Comments may follow code after a whitespace. Only GameGenie and\r
488 Genecyst patch formats are supported.\r
489 Examples:\r
490 \r
491 Genecyst patch (this example is for Sonic):\r
492 \r
493 00334A:0005 Start with five lives\r
494 012D24:0001 Keep invincibility until end of stage\r
495 009C76:5478 each ring worth 2\r
496 009C76:5678 each ring worth 3\r
497 ...\r
498 \r
499 Game Genie patch (for Sonic 2):\r
500 \r
501 ACLA-ATD4 Hidden palace instead of death egg in level select\r
502 ...\r
503 \r
504 Both GG and patch codes can be mixed in one file.\r
505 \r
506 When the file is ready, name it just like your ROM file, but with additional\r
507 .pat extension, making sure that case matches.\r
508 \r
509 Examples:\r
510 \r
511 ROM: Sonic.zip\r
512 PATCH FILE: Sonic.zip.pat\r
513 \r
514 ROM: Sonic 2.bin\r
515 PATCH FILE: Sonic 2.bin.pat\r
516 \r
517 Put the file into your ROMs directory. Then load the .pat file as you would\r
518 a ROM. Then Cheat Menu Option should appear in main menu.\r
519 \r
520 \r
521 What is emulated?\r
522 -----------------\r
523 \r
524 Genesis/MegaDrive:\r
525 #ifdef PSP\r
526 main 68k @ 7.6MHz: yes, FAME/C core\r
527 z80 @ 3.6MHz: yes, CZ80 core\r
528 #else\r
529 main 68k @ 7.6MHz: yes, Cyclone core\r
530 z80 @ 3.6MHz: yes, DrZ80 core\r
531 #endif\r
532 VDP: yes, except some quirks not used by games\r
533 YM2612 FM: yes, optimized MAME core\r
534 SN76489 PSG: yes, MAME core\r
535 SVP chip: yes! This is first emu to ever do this.\r
536 Some in-cart mappers are supported too.\r
537 \r
538 Sega/Mega CD:\r
539 #ifdef PSP\r
540 another 68k @ 12.5MHz: yes, FAME/C too\r
541 #else\r
542 another 68k @ 12.5MHz: yes, Cyclone too\r
543 #endif\r
544 gfx scaling/rotation chip (custom ASIC): yes\r
545 PCM sound source: yes\r
546 CD-ROM controller: yes (mostly)\r
547 bram (internal backup RAM): yes\r
548 \r
549 \r
550 Problems / limitations\r
551 ----------------------\r
552 \r
553 * 32x is not emulated.\r
554 #ifdef PSP\r
555 * SVP emulation is terribly slow.\r
556 #endif\r
557 * Various VDP quirks (window bug, scroll size 2, etc.) are not emulated,\r
558   as very few games use this (if any at all).\r
559 * The emulator is not 100% accurate, so some things may not work as expected.\r
560 \r
561 \r
562 Credits\r
563 -------\r
564 \r
565 This emulator is made of the code from following people/projects:\r
566 \r
567 notaz\r
568 GP2X, UIQ, PSP, Gizmondo ports, CPU core hacks,\r
569 lots of additional coding (see changelog).\r
570 Homepage: http://notaz.gp2x.de/\r
571 \r
572 Dave\r
573 Cyclone 68000 core, Pico emulation library\r
574 Homepage: http://www.finalburn.com/\r
575 \r
576 #ifdef PSP\r
577 Chui\r
578 FAME/C 68k interpreter core\r
579 (based on C68K by Stephane Dallongeville)\r
580 \r
581 Stephane Dallongeville (written), NJ (optimized)\r
582 CZ80 Z80 interpreter core\r
583 \r
584 #else\r
585 Reesy & FluBBa\r
586 DrZ80, the Z80 interpreter written in ARM assembly.\r
587 Homepage: http://reesy.gp32x.de/\r
588 \r
589 #endif\r
590 Tatsuyuki Satoh, Jarek Burczynski, MAME development\r
591 software implementation of Yamaha FM sound generator\r
592 \r
593 MAME development\r
594 Texas Instruments SN76489 / SN76496 programmable tone/noise generator\r
595 Homepage: http://www.mame.net/\r
596 \r
597 Stephane Dallongeville\r
598 Gens, MD/Mega CD/32X emulator. Most Sega CD code is based on this emu.\r
599 #ifdef PSP\r
600 \r
601 people @ ps2dev.org forums / PSPSDK crew\r
602 libaudiocodec code (by cooleyes)\r
603 other sample code\r
604 #else\r
605 \r
606 Helix community\r
607 Helix mp3 decoder\r
608 #endif\r
609 \r
610 \r
611 Additional thanks\r
612 -----------------\r
613 \r
614 * Charles MacDonald (http://cgfm2.emuviews.com/) for old but still very useful\r
615   info about genesis hardware.\r
616 * Steve Snake for all that he has done for Genesis emulation scene.\r
617 * Tasco Deluxe for his reverse engineering work on SVP and some mappers.\r
618 * Bart Trzynadlowski for his SSFII and 68000 docs.\r
619 * Haze for his research (http://haze.mameworld.info).\r
620 * Mark and Jean-loup for zlib library.\r
621 * ketchupgun for the skin.\r
622 #ifdef GP2X\r
623 * rlyeh and all the other people behind the minimal library.\r
624 * Squidge for his famous squidgehack(tm).\r
625 * Dzz for his ARM940 sample code.\r
626 * GnoStiC & Puck2099 for USB joystick support.\r
627 * Hermes PS2R, god_at_hell for the CpuCtrl library.\r
628 * A_SN for his gamma code.\r
629 * craigix for supplying the GP2X hardware and making this port possible.\r
630 * Alex for the icon.\r
631 * Exophase, Rokas and Lordus for various ideas.\r
632 * All the people from gp32x boards for their support.\r
633 #endif\r
634 #ifdef GIZ\r
635 * Kingcdr's for the SDK and Reesy for the DLL and sound code.\r
636 * jens.l for supplying the Gizmondo hardware and making this port possible.\r
637 #endif\r
638 #ifdef UIQ\r
639 * Peter van Sebille for his various open-source Symbian projects to learn from.\r
640 * Steve Fischer for his open-source Motorola projects.\r
641 * The development team behind "Symbian GCC Improvement Project"\r
642   (http://www.inf.u-szeged.hu/symbian-gcc/) for their updated pre-SymbianOS9\r
643   compile tools.\r
644 * AnotherGuest for all his Symbian stuff and support.\r
645 * Inder for the icons.\r
646 #endif\r
647 * Anyone else I forgot. You know who you are.\r
648 \r
649 \r
650 Changelog\r
651 ---------\r
652 1.40b\r
653   * Fixed sprite masking code. Thanks to Lordus for explaining how it works.\r
654   + Added "disable sprite limit" option.\r
655   + PSP: added black level adjustment to display options.\r
656   * Changed reset to act as 'soft' reset.\r
657   + Added detection for Puggsy (it doesn't really have sram).\r
658   * Some small timing adjustments.\r
659 \r
660 1.40a\r
661   * GP2X: Fixed a binding problem with up and down keys.\r
662   * Default game config no longer overrides global user config.\r
663 \r
664 1.40\r
665   + Added support for SVP (Sega Virtua Processor) to emulate Virtua Racing,\r
666     wrote ARM recompiler and some HLE code for VR. Credits to Exophase and\r
667     Rokas for various ideas.\r
668   * Changed config file format, files are now human-readable. Game specific\r
669     configs are now held in single file (but old game config files are still\r
670     read when new one is missing).\r
671   * Fixed a bug where some key combos didn't work as expected.\r
672   * Fixed a regression in renderer (ARM ports only, some graphic glitches in\r
673     rare cases).\r
674   * Adjusted fast renderer to work with more games, including VR.\r
675   * Fixed a problem where SegaCD RAM cart data was getting lost on reset.\r
676   * GP2X: Greatly reduced SegaCD FMV game slowdowns by disabling read-ahead\r
677     in the Linux kernel and C library (thanks to Rokas and Exophase for ideas\r
678     again). Be sure to keep "ReadAhead buffer" OFF to avoid slowdowns.\r
679   + PicoDrive now comes with a game config file for some games which need\r
680     special settings, so they should now work out-of-the-box. More games will\r
681     be added with later updates.\r
682   + GP2X: Files now can be deleted by pressing A+SELECT in the file browser.\r
683 \r
684 1.35b\r
685   * PSP: mp3 code should no longer fail on 1.5 firmware.\r
686   + PSP: added gamma adjustment option.\r
687   + Added .cso ISO format support. Useful for non-FMV games.\r
688   * It is now possile to force a region after the ROM is loaded.\r
689   * Fixed a sram bug in memhandlers (fixes Shining in the Darkness saves).\r
690   * PSP: fixed another bug in memhanlers, which crashed the emu for some games\r
691     (like NBA Jam and NHL 9x).\r
692   + PSP: added suspend/resume handling for Sega CD games.\r
693   + GP2X: added additional low volume levels for my late-night gaming sessions\r
694     (in stereo mode only).\r
695   + GP2X: added "fast forward" action in key config. Not recommended to use for\r
696     Sega CD, may case problems there.\r
697   * Some other small tweaks I forgot about.\r
698 \r
699 1.35a\r
700   * PSP: fixed a bug which prevented to load any ROMs after testing the BIOS.\r
701   * PSP: fixed incorrect CZ80 memory map setup, which caused Z80 crashes and\r
702     graphics corruption in EU Mega CD model1 BIOS menus.\r
703   + PSP: added additional "set to 4:3 scaled" display option for convenience.\r
704   + PSP: Added an option to disable frame limitter (works only with non-auto frameskip).\r
705 \r
706 1.35\r
707   + PSP port added. Lots of new code for it. Integrated modified FAME/C, CZ80 cores.\r
708   + Some minor generic optimizations.\r
709   * Patched some code which was crashing under PSP, but was working in GP2X/Giz\r
710     (although it should have crashed there too).\r
711   * Readme updated.\r
712 \r
713 1.34\r
714   + Gizmondo port added.\r
715   + Some new optimizations in memory handlers, and for shadow/hilight mode.\r
716   + Added some hacks to make more games work without enabling "accurate timing".\r
717   * Adjusted timing for "accurate timing" mode and added preliminary VDP FIFO\r
718     emulation. Fixes Double Dragon 2, tearing in Chaos Engine and some other games.\r
719   * Fixed a few games not having sound at startup.\r
720   * Updated serial EEPROM code to support more games. Thanks to EkeEke for\r
721     providing info about additional EEPROM types and game mappers.\r
722   * The above change fixed hang of NBA Jam.\r
723   * Minor adjustments to control configurator.\r
724 \r
725 1.33\r
726   * Updated Cyclone core to 0.0088.\r
727   + Added A r k's usbjoy fix.\r
728   + Added "perfect vsync" option, which adjusts GP2X LCD refresh rate and syncs\r
729     emulation to it to eliminate tearing and ensure smoothest scrolling possible.\r
730   + Added an option to use A_SN's camma curve for gamma correction (improves dark\r
731     and bright color display for mk2s).\r
732   * Sometimes stray sounds were played after loading a savestate. Fixed.\r
733   * Fixed a problem where >6MB mp3s were corrupted in memory (sound glitches in\r
734     Snatcher).\r
735   * PD no longer overwrites video player code in memory, video player now can be\r
736     used after exiting PicoDrive.\r
737   * Fixed a bug which was causing Sonic 3 code to deadlock in some rare conditions\r
738     if "accurate timing" was not enabled.\r
739   * Fixed support for large hacked ROMs like "Ultimate Mortal Kombat Trilogy".\r
740     Upto 10MB hacked ROMs are supported now.\r
741   + Config profiles added (press left/right when saving config).\r
742   * Changed key configuration behavior to the one from gpfce (should be more\r
743     intuitive).\r
744   + Added some skinning capabilities to the menu system with default skin by\r
745     ketchupgun. Delete skin directory if you want old behaviour.\r
746   * Some other little tweaks I forgot about.\r
747 \r
748 1.32\r
749   + Added some new scaling options.\r
750   + Added ability to reload CD images while game is running (needed for games\r
751     with multiple CDs, like Night Trap).\r
752   + Added RAM cart emulation.\r
753   * Fixed DMA timing emulation (caused lock-ups for some genesis games).\r
754   * Idle loop detection was picking up wrong code and causing glitches, fixed.\r
755   * The ym2612 code on 940 now can handle multiple updates per frame\r
756     (fixes Thunger Force III "seiren" level drums for example).\r
757   * Memory handlers were ignoring some writes to PSG chip, fixed (missing sounds in\r
758     Popful Mail, Silpheed).\r
759   * Improved z80 timing, should fix some sound problems.\r
760   * Fixed a bug with sram register (fixes Phantasy Star 4).\r
761   * ROM loader was incorrectly identifying some ROMs as invalid. Fixed.\r
762   * Added code for PRG ram write protection register (Dungeon Explorer).\r
763   * The memory mode register change in 1.31 was unsafe and caused some glitches in\r
764     AH-3 Thunderstrike. Fixed.\r
765   * Fixed a file descriptor leak.\r
766   * Updated documentation, added Gmenu2x manual.\r
767 \r
768 1.31\r
769   * Changed the way memory mode register is read (fixes Lunar 2, broken in 1.30).\r
770   * Fixed TAS opcode on sub-68k side (fixes Batman games).\r
771   * File browser now filters out mp3s, saves and some other files, which are not ROMS.\r
772 \r
773 1.30\r
774   + ISO files now can be zipped. Note that this causes VERY long loading times.\r
775   + Added data pre-buffering support, this allows to reduce frequency of short pauses\r
776     in FMV games (caused by SD access), but makes those pauses longer.\r
777   * Fixed PCM DMA transfers (intro FMV in Popful Mail).\r
778   + Properly implemented "decode" data transformation (Jaguar XJ220).\r
779   * Integrated "better sync" code into cyclone code, what made this mode much faster.\r
780   * Fixed a bug related to game specific config saving.\r
781   * Frameskipper was skipping sound processing, what caused some audio desyncs. Fixed.\r
782   * Fixed reset not working for some games.\r
783   + New assembly optimized memory handlers for CD (gives at least a few fps).\r
784     Also re-enabled all optimizations from 0.964 release.\r
785   + New idle-loop detection code for sub-68k. Speeds up at least a few games.\r
786 \r
787 1.201\r
788   + Added basic cheat support (GameGenie and Genecyst patches).\r
789 \r
790 1.20\r
791   * Fixed a long-standing problem in audio mixing code which caused slight distortions\r
792     at lower sample rates.\r
793   * Changed the way 920 and 940 communicates (again), should be more reliable and give\r
794     slight performance increase.\r
795   * Some optimizations in audio mixing code.\r
796   * Some menu changes (background added, smaller font in ROM browser, savestate loader\r
797     now can select slots).\r
798   + 1M mode DMA transfers implemented (used by FMV games like Night Trap and Sewer Shark).\r
799   + Games now can run code from WORD RAM in 1M mode (fixes Adventures of Willy Beamish).\r
800   + "Cell arrange" address mapping is now emulated (Heart of the alien).\r
801   + "Color numeric operation" is now emulated (text in Lunar 2, Silpheed intro graphics).\r
802   + "Better sync" option added (prevents some games from hanging).\r
803 \r
804 1.14\r
805   + Region autodetection now can be customized.\r
806   * When CDDA music tracks changed, old buffer contents were incorrectly played. Fixed.\r
807   * BRAM is now automatically formatted (no need to enter BIOS menu and format any more).\r
808   * Games now can be reset, CDDA music no longer breaks after loading another ISO.\r
809   * Fixed a race condition between 920 and 940 which sometimes caused CDDA music not to play.\r
810   + Savestates implemented for Sega/Mega CD.\r
811   + PCM sound added.\r
812   * Some mixer code rewritten in asm. 22kHz and 11kHz sound rates are now supported in\r
813     Mega CD mode (but mp3s must still be 44kHz stereo).\r
814   + Timer emulation added.\r
815   * CDC DMA tansfers fixed. Snatcher and probably some more games now boot.\r
816   * 2M word RAM -> VDP transfers fixed, no more corruption in Ecco and some other games.\r
817 \r
818 1.10\r
819   + GP2X: Added experimental Sega CD support.\r
820   + GP2X: Added partial gmv movie playback support.\r
821 \r
822 0.964\r
823   * GP2X: Fixed a sound buffer underflow issue on lower sample rate modes, which was\r
824           happening for NTSC games and causing sound clicks.\r
825   * GP2X: Redone key config to better support USB joysticks (now multiple joysticks\r
826           should be useable and configurable).\r
827   + GP2X: Added save confirmation option.\r
828   + GP2X: Added 940 CPU crash detection.\r
829   + ALL:  UIQ3 port added.\r
830 \r
831 0.963\r
832   * GP2X: Gamma-reset-on-entering-menu bug fixed.\r
833   * GP2X: Recompiled PicoDrive with gcc profiling option set as described here:\r
834           http://www.gp32x.com/board/index.php?showtopic=28490\r
835 \r
836 0.962\r
837   * GP2X: Fixed an issue with incorrect sounds in some games when dualcore operation\r
838           was enabled (for example punch sound in SOR).\r
839   * GP2X: Limited max volume to 90, because higher values often cause distortions.\r
840   * GP2X: Fixed a bug with lower res scaling.\r
841   * GP2X: Gamma is now reset on exit.\r
842 \r
843 0.96\r
844   * ALL:  Severely optimized MAME's YM2612 core, part of it is now rewritten in asm.\r
845   + GP2X: The YM2612's code now can be run in GP2X's ARM940T CPU, what causes large\r
846           performance increase.\r
847   * ALL:  Accurate renderers are slightly faster now.\r
848   + GP2X: Using quadruple buffering instead of doublebuffer now, also updated\r
849           framelimitter, this should eliminate some scrolling and tearing problems.\r
850   * GP2X: Fixed some flickering issues of 8bit accurate renderer.\r
851   + GP2X: craigix's RAM timings now can be enabled in the menu (see advanced options).\r
852   + GP2X: Added ability to save config for specific games only.\r
853   + GP2X: Gamma control added (using GP2X's hardware capabilities for this).\r
854   * GP2X: Volume keys are now configurable.\r
855   + GP2X: GnoStiC added USB joystick support, I made it possible to use it for\r
856           player 2 control (currently untested).\r
857   * GP2X: squidgehack is now applied through kernel module (cleaner way).\r
858 \r
859 0.95\r
860   * ALL:  Fixed a bug in sprite renderer which was causing slowdowns for some games.\r
861   + GP2X: Added command line support\r
862   + GP2X: Added optional hardware scaling for lower-res games like Shining Force.\r
863   * ALL:  Sound chips are now sampled 2 times per frame. This fixed some games which\r
864           had missing sounds (Vectorman 2 1st level, Thunder Force 3 water level,\r
865               etc.).\r
866   + ALL:  Added another accurate 8-bit renderer which is slightly faster and made it\r
867           default.\r
868 \r
869 0.945\r
870   + GP2X: Added frame limiter for frameskipped modes.\r
871   * GP2X: Increased brightness a bit (unused pixel bits now also contain data).\r
872   * GP2X: Suidgehack was not applied correctly (was applied before allocating some\r
873           high memory and had no effect).\r
874 \r
875 0.94\r
876   + Added GP2X port.\r
877   * Improved interrupt timing, Mazin Saga and Burning Force now works.\r
878   * Rewritten renderer code to better suit GP2X, should be faster on other\r
879     ports too.\r
880   + Added support for banking used by 12-in-1 and 4-in-1 ROMs (thanks Haze).\r
881   + Added some protection device faking, used by some unlicensed games like\r
882     Super Bubble Bobble, King of Fighters, Elf Wor, ... (thanks to Haze again)\r
883   + Added primitive Virtua Racing SVP faking, so menus can be seen now.\r
884 \r
885 0.93\r
886   * Fixed a problem with P900/P910 key configuration in FC mode.\r
887   * Improved shadow/hilight mode emulation. Still not perfect, but should be\r
888     enough for most games.\r
889   + Save state slots added.\r
890   + Region selector added.\r
891 \r
892 0.92\r
893   VDP changes:\r
894   * VDP emulation is now more accurate (fixes flickering in Chase HQ II,\r
895     Super Hang-On and some other problems in other games).\r
896   * HV counter emulation is now much more accurate. Fixes the Asterix games,\r
897     line in Road Rash 3, etc.\r
898   * Minor sprite and layer scroll masking bugs fixed.\r
899   + Added partial interlace mode renderer (Sonic 2 vs mode)\r
900   * Fixed a crash in both renderers when certain size window layers were used.\r
901   + Added emulation of shadow/hilight operator sprites. Other shadow/hilight\r
902     effects are still unemulated.\r
903   + Sprite emulation is more accurate, sprite limit is emulated.\r
904   + Added "accurate sprites" option, which always draws sprites in correct\r
905     order and emulates sprite collision bit, but is significantly slower.\r
906 \r
907   Emulation changes:\r
908   * Improved interrupt handling, added deferred interrupt emulation\r
909     (Lemmings, etc).\r
910   + Added serial EEPROM SRAM support (Wonder Boy in Monster World,\r
911     Megaman - The Wily Wars and many EA sports games like NBA Jam).\r
912   + Implemented ROM banking for Super Street Fighter II - The New Challengers\r
913   * Updated to the latest version of DrZ80 core, integrated memory handlers\r
914     in it for better performance. A noticeable performance increase, but save\r
915         states may not work from the previous version (you can only use them with\r
916         sound disabled in that case).\r
917   + SRAM word read handler was using incorrect byte order, fixed.\r
918 \r
919   Changes in Cyclone 0.0086:\r
920   + Added missing CHK opcode handler (used by SeaQuest DSV).\r
921   + Added missing TAS opcode handler (Gargoyles,Bubba N Stix,...). As in real genesis,\r
922     memory write-back phase is ignored (but can be enabled in config.h if needed).\r
923   + Added missing NBCD and TRAPV opcode handlers.\r
924   + Added missing addressing mode for CMP/EOR.\r
925   + Added some minor optimizations.\r
926   - Removed 216 handlers for 2927 opcodes which were generated for invalid addressing modes.\r
927   + Fixed flags for ASL, NEG, NEGX, DIVU, ADDX, SUBX, ROXR.\r
928   + Bugs fixed in MOVEP, LINK, ADDQ, DIVS handlers.\r
929   * Undocumented flags for CHK, ABCD, SBCD and NBCD are now emulated the same way as in Musashi.\r
930   + Added Uninitialized Interrupt emulation.\r
931   + Altered timing for about half of opcodes to match Musashi's.\r
932 \r
933 0.80\r
934   * Nearly all VDP code was rewritten in ARM asm. Gives ~10-25% performance\r
935     increase (depends on game).\r
936   * Optimized 32-column renderer not to render tiles offscreen, games which\r
937     use 32-column display (like Shining Force) run ~50% faster.\r
938   + Added new "Alternative renderer", which gives another ~30-45% performance\r
939     increase (in addition to mentioned above), but works only with some games,\r
940     because it is missing some features (it uses tile-based renderering\r
941     instead of default line-based and disables H-ints).\r
942   + Added "fit2" display mode for all FC gamers. It always uses 208x146 for\r
943     P800 and 208x208 for all other phones.\r
944   + Added volume control for Motorolas (experimental).\r
945 \r
946   VDP changes:\r
947   + Added support for vertical window (used by Vapor Trail, Mercs, GRIND\r
948     Stormer and others).\r
949   + Added sprite masking (hiding), adds some speed.\r
950   + Added preliminary H counter emulation. Comix Zone and Sonic 3D Blast\r
951     special stage are now playable.\r
952   + Added column based vertical scrolling (Gunstar Heroes battleship level,\r
953     Sonic and Knuckles lava boss, etc).\r
954 \r
955   Emulation changes:\r
956   + Re-added and improved Z80 faking when Z80 is disabled. Many games now can\r
957     be played without enabling Z80 (Lost Vikings, Syndicate, etc), but some\r
958     still need it (International Superstar Soccer Deluxe).\r
959   * Improved ym2612 timers, Outrun music plays at correct speed, voices in\r
960     Earthworm Jim play better, more games play sound.\r
961   * I/O registers now remember their values (needed for Pirates! Gold)\r
962   + Added support for 6 button pad.\r
963 \r
964   Changes in Cyclone 0.0083wip:\r
965   + Added missing CHK opcode (used by SeaQuest DSV).\r
966   + Added missing TAS opcode (Gargoyles). As in real genesis, write-back phase\r
967     is ignored (but is enabled for other systems).\r
968 \r
969   Backported stuff from Snes9x:\r
970   * Fixed Pxxx jog up/down which were not working in game.\r
971   + Added an option to gzip save states to save space.\r
972   + The emulator now pauses whenever it is loosing focus, so it will now pause\r
973     when alarm/ponecall/battery low/... windows come up.\r
974   - Removed 'pause on phonecall' feature, as it is no longer needed.\r
975   + Video fix for asian A1000s.\r
976 \r
977 0.70\r
978   * Started using tools from "Symbian GCC Improvement Project", which give\r
979     considerable speed increase (~4fps in "center 90" mode).\r
980   * Rewrote some drawing routines in ARM assembly (gives ~6 more fps in\r
981     "center 90" mode).\r
982   * Minor improvement to 0 and 180 "fit" modes. Now they look slightly better\r
983     and are faster.\r
984   * Minor stability improvements (emulator is less likely to crash).\r
985   + Added some background for OSD text for better readability.\r
986   + Added Pal/NTSC detection. This is needed for proper sound speed.\r
987   + Implemented Reesy's DrZ80 Z80 emu. Made some changes to it with hope to make\r
988     it faster.\r
989   + Implemented ym2612 emu from the MAME project. Runs well but sometimes sounds\r
990     a bit weird. Could be a little faster, so made some changes too.\r
991   + Implemented SN76489 emu from the MAME project.\r
992   + Added two separate sound output methods (mediaserver and cmaudiofb) with\r
993     autodetection (needs testing).\r
994   * Fixed VDP DMA fill emulation (as described in Charles MacDonald's docs),\r
995     fixes Contra and some other games.\r
996 \r
997 0.301\r
998   Launcher:\r
999   * Launcher now starts emulation process from current directory,\r
1000     not from hardcoded paths.\r
1001   * Improved 'pause on call' feature, should hopefully work with Motorola phones.\r
1002 \r
1003 0.30\r
1004   Initial release.\r
1005 \r
1006 \r
1007 Disclaimer\r
1008 ----------\r
1009 \r
1010 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" \r
1011 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE \r
1012 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE \r
1013 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE \r
1014 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR \r
1015 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF \r
1016 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS \r
1017 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN \r
1018 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) \r
1019 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE \r
1020 POSSIBILITY OF SUCH DAMAGE. \r
1021 \r
1022 SEGA/Genesis/MegaDrive/SEGA-CD/Mega-CD/32X are trademarks of\r
1023 Sega Enterprises Ltd.\r
1024 \r