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, 7 insertions, 5 deletions
diff --git a/src/main.c b/src/main.c
index bbb6001..658fc94 100644
--- a/src/main.c
+++ b/src/main.c
@@ -6,12 +6,14 @@
bool g_hh_run = true;
+bool g_hh_test_complete = false;
+
void hh_ppu_vblank_interrupt() {
- for (unsigned long i = 0; i < HH_PPUINTDEMO_LENGTH; i++) {
- uint16_t addr = HH_PPUINTDEMO_ADDR[i];
- uint16_t data = HH_PPUINTDEMO_DATA[i];
- hh_ppu_vram_dwrite(addr, data);
- }
+#ifdef HH_TARGET_DESKTOP
+ if (g_hh_test_complete) return;
+#endif
+ hh_ppu_vram_dwrite((uint8_t*) HH_PPUINTDEMO_ARR, HH_PPUINTDEMO_LENGTH);
+ g_hh_test_complete = true;
}
int main() {