aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/main.c b/src/main.c
index 6226bcd..913043a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -13,7 +13,6 @@ WITH REGARD TO THIS SOFTWARE.
13 13
14#include "filesystem.c" 14#include "filesystem.c"
15#include "renderer.c" 15#include "renderer.c"
16// #include "text.h"
17 16
18// 17//
19// Config parameters. 18// Config parameters.
@@ -65,16 +64,11 @@ int main(void) {
65 irq_init(); 64 irq_init();
66 irs_set(IRQ_VBLANK, irs_stub); 65 irs_set(IRQ_VBLANK, irs_stub);
67 66
68 draw_pixel(10, 0, 1); 67 Tile *tile = FONT_DATA;
69 draw_pixel(10, 1, 2); 68 tile += 'A';
70 draw_pixel(10, 2, 3); 69 draw_tile(0, 0, tile, true);
71 draw_pixel(10, 3, 4); 70 draw_tile(0, 4, tile, true);
72 draw_pixel( 0, 0, 1); 71 draw_tile(4, 0, tile, true);
73 draw_pixel( 0, 1, 2);
74 draw_pixel( 0, 2, 3);
75 draw_pixel( 0, 3, 4);
76 txt_position(8, 8);
77 txt_printf("Hello world!");
78 72
79 // Main loop. 73 // Main loop.
80 PROF_INIT(); 74 PROF_INIT();