gba-x3dtest

diff 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
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/main.c	Thu Jun 12 05:37:18 2014 +0300
     1.3 @@ -0,0 +1,30 @@
     1.4 +#include "gbasys.h"
     1.5 +
     1.6 +static void draw(void);
     1.7 +static void keyb_handler(void);
     1.8 +
     1.9 +static unsigned int keystate;
    1.10 +
    1.11 +int main(void)
    1.12 +{
    1.13 +	gba_init();
    1.14 +	//interrupt(INTR_KEY, keyb_handler);
    1.15 +
    1.16 +	set_video_mode(VMODE_LFB_160x128_16, 1);
    1.17 +
    1.18 +	clear_buffer(front_buffer, 0);
    1.19 +	draw_string("please wait...", 0, 0, front_buffer);
    1.20 +
    1.21 +	for(;;) {
    1.22 +		draw();
    1.23 +	}
    1.24 +	return 0;
    1.25 +}
    1.26 +
    1.27 +static void draw(void)
    1.28 +{
    1.29 +}
    1.30 +
    1.31 +static void keyb_handler(void)
    1.32 +{
    1.33 +}