#90504 - SwordsGate - Fri Jun 30, 2006 2:37 pm
ok first excuse my english even do i am english lol
ok i am totaly new to gba dvelopment
but i went and brought one of them writers so i can play my homebrew on my gba or now on my ds
i am useing devkitpro i been told its really good
i tested the hello world example it workedso i am happy to see that the compiler works
ok heres the problem i have no tutors
were can i get some but first please help me read this code
its the hello world code i cant read it because i am new
heres the code please explaine it to me
_________________
Gba development
am currently a newbie woking my way up
ok i am totaly new to gba dvelopment
but i went and brought one of them writers so i can play my homebrew on my gba or now on my ds
i am useing devkitpro i been told its really good
i tested the hello world example it workedso i am happy to see that the compiler works
ok heres the problem i have no tutors
were can i get some but first please help me read this code
its the hello world code i cant read it because i am new
heres the code please explaine it to me
Code: |
#include <gba_console.h>
#include <gba_video.h> #include <gba_interrupt.h> #include <gba_systemcalls.h> #include <gba_input.h> #include <stdio.h> int frame = 0; void Vblank() { frame++; } //--------------------------------------------------------------------------------- // Program entry point //--------------------------------------------------------------------------------- int main(void) { //--------------------------------------------------------------------------------- // the vblank interrupt must be enabled for VBlankIntrWait() to work // since the default dispatcher handles the bios flags no vblank handler // is required InitInterrupt(); SetInterrupt(IE_VBL, Vblank); EnableInterrupt(IE_VBL); consoleInit( 0 , 4 , 0, NULL , 0 , 15); BG_COLORS[0]=RGB8(58,110,165); BG_COLORS[241]=RGB5(31,31,31); SetMode(MODE_0 | BG0_ON); // ansi escape sequence to set print co-ordinates // /x1b[line;columnH iprintf("\x1b[10;10HHello World!"); while (1) { VBlankIntrWait(); ScanKeys(); } } |
_________________
Gba development
am currently a newbie woking my way up