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:Originally Posted by WILL
Edit: I have requested the account on sourceforge and now I'm waiting for the approval
h2pas works only semi automatic: start conversion, find first crash/error, fix/remove statement and continue.Originally Posted by Legolas
BTW: You should also get internal errors only after a syntax error.
<a>http://www.freepascal.org</a>
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 neededOriginally Posted by FPK
You can. FPC 2.1.1 supports bit packed records.Originally Posted by Legolas
<a>http://www.freepascal.org</a>
Nice! So if I have something likeOriginally Posted by FPK
how should I convert that packed_struct part? :think:Code:typedef struct tPERSONAL_DATA { u8 RESERVED0[2]; //!< ??? (0x05 0x00). u8 theme; //!< The user's theme color (0-15). u8 birthMonth; //!< The user's birth month (1-12). u8 birthDay; //!< The user's birth day (1-31). u8 RESERVED1[1]; //!< ??? ---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<--- packed_struct { unsigned language : 3; //!< User's language. unsigned gbaScreen : 1; //!< GBA screen selection (lower screen if set, otherwise upper screen). unsigned RESERVED3 : 2; //!< ??? unsigned autoMode : 1; //!< The DS should boot from the DS cart or GBA cart automatically if one is inserted. unsigned RESERVED4 : 1; //!< ??? }; } PACKED PERSONAL_DATA ;
Bookmarks