megadrive_test2

diff src/debug.c @ 8:403367d5df5a

added 8x8 font data
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 22 Jun 2017 07:44:48 +0300
parents
children ca7108a82867
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/debug.c	Thu Jun 22 07:44:48 2017 +0300
     1.3 @@ -0,0 +1,17 @@
     1.4 +#include "debug.h"
     1.5 +#include "dbgfont.h"
     1.6 +
     1.7 +static int init_done;
     1.8 +
     1.9 +static void init_font(void)
    1.10 +{
    1.11 +	/* TODO allocate tiles, prepare palette etc */
    1.12 +}
    1.13 +
    1.14 +void dbg_print(const char *s)
    1.15 +{
    1.16 +	if(!init_done) {
    1.17 +		init_font();
    1.18 +		init_done = 1;
    1.19 +	}
    1.20 +}