gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Problems with console on DSEmu

#50213 - Dannon - Sat Aug 06, 2005 4:27 pm

Is anyone else having problems with the console on DSEmu?

It only seems to be since I got devkitARM R15 and the new libnds, but when I try and compile anything that I use a consolePrintf() function with and then try to run it in DSEmu all of the text is just random symbols.



Edit:On a complete tangent, when trying to use the combined template that comes with the libnds examples, I am trying to include a .h file that contains a class for simplicity it looks like this

Code:

class CTest
{
public:
   void tempFunction();

   int temp;
   
};


When I try to compile it, it says:

error: syntax error before 'CTest'
error: syntax error before '{' token
error: syntax error before '}' token

I am presuming this means it has a problem with the class but I don't know why, suggestions?

#50262 - doublec - Sun Aug 07, 2005 4:16 am

I've not yet upgraded to r15, I'll be doing it this weekend. I'll then get DSemu working with the console code and release a new version. Thanks for letting me know about the problem!

#50263 - tepples - Sun Aug 07, 2005 4:32 am

Dannon wrote:
Is anyone else having problems with the console on DSEmu?

Dannon-banned?

...not.

Quote:
Code:

class CTest
{
public:
   void tempFunction();

   int temp;
   
};


error: syntax error before 'CTest'

What is the name of the file? If you try to compile a file whose name ends in ".c", GCC will not recognize the "class" keyword. Use ".cpp".
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#50269 - Dannon - Sun Aug 07, 2005 9:02 am

Should I be banned? Are we not meant to be talking about the DS emulators? If so, sorry, it's just I don't have my PassMe and GBAMP yet.

Thought I'd solved it, but I'm still having problems, can somebody have a look at it please, you can get the file http://dannonn1.tripod.com/combined.rar

Please please please help me figure this out

#50278 - tepples - Sun Aug 07, 2005 1:57 pm

Dannon wrote:
Should I be banned?

That was a joke son.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#50281 - Dannon - Sun Aug 07, 2005 2:16 pm

I've not seen that website before, this guy takes his Zelda seriously!

#51570 - doublec - Sun Aug 21, 2005 11:43 pm

DSEmu 0.4.6 is out and fixes the problem with devkitpro r15 console routines:

http://www.double.co.nz/nintendo_ds/dsemu.html

#54032 - doublec - Thu Sep 15, 2005 12:27 am

I've released version 0.4.7 of DSEmu. I'm still having difficulty tracking down the cause of the console corruption. I can get it working for the programs that have it corrupted, but not for the other and vice versa. I've not come up with a way to get it working all the time. I'm beginning to suspect a memory corruption somewhere.

As a workaround I've added a checkbox in the configuration dialog box to select the console display handling. If the console has corrupted characters you can click this button to use the alternative algorithm and they will display fine. Hopefully I'll have it completely fixed in 0.4.8.

The following is included in 0.4.7:

* Support for the X and Y keys have been added. This can be configured using the Options/Configuration menu option. The code for this was contributed by Normmatt.
* Many fixes to key handling. Anything but A and B keys were very buggy in previous builds. My 'keys' demo from my tutorials now works correctly and Space Invaders is now playable.

* Support for GBA games was re-added. It was removed when I first took up support of DSEmu until I understood the code better. It is now back in and will be maintained.
* The FIFO registers have been implemented. This is an important feature for DSLinux and a step towards support for the commercial downloadable demos.
* Various bug fixes in graphics code.
* The compuational accelerator registers have been implemented. Again, a steps towards support for the commerical downloadable demos. Contributed by Julien Hamaide.
* Workaround for 'console scramble'. There has been an issue since DevkitPro R14 which causes text output using the console output routines to be scrambled. I implemented a workaround in 0.4.6 but it didn't work for homebrew programs built with previous versions. I've been unable to fix the problem so far, so I added a 'Unscramble console text' option in the Options/Configuration menu option. If you run a game and the text appears scrambled, check or uncheck this, and it should correct the problem when you press 'Ok'. I hope to fix this in 0.4.8.

Obtainable from http://www.double.co.nz/nintendo_ds/dsemu.html