diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -44,12 +44,12 @@ int main(void) { | |||
44 | 44 | ||
45 | // Register interrupts. | 45 | // Register interrupts. |
46 | irq_init(); | 46 | irq_init(); |
47 | irs_set(IRQ_VBLANK, irq_stub); | ||
47 | irs_set(IRQ_HBLANK, irs_hblank_func); | 48 | irs_set(IRQ_HBLANK, irs_hblank_func); |
48 | 49 | ||
49 | int frame_counter = 0; | 50 | int frame_counter = 0; |
50 | while(true) { | 51 | while(true) { |
51 | // bios_vblank_wait(); | 52 | bios_vblank_wait(); |
52 | wait_vsync(); | ||
53 | poll_keys(); | 53 | poll_keys(); |
54 | 54 | ||
55 | txt_position(0, 1); | 55 | txt_position(0, 1); |
@@ -59,7 +59,7 @@ int main(void) { | |||
59 | txt_printf(" Frame counter: %d", frame_counter); | 59 | txt_printf(" Frame counter: %d", frame_counter); |
60 | 60 | ||
61 | frame_counter++; | 61 | frame_counter++; |
62 | // update_button_sprites(); | 62 | update_button_sprites(); |
63 | }; | 63 | }; |
64 | 64 | ||
65 | return 0; | 65 | return 0; |