Well, I'm just starting with NDS homebrew programming. I'm reading a few tutorials and I compiled a simple example I found over there:
CODE#include
#include
int main(void) {
ÂÂÂÂint i;
ÂÂÂÂconsoleDemoInit();
ÂÂÂÂvideoSetMode(MODE_FB0);
ÂÂÂÂvramSetBankA(VRAM_A_LCD);
ÂÂÂÂprintf("Hello world!\n");
ÂÂÂÂprintf("Whats up, folks?");
ÂÂÂÂfor(i = 0; i < 256 * 192; i++)
ÂÂÂÂÂÂÂÂVRAM_A = RGB15(31,0,0);
ÂÂÂÂswiWaitForVBlank();
ÂÂÂÂreturn 0;
}
Maybe you know where I took it from. This fills the up screen with red and prints hello world bla bla bla in touchscreen. My question is, how can I select where to draw and where to print text? I'm using purely libnds, not PAlib or so.
Thanks!
CODE#include
#include
int main(void) {
ÂÂÂÂint i;
ÂÂÂÂconsoleDemoInit();
ÂÂÂÂvideoSetMode(MODE_FB0);
ÂÂÂÂvramSetBankA(VRAM_A_LCD);
ÂÂÂÂprintf("Hello world!\n");
ÂÂÂÂprintf("Whats up, folks?");
ÂÂÂÂfor(i = 0; i < 256 * 192; i++)
ÂÂÂÂÂÂÂÂVRAM_A = RGB15(31,0,0);
ÂÂÂÂswiWaitForVBlank();
ÂÂÂÂreturn 0;
}
Maybe you know where I took it from. This fills the up screen with red and prints hello world bla bla bla in touchscreen. My question is, how can I select where to draw and where to print text? I'm using purely libnds, not PAlib or so.
Thanks!