From f272fb42ee9af72cda2713fb3101a5cd39b1337c Mon Sep 17 00:00:00 2001 From: Can Date: Thu, 19 Dec 2024 12:49:27 +0100 Subject: feat: implement CPU module for Chip8 emulator with main execution loop, WIP --- src/main.effekt | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'src/main.effekt') diff --git a/src/main.effekt b/src/main.effekt index 35e7955..446f2ed 100644 --- a/src/main.effekt +++ b/src/main.effekt @@ -1,5 +1,18 @@ module main // must be named same as the file! -import src/lib +import src/cpu +import src/renderer +import src/renderers/js +import bytearray -def main(): Unit = println(helloWorld()) \ No newline at end of file +def main(): Unit = { + // Using the JS backend + def r = JSRenderer::makeRenderer + try { + r.init() + } with start { rom => + log("ROM loaded to the functionnn!") + resume(()) + } + () +} \ No newline at end of file -- cgit v1.2.3