megadrive_test2

annotate 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
rev   line source
nuclear@8 1 #include "debug.h"
nuclear@8 2 #include "dbgfont.h"
nuclear@8 3
nuclear@8 4 static int init_done;
nuclear@8 5
nuclear@8 6 static void init_font(void)
nuclear@8 7 {
nuclear@8 8 /* TODO allocate tiles, prepare palette etc */
nuclear@8 9 }
nuclear@8 10
nuclear@8 11 void dbg_print(const char *s)
nuclear@8 12 {
nuclear@8 13 if(!init_done) {
nuclear@8 14 init_font();
nuclear@8 15 init_done = 1;
nuclear@8 16 }
nuclear@8 17 }