aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/main.c b/src/main.c
index d061bb3..810a69a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -18,15 +18,9 @@ volatile unsigned short g_hh_hcount;
void hh_ppu_vblank_interrupt() {
static unsigned long frame = 0;
- // hh_ppu_flush();
- // hh_input_read();
- // hh_demo_loop(frame);
-
- size_t offset = frame * 4;
- if (offset >= HH_PPUINTDEMO_LENGTH) return;
- uint8_t* d = HH_PPUINTDEMO_ARR + offset;
- hh_ppu_vram_buffer(d);
- hh_ppu_vram_flush();
+ hh_input_read();
+ hh_demo_loop(frame);
+ hh_ppu_flush();
frame++;
}