aboutsummaryrefslogtreecommitdiff
path: root/src/main.effekt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.effekt')
-rw-r--r--src/main.effekt8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/main.effekt b/src/main.effekt
index 446f2ed..627ae8e 100644
--- a/src/main.effekt
+++ b/src/main.effekt
@@ -8,11 +8,9 @@ import bytearray
def main(): Unit = {
// Using the JS backend
def r = JSRenderer::makeRenderer
- try {
- r.init()
- } with start { rom =>
- log("ROM loaded to the functionnn!")
- resume(())
+ def test(rom: ByteArray) = {
+ cpu::run(rom) {r}
}
+ r.init(test)
()
} \ No newline at end of file