#143028 - meshounah - Tue Oct 16, 2007 4:23 am
ok i'm really serious about gba dev now... i have the following example code but there is a few places i don't understand.
the stuff between the //////////////////////////// is what i don't understand
_________________
My Blog
Code: |
#include <gba_console.h>
#include <gba_video.h> #include <gba_interrupt.h> #include <gba_systemcalls.h> #include <gba_input.h> #include <stdio.h> #include <stdlib.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 irqInit(); irqSet(IRQ_VBLANK, Vblank); irqEnable(IRQ_VBLANK); ///////////////////////////////////////////////////////////////////////////// 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!\n"); iprintf("%x",malloc(200)); while (1) { VBlankIntrWait(); scanKeys(); } } |
the stuff between the //////////////////////////// is what i don't understand
_________________
My Blog