gba-trycatch

annotate src/main.c @ 0:0d2602a1b851

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 12 Jun 2014 05:37:18 +0300
parents
children b7130fe3f073
rev   line source
nuclear@0 1 #include "gbasys.h"
nuclear@0 2
nuclear@0 3 static void draw(void);
nuclear@0 4 static void keyb_handler(void);
nuclear@0 5
nuclear@0 6 static unsigned int keystate;
nuclear@0 7
nuclear@0 8 int main(void)
nuclear@0 9 {
nuclear@0 10 gba_init();
nuclear@0 11 //interrupt(INTR_KEY, keyb_handler);
nuclear@0 12
nuclear@0 13 set_video_mode(VMODE_LFB_160x128_16, 1);
nuclear@0 14
nuclear@0 15 clear_buffer(front_buffer, 0);
nuclear@0 16 draw_string("please wait...", 0, 0, front_buffer);
nuclear@0 17
nuclear@0 18 for(;;) {
nuclear@0 19 draw();
nuclear@0 20 }
nuclear@0 21 return 0;
nuclear@0 22 }
nuclear@0 23
nuclear@0 24 static void draw(void)
nuclear@0 25 {
nuclear@0 26 }
nuclear@0 27
nuclear@0 28 static void keyb_handler(void)
nuclear@0 29 {
nuclear@0 30 }