aboutsummaryrefslogtreecommitdiff
path: root/src/main.effekt
diff options
context:
space:
mode:
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