Page 4 of 7 FirstFirst ... 23456 ... LastLast
Results 31 to 40 of 69

Thread: FPC4NDS: first raw demo

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

    FPC4NDS: first raw demo

    That sounds like a heck of a lot of headers? What are they all for? :lol: Can't just be for the stylus.

    I guess it's almost every little thing to do with the NDS hardware huh?
    Jason McMillen
    Pascal Game Development
    Co-Founder





  2. #32

    FPC4NDS: first raw demo

    Quote Originally Posted by WILL
    That sounds like a heck of a lot of headers? What are they all for? :lol: Can't just be for the stylus.

    I guess it's almost every little thing to do with the NDS hardware huh?
    Two cpu, two cart ports, two screens, a touchscreen, audio, keys, filesystem and wifi: indeed it is a lot of stuff to handle :lol:

    Edit: I have requested the account on sourceforge and now I'm waiting for the approval
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

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

    FPC4NDS: first raw demo

    That sounds like a heck of a lot of headers? What are they all for? :lol: Can't just be for the stylus.

    I guess it's almost every little thing to do with the NDS hardware huh?
    Jason McMillen
    Pascal Game Development
    Co-Founder





  4. #34

    FPC4NDS: first raw demo

    Quote Originally Posted by Legolas
    I have started to convert devkitPro's libnds headers, but h2pas can't help (I get a lot of internal errors).
    h2pas works only semi automatic: start conversion, find first crash/error, fix/remove statement and continue.
    BTW: You should also get internal errors only after a syntax error.
    <a>http://www.freepascal.org</a>

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

    FPC4NDS: first raw demo

    Hey Florian, nice to see you on PGD!

    So what exactly where the latest commits for the GBA platform? And whats the plan for fitting NDS into FPC in the near future?

    Sorry, I'm always full of questions, aren't I? :lol:
    Jason McMillen
    Pascal Game Development
    Co-Founder





  6. #36

    FPC4NDS: first raw demo

    Quote Originally Posted by FPK
    Quote Originally Posted by Legolas
    I have started to convert devkitPro's libnds headers, but h2pas can't help (I get a lot of internal errors).
    h2pas works only semi automatic: start conversion, find first crash/error, fix/remove statement and continue.
    BTW: You should also get internal errors only after a syntax error.
    I have resolved by doing all by hand. 85% it is only search and replace matter, so I'm proceeding very quickly. There is some construct that I can't translate 1:1, like bit fields inside a struct, but I'll provide some bit masking functions, if needed
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

  7. #37

    FPC4NDS: first raw demo

    Update: I have committed the changes on freepascal svn. Let me make a zip package and I'll release binaries soon
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

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

    FPC4NDS: first raw demo

    And just as soon as I added the platform to the 3rd Party unofficial spot... I move it to the Official ones.... (I'm starting to see what Florian meant. )
    Jason McMillen
    Pascal Game Development
    Co-Founder





  9. #39

    FPC4NDS: first raw demo

    Quote Originally Posted by Legolas
    translate 1:1, like bit fields inside a struct, but I'll provide some bit masking functions, if needed
    You can. FPC 2.1.1 supports bit packed records.
    <a>http://www.freepascal.org</a>

  10. #40

    FPC4NDS: first raw demo

    Quote Originally Posted by FPK
    Quote Originally Posted by Legolas
    translate 1:1, like bit fields inside a struct, but I'll provide some bit masking functions, if needed
    You can. FPC 2.1.1 supports bit packed records.
    Nice! So if I have something like
    Code:
    typedef struct tPERSONAL_DATA &#123;
      u8 RESERVED0&#91;2&#93;;			//!<	??? &#40;0x05 0x00&#41;.
    
      u8 theme;					//!<	The user's theme color &#40;0-15&#41;.
      u8 birthMonth;			//!<	The user's birth month &#40;1-12&#41;.
      u8 birthDay;				//!<	The user's birth day &#40;1-31&#41;.
    
      u8 RESERVED1&#91;1&#93;;			//!<	???
    
    ---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---
    
      packed_struct &#123;
        unsigned language    &#58; 3;	//!<	User's language.
        unsigned gbaScreen   &#58; 1;	//!<	GBA screen selection &#40;lower screen if set, otherwise upper screen&#41;.
        unsigned RESERVED3   &#58; 2;	//!<	???
        unsigned autoMode    &#58; 1;	//!<	The DS should boot from the DS cart or GBA cart automatically if one is inserted.
        unsigned RESERVED4   &#58; 1;	//!<	???
      &#125;;
    &#125; PACKED PERSONAL_DATA ;
    how should I convert that packed_struct part? :think:
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

Page 4 of 7 FirstFirst ... 23456 ... LastLast

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
  •