nuclear@8: #include "debug.h" nuclear@8: #include "dbgfont.h" nuclear@10: #include "vdp.h" nuclear@8: nuclear@10: static uint16_t dbgpal[] = { nuclear@10: VDP_PACK_RGB(0, 0, 0), VDP_PACK_RGB(7, 0, 0), nuclear@10: VDP_PACK_RGB(0, 7, 0), VDP_PACK_RGB(0, 0, 7), nuclear@10: VDP_PACK_RGB(7, 7, 0), VDP_PACK_RGB(7, 0, 7), nuclear@10: VDP_PACK_RGB(0, 7, 7), VDP_PACK_RGB(7, 7, 7), nuclear@10: VDP_PACK_RGB(0, 0, 0), VDP_PACK_RGB(3, 0, 0), nuclear@10: VDP_PACK_RGB(0, 3, 0), VDP_PACK_RGB(0, 0, 3), nuclear@10: VDP_PACK_RGB(3, 3, 0), VDP_PACK_RGB(3, 0, 3), nuclear@10: VDP_PACK_RGB(0, 3, 3), VDP_PACK_RGB(3, 3, 3) nuclear@10: }; nuclear@8: nuclear@10: void dbg_init(void) nuclear@8: { nuclear@10: int i; nuclear@8: /* TODO allocate tiles, prepare palette etc */ nuclear@10: nuclear@10: vdp_begin_palette(DBG_PALIDX, 0); nuclear@10: for(i=0; i<16; i++) { nuclear@10: VDP_PORT_DATA = dbgpal[i]; nuclear@10: } nuclear@8: } nuclear@8: nuclear@8: void dbg_print(const char *s) nuclear@8: { nuclear@8: }