When I compiled and tested the hello_world code that comes with the devkitpro, it ran perfeclty on my DSi. However, when I tried following drunken-coders' day1 tutorial running the code below, it ran well on an emulator but didn't run well on the DSi:
Code: Select all
#include <nds.h>
#include <stdio.h>
int main(void)
{
int i;
consoleDemoInit();
videoSetMode(MODE_FB0);
vramSetBankA(VRAM_A_LCD);
printf("Hello World!\n");
printf("www.Drunkencoders.com");
for(i = 0; i < 256 * 192; i++)
VRAM_A[i] = RGB15(31,0,0);
swiWaitForVBlank();
return 0;
}