running code on dsi
Posted: Sun Jul 04, 2010 12:38 pm
I started getting intersted in ds programming recently, and I tried running some codes that came with certain tutorials on my DSi.
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:
Am I doing something wrong?
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;
}