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