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.

Beginners > libgba's printf loses characters

#176138 - garob - Sat Apr 16, 2011 10:02 am

I installed the toolchain, copied an example and fiddled around a bit.
I found that when the text looped around it didn't print the first column of the text.

Here's the code:
Code:
#include <gba.h>
#include <stdio.h>

int main()
{
    int i;

    consoleDemoInit();

    for(i = 0; i < 10; i++)
    printf("Hello world!");

    while (1) {
      VBlankIntrWait();
   }
    return 0;
}

and here's a screenshot:[Images not permitted - Click here to view it]

Has anyone had experiance with this and can suggest a possible cause/solution/workaround?

Thanks

#176771 - blessingta@hotmail.co.uk - Sun Oct 09, 2011 1:03 am

are any of you guys using devkitpro?