u5 release
[gpsp.git] / gp2x / readme_gp2x.txt
1 -- gameplaySP2X  Gameboy Advance emulator for GP2X --\r
2 \r
3 gpSP2X is a version of my (Exophase)'s emulator originally for Sony PSP.\r
4 A large amount of effort has been done to make it more optimized for the\r
5 ARM CPU present in the GP2X, however it is still very much a work in\r
6 progress.\r
7 \r
8 See readme.txt for the PSP version readme, which contains a lot of\r
9 information relevant to the GP2X version (note that some of it does\r
10 not apply however).\r
11 \r
12 \r
13 Changelog:\r
14 \r
15 0.9-2xb u5\r
16 - Added portrait drawing modes. They eliminate tearing but are slightly\r
17   slower.\r
18 - Added page scrolling in ROM browser with L/R.\r
19 - 32MB ROM support fixed.\r
20 \r
21 0.9-2xb u4 (unofficial notaz release, done on Exophase's request)\r
22 - Wiz port. No emulation related changes.\r
23 - Wiz: dropped SDL for video and hitting hardware directly (GPH SDL can't\r
24   be trusted, it doesn't do double buffering as of firmware 1.0).\r
25 - Added new optimized software scaler with interpolation.\r
26 - gpSP is now saving ROM dir on exit. Delete romdir.txt if you don't\r
27   want that.\r
28 - gpSP now comes with wARM, new kernel module+lib for ARM cache control\r
29   (replaces mmuhack).\r
30 - gpSP no longer invalidates whole icache after recompilation, might\r
31   cause minor speedup.\r
32 \r
33 0.9-2xb u3 (unofficial notaz release, released with permission):\r
34 - Removed built-in CPU/LCD/RAM-Tweaker.\r
35 - Improved usability of volume control.\r
36 - Removed PSP-specific GUI options, adjusted help text.\r
37 - Overclocking from menu now works, keep it at 200 if you don't want that\r
38   (if you want to overclock using launcher, for example).\r
39 - Fixed centering-on-first-run problem.\r
40 - 3:2 scaled option now does what it says.\r
41 \r
42 0.9-2xb u2 (unofficial notaz release):\r
43 - Replaced non-working mmuhack.o with proper one, added cache flush calls\r
44   to avoid artifacts.\r
45 \r
46 0.9-2xb u1 (unofficial notaz release):\r
47 - Fixed a problen in thread synchronization which caused deadlock after\r
48   some time.\r
49 \r
50 0.9-2xb: \r
51 -- IMPORTANT-- If you're overwriting an old version, be sure to delete the\r
52    gpsp.cfg file first, or be prepared to have a bunch of weird button\r
53    settings that would require fixing.\r
54 \r
55 - Fixed some bugs stunting compatability.\r
56 - Optimized alpha blends in renderer.\r
57 - Some more optimizations to dynarec output.\r
58 - Savestates should work better now.\r
59 - Cheat/misc menu won't crash the emulator.\r
60 - Main button config window works (not all buttons are in yet)\r
61 \r
62 0.9-2Xa: (Exophase release)\r
63 - Redid autoframeskip. Should work more reliably.\r
64 - Rewrote dynamic recompiler from x86 source (arm_emit.h, arm_stub.S).\r
65   Has some more sophisticated behavior than the last version, more is\r
66   still to come... Should notice a slight speed improvement over the\r
67   last version.\r
68 - Tweaked GUI to be a little more useable. Buttons are now mirroring the\r
69   PSP version's.\r
70 - Code unification + cleanup amongst versions.\r
71 \r
72 \r
73 v9008: (zodttd release)\r
74 - Updated the way autoframeskip works. Should be better now. Still has a max\r
75   frameskip value.\r
76 - Added a slight performance increase to the dynarec.\r
77 - Added sync() to make sure files such as savestates and in-game saves are\r
78   saved properly to the GP2X.\r
79 \r
80 v9006: (zodttd release)\r
81 - Initial public release\r
82 \r
83 \r
84 Installation:\r
85 \r
86 1. Place the "gpsp.gpe" and "game_config.txt" file in a directory on your SD\r
87    card used with the GP2X.\r
88 \r
89 2. Place your GBA BIOS in the directory from step 1. This file must be named\r
90    "gba_bios.bin" in all lowercase as shown, so rename it if needed.\r
91 \r
92    -- NOTE --\r
93 \r
94    There are two commonly available BIOSes - one is the correct one used in\r
95    production GBA's worldwide and the other is a prototype BIOS. The latter\r
96    will not cause some games to not work correctly or crash. If you attempt\r
97    to use this BIOS you will be presented with a warning before being\r
98    allowed to continue. This screen will give you a checksum of the real\r
99    BIOS image (see readme.txt for further information).\r
100 \r
101 3. Place your GBA games in the directory from step 1. These files should have\r
102    a ".gba" or ".bin" file extension. Zip compressed games should be supported\r
103    and are recognized with the ".zip" file extension. Note that 32MB ROMs will\r
104    probably not run if zipped. 16MB and smaller should be OK.\r
105 \r
106 4. Done. Run gpsp.gpe.\r
107 \r
108 \r
109 Controls:\r
110 \r
111 How to use gpSP on the GP2X:\r
112 Buttons are mapped as follows (GBA/ingame buttons can be changed in the menu):\r
113 \r
114 GP2X--------------------GBA\r
115 X           ->          A\r
116 B           ->          B\r
117 L TRIG      ->          L TRIG\r
118 R TRIG      ->          R TRIG\r
119 START       ->          START\r
120 SELECT      ->          SELECT\r
121 \r
122 GP2X--------------------------------gpSP\r
123 \r
124 -- IN-GAME --\r
125 \r
126 VOL MIDDLE (UP + DOWN)    ->        menu\r
127 PUSH STICK                ->        fps display toggle (second number is\r
128                                      frames actually drawn)\r
129 \r
130 -- IN-MENU --\r
131 B                         ->        select option\r
132 X                         ->        cancel/exit menu\r
133 A                         ->        escape (up one director level in the\r
134                                      file selector)\r
135 \r
136 When gpSP is started, you are presented with the option to overclock your\r
137 GP2X. Use the L/R TRIG to change the CPU clockspeed and press START to\r
138 continue. You may also change RAM timings here - experiment with what\r
139 works well. Note that going too high on overclocking or low on RAM\r
140 timings can cause the game to crash or the GP2X to outright freeze up.\r
141 \r
142 If you do not want to overclock, press START without using L/R.\r
143 You will now be presented with a menu to choose a game. Press the IN-MENU\r
144 "SELECT" button shown above to pick a game to load.\r
145 \r
146 If you would like to test gpSP for the GP2X with a homebrew (free public\r
147 domain) game, a game by Russ Prince works very well with gpSP. It is called\r
148 Bust-A-Move and is a remake of the classic game it's named after.\r
149 \r
150 \r
151 How to build from source:\r
152 \r
153 The makefile included in the source is geared towards the Open2x toolchain.\r
154 If you use Open2x and installed it in the way recommended then it should\r
155 work okay, assuming you also have up to date HW-SDL (and have\r
156 arm-linux-sdl-config installed in the right place). The makefile is in the\r
157 gp2x directory, so go there first then just type make to build gpsp.gpe.\r
158 Might need a little tweaking if your setup is different. If you need help\r
159 you can ask me, but I'll probably nag you about why you want to build it in\r
160 the first place.\r
161 \r
162 \r
163 GP2X version FAQ:\r
164 \r
165 Q) Help! This game doesn't work. Am I using a bad version of the ROM?\r
166 \r
167 A) First, make sure you're using the correct BIOS version. If you aren't\r
168    gpSP should tell you. Other than that, there are some games that are\r
169    known to not work now (and will probably work later), and perhaps\r
170    many more games that I don't know about that don't work. I haven't\r
171    launched a full scale compatability test at this version, so it might\r
172    take a while before the compatability levels are high.\r
173 \r
174 \r
175 Q) Why is this version slower than the PSP version?\r
176 \r
177 A) gpSP is still a work in progress. It might be possible to obtain more\r
178    speed from both this version and the PSP one too (and others in the\r
179    future). With that in mind, know that even a very agressively overclocked\r
180    GP2X is still less powerful than a PSP, generally speaking. Still, I\r
181    have a lot of ideas. It's unlikely that the GP2X version will ever be as\r
182    fast/faster than the PSP version for anyone but anything's possible.\r
183 \r
184 \r
185 Q) How high does my GP2X have to overclock to enjoy gpSP?\r
186 \r
187 A) That depends on you. Higher overclocking will mean less frames skipped\r
188    on autoframeskip, or less frameskip needed if on manual. Or it can\r
189    make the difference between whether or not virtual 60fps can be reached.\r
190    For some games no GP2X in the world will be able to run them fullspeed,\r
191    with any amount of frameskip. A few might run well with no overclocking\r
192    and a generous level of frameskip (probably manual). If you don't care\r
193    about battery life (or you're plugged into an outlet) you should push\r
194    it as high as you can while still maintaining stability, because\r
195    chances are high that whatever you play will benefit from it. Right now\r
196    you'll probably want 260MHz if you can achieve it, but with a lot of\r
197    luck this number will lower slightly in the future (and is just a vague\r
198    ballpark figure anyway). I don't want to scare anyone off from using the\r
199    emulator, you should give it a try and see how it plays for you\r
200    regardless of how high you can overclock. Just note that this is far\r
201    from a locked smooth experience for everyone on every game.\r
202 \r
203 \r
204 Q) GBA has an ARM processor, GP2X has an ARM processor. GP2X is more\r
205    powerful than GBA. This emulator should run great without overclocking,\r
206    so therefore you're doing it wrong.\r
207 \r
208 A) That's not a question, but I'll field it anyway. Two things: first,\r
209    "virtualization", or running the GBA code "natively" on the GP2X is\r
210    probably not possible, at least not with the way I want to do things.\r
211    For reasons why go read my blog (see below). So yes, you actually\r
212    do need more than 16.7MHz of ARM9 power to emulate the GBA's CPU.\r
213    Second: there is a whole lot of work behind emulating the pretty 2D\r
214    graphics on the GBA, something it can do in hardware a lot better than\r
215    this platform can.\r
216    End result: GBA emulation on GP2X isn't as easy as you think it is.\r
217 \r
218 \r
219 Q) What are you working on now? When will you release the next version?\r
220 \r
221 A) See the gpSP development blog:\r
222 \r
223    http://gpsp-dev.blogspot.com/\r
224 \r
225    Note that I don't give release dates, ever, unless I'm right on the verge\r
226    of releasing. Be grateful that I've decided to be much more open about\r
227    the development of the emulator now.\r
228 \r
229 \r
230 Q) Thanks to your blog I heard that you made some improvement. Can I have\r
231    a copy of the new code?\r
232 \r
233 A) No. Builds in transition often have a lot of problems, and I like for\r
234    releases to be relatively substantial. I can probably be bribed out of\r
235    them with donations though. :P\r
236 \r
237 \r
238 Q) Why do the menu suck so much? Why do half the options not work or not\r
239    make any sense?\r
240 \r
241 A) Sorry, the menu still hasn't been modified very much to fit the GP2X\r
242    version instead of the PSP version.. hopefully this will improve in the\r
243    future.\r
244 \r
245 \r
246 Q) Who's in charge of the GP2X version anyway?\r
247 \r
248 A) Originally, zodttd was. I, Exophase, have basically usurped control of it\r
249    now to encourage zodttd to work more on his PS1 emulator (that and I'm\r
250    possessive of gpSP and get nervous when people work on it too heavily).\r
251    zodttd will most likely still be around to work on things though.\r
252 \r
253 \r
254 Q) I'm a super nice person and would like to donate some of my hard earned\r
255    money to this one-off GBA emulator. Where do I send my money to?\r
256 \r
257 A) Exophase: exophase@gmail.com on PayPal\r
258    zodttd: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=heirloomer\r
259     %40pobox%2ecom&item_number=1&no_shipping=1&no_note=1&tax=0&cy_code=USD&bn=\r
260     PP%2dDonationsBF&charset=UTF%2d8\r
261     ^ Click there for donating on PayPal (remove whitespace/linebreaks).\r
262 \r
263    GP2X people have already donated a lot more to me than PSP people have,\r
264    even though there's an order of magnitude or two less users. And they've\r
265    donated far more to zodttd than they have to me. So I'm not going to ask\r
266    people to donate..\r
267 \r
268    However I won't lie: donating ups the chances of me actually working on the\r
269    next version (for which I have a lot of ideas, but not necessarily time to\r
270    dedicate to.. that time might need more incentive to be allotted from other\r
271    things). This could change depending on my employment situation, but right\r
272    now I feel guilty doing anything that doesn't help guarantee that I'll be\r
273    able to buy food a year from now.\r
274 \r
275 \r
276 Q) Tell me all of your personal information.\r
277 \r
278 A) Again not a question, but why not. I'm Exophase, real name: Gilead Kutnick,\r
279    male, 23 years old, current residence Bloomington, IN; straight/single/not\r
280    actively looking, almost have an MS in Computer Science (do have a BS\r
281    underneath it), likes PSP more than GP2X, will not write a Nintendo DS\r
282    emulator for either, am currently looking for a job for after I graduate.\r
283 \r
284 \r
285 Q) You said you're looking for a job.\r
286 \r
287 A) Yes. If you have one or know someone who needs a low level oriented\r
288    programmer then I'm up for grabs. And this is my resume:\r
289    http://exophase.devzero.co.uk/resume.pdf\r
290 \r
291 \r
292 Credits:\r
293 \r
294 Original codebase: Exophase (exophase@gmail.com)\r
295 Foundation gp2x code: zodttd\r
296 GP2X dynarec/stubs + current code maintainance: Exophase\r
297 \r