PDA

View Full Version : [FPC4GBA] New examples



Legolas
06-02-2006, 01:27 PM
As someone asked, I have made some little examples showing fpc4gba in action ^_^

Here some screenshos:

http://img97.imageshack.us/img97/3151/fpclogo6hg.pnghttp://img141.imageshack.us/img141/8196/walker5oa.pnghttp://img141.imageshack.us/img141/3027/mode06ur.png

Download here (http://itaprogaming.free.fr/download/fpc4gba_examples_new.zip)

Demo 1 and 2 are double buffered mode4 (256 colors palettized); 3 is a mode0 demo converted in pascal that I have taken from a japanese site, IIRC...

Executables are not smartlinked and are fixed with gbafix, in order to make it runnable on real hardware (tested on a DS in gba mode and all works fine ^_^)

savage
06-02-2006, 02:56 PM
This is indeed KELVIN!!!

Great work to the whole FPC4GBA team.

Now about that PS3 port of FreePascal ;).

savage
06-02-2006, 03:11 PM
Where can I get instructions on how to upload the .gba files to a GBA?

Legolas
06-02-2006, 03:30 PM
Where can I get instructions on how to upload the .gba files to a GBA?
Err... Really I don't know... Maybe gbadev forum (http://forum.gbadev.org/viewforum.php?f=17) could be a good start point to search. AFAIK you should have a flashcart or a pc<->gba cable, but in this second case, there is a limitation to the size of executables you can send to gba. More, IIRC, cable send requires a rom specifically built for multiboot, but at this time my crt0 does not allow multibooting :(

savage
06-02-2006, 03:37 PM
How did you test it on a DS?

Legolas
06-02-2006, 03:42 PM
How did you test it on a DS?

With an M3 SD, a gba cart that uses Secure Digital memories for storage.

savage
07-02-2006, 12:02 PM
Btw, Have you sent the FPC guys these shots. I think it's worthy of putting on their home page!

Btw, I just posted a news item about it here.

Legolas
07-02-2006, 01:53 PM
Btw, Have you sent the FPC guys these shots. I think it's worthy of putting on their home page!

Btw, I just posted a news item about it here.

I'm even too lazy to contact fpk to know how I can submit new compiler files (patches or full file) :lol:

dmantione
07-02-2006, 05:46 PM
A news posting on the FPC site will appear tonight.

Files are okay if you want to add files or overwrite GBA specific files. If you want to change files, please submit patches.

The best way to submit patches is:
* Make a checkout of the SVN repository.
* Modify it like how you want the code to be.
* Send the output of the "svn diff" command to one of the developers.

Legolas
07-02-2006, 06:50 PM
A news posting on the FPC site will appear tonight.

Files are okay if you want to add files or overwrite GBA specific files. If you want to change files, please submit patches.

The best way to submit patches is:
* Make a checkout of the SVN repository.
* Modify it like how you want the code to be.
* Send the output of the "svn diff" command to one of the developers.

Ok, thanks. In fact I'm rewriting all gba rtl using 2.1 sources. I need to totally replace old gba files, plus add an 'ifdef' in some files outside gba directory.

FPK
08-02-2006, 09:27 AM
Regarding speed, what's currently the status? I guess we still need thumb code generation?

Legolas
08-02-2006, 12:34 PM
Regarding speed, what's currently the status? I guess we still need thumb code generation?

AFAICS, speed is pretty good. Compared to gcc similar code, the speed is the same. Main bottleneck was mod/div but in the new rtl I have replaced it with internal GBA BIOS functions. These internal funcitons aren't very optimized (a div operation requires about 60 cycles), so it could be nice to replace it with some more optimized asm code (I have found some asm div routines optimized for gba, but I'm not able to make it working). However, for our initial purposes, the bios one should be good enough.