Page 3 of 3 FirstFirst 123
Results 21 to 27 of 27

Thread: nintendo ds / gba

  1. #21

    nintendo ds / gba

    Quote Originally Posted by noeska
    i try to spend an hour evening per day on it. Also i keep an eye on: http://linux.gbadev.org/gcc-gba/ as mentioned before. It seems i have to convert the generated .elf file to something binary. Just have to find the tool in my linux as the tool is supposed to be part of the binutils....

    The hardest part wil be replacing the crt.o of linux arm with the gba one.
    gcc-gba needs to link together (with ld) object file (for example yourfile.o) and crt0.o. Maybe your gba emulator can't find start function point because crt0.o is not linked. I don't know if your crt0.o file is good for pascal source... :?:
    I must decide to install linux to do some test with fpc and gba :mrgreen:
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

  2. #22

    nintendo ds / gba

    Quote Originally Posted by noeska
    if the free pascal compiler needs to be modified to implement crt0.o for the gba i am not going on with this project as i do not have enough knowledge for changing the free pascal compiler.
    crt0.o comes from compiling crt0.s. This file make some initialization on gba hardware and sets the start function for your gba rom.
    And, AFAIK, gba can't handle writeln function.
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

  3. #23

    nintendo ds / gba

    i have already compiled crt0.s to an crt0.o file. It just does not get included properly so it seems. And i do not know how to change free pascal so it does, nor do i know how to use ld manualy. Replacing the crt.o from free pascal with it brings no avail also....

    Who knows how to change free-pascal?

    It is important as i discovered something inside that looks like cartridge header inside....

    brings to my mind how does one include an .o (or .obj) in an pascal file again.....

    PS i do know writeln does not work, just a try to see if anything gets executed at all...
    http://3das.noeska.com - create adventure games without programming

  4. #24

    nintendo ds / gba

    with the knowlede that you have, maybe it could be passed on to someone on the FreePascal team, who could make the changes.
    <br /><br />There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.<br />-= Paulo Coelho =-

  5. #25
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    nintendo ds / gba

    noeska: If you run into that wall, please tell us all you know about the problem and what the results(debugging information included). I frequent the #fpc IRC channel and keep my ear to the ground and also am able to pop in a question here or there.

    Perhaps I can co-ordinate some kind of work-around for the problem. I'm sure that someone will be more than intrigued or excited about the prospect of someone working on GBA development using FPC.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  6. #26

    nintendo ds / gba

    The main problem for the moment is that ctr0.s is not linked in properly. Without that things will never work as that prepares the gba for code execution. But even more important is the acompanying lnkscript that tells how it should be linked against the code. I did find a newer? version of crt0.s here: http://www.devrs.com/gba/ccode.php#cmisc.

    I have no idea what to change in fpc to add those things.
    http://3das.noeska.com - create adventure games without programming

  7. #27
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    nintendo ds / gba

    If FPK were able to provide you with the information you need and work with you on a port of FPC with GBA capabilities, would you be able to maintain it? I think that will be his driving force to help move that forward.

    I for one would use it, as would at least 3 or 4 others from this thread alone. Plus who knows who else would be MORE than interested aswell.

    I say, make the offer and I'll help you back it up with the user base thats interested simply by announcing it's versions and promoting it's use through tools, projects, etc.
    Jason McMillen
    Pascal Game Development
    Co-Founder





Page 3 of 3 FirstFirst 123

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •