aboutsummaryrefslogtreecommitdiff
path: root/src/main.effekt
diff options
context:
space:
mode:
authorCan2024-12-19 12:49:27 +0100
committerCan2024-12-19 12:49:27 +0100
commitf272fb42ee9af72cda2713fb3101a5cd39b1337c (patch)
tree43c81a74a1cce9dc67f7a98decce7b8110c5ca71 /src/main.effekt
parentfada153b3736b2cda8db05ebe1caf7dffda2388b (diff)
feat: implement CPU module for Chip8 emulator with main execution loop, WIP
Diffstat (limited to 'src/main.effekt')
-rw-r--r--src/main.effekt17
1 files changed, 15 insertions, 2 deletions
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