Welcome, Guest. Please login or register.
Login with username, password and session length

 
Advanced search
49750 Posts in 5835 Topics- by 2075 Members - Latest Member: Steamforge
 
Pages: [1]
Print
Author Topic: [FPC4GBA] New examples    (Read 8132 times)
Legolas
Word Lord
***
Posts: 587


francky74@gmail.com
View Profile WWW
« on: February 06, 2006, 09:27:30 AM »

As someone asked, I have made some little examples showing fpc4gba in action ^_^

Here some screenshos:



Download here

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 ^_^)
Logged

Get your fpc4gba copy now!
Get your fpc4nds copy now!
savage
Administrator
Zettabyte Zealot
*****
Posts: 2444


38535054 savagesoftware@hotmail.com
View Profile WWW
« Reply #1 on: February 06, 2006, 10:56:02 AM »

This is indeed KELVIN!!!

Great work to the whole FPC4GBA team.

Now about that PS3 port of FreePascal Wink.
Logged



There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.
-= Paulo Coelho =-
savage
Administrator
Zettabyte Zealot
*****
Posts: 2444


38535054 savagesoftware@hotmail.com
View Profile WWW
« Reply #2 on: February 06, 2006, 11:11:35 AM »

Where can I get instructions on how to upload the .gba files to a GBA?
Logged



There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.
-= Paulo Coelho =-
Legolas
Word Lord
***
Posts: 587


francky74@gmail.com
View Profile WWW
« Reply #3 on: February 06, 2006, 11:30:03 AM »

Quote from: "savage"
Where can I get instructions on how to upload the .gba files to a GBA?

Err... Really I don't know... Maybe gbadev forum 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 Sad
Logged

Get your fpc4gba copy now!
Get your fpc4nds copy now!
savage
Administrator
Zettabyte Zealot
*****
Posts: 2444


38535054 savagesoftware@hotmail.com
View Profile WWW
« Reply #4 on: February 06, 2006, 11:37:44 AM »

How did you test it on a DS?
Logged



There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.
-= Paulo Coelho =-
Legolas
Word Lord
***
Posts: 587


francky74@gmail.com
View Profile WWW
« Reply #5 on: February 06, 2006, 11:42:30 AM »

Quote from: "savage"
How did you test it on a DS?


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

Get your fpc4gba copy now!
Get your fpc4nds copy now!
savage
Administrator
Zettabyte Zealot
*****
Posts: 2444


38535054 savagesoftware@hotmail.com
View Profile WWW
« Reply #6 on: February 07, 2006, 08:02:57 AM »

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.
Logged



There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.
-= Paulo Coelho =-
Legolas
Word Lord
***
Posts: 587


francky74@gmail.com
View Profile WWW
« Reply #7 on: February 07, 2006, 09:53:12 AM »

Quote from: "savage"
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:
Logged

Get your fpc4gba copy now!
Get your fpc4nds copy now!
dmantione
Byte Master
**
Posts: 457


View Profile
« Reply #8 on: February 07, 2006, 01:46:04 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.
Logged
Legolas
Word Lord
***
Posts: 587


francky74@gmail.com
View Profile WWW
« Reply #9 on: February 07, 2006, 02:50:19 PM »

Quote from: "dmantione"
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.
Logged

Get your fpc4gba copy now!
Get your fpc4nds copy now!
FPK
Nibble Novice
*
Posts: 18


View Profile
« Reply #10 on: February 08, 2006, 05:27:41 AM »

Regarding speed, what's currently the status? I guess we still need thumb code generation?
Logged

Legolas
Word Lord
***
Posts: 587


francky74@gmail.com
View Profile WWW
« Reply #11 on: February 08, 2006, 08:34:02 AM »

Quote from: "FPK"
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.
Logged

Get your fpc4gba copy now!
Get your fpc4nds copy now!
Pages: [1]
Print
Jump to: