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