aboutsummaryrefslogtreecommitdiff
path: root/src/main.effekt
diff options
context:
space:
mode:
authorCan2025-01-12 13:57:11 +0100
committerCan2025-01-12 13:57:11 +0100
commitf54eb0b9890062e5757297b7a3a013df23ae79d7 (patch)
treeeea74f22a2e5eb38d2b9599fb8fcc324acfb32fa /src/main.effekt
parenta231a01f798d8f7f6188de8f2ae78e9d7a10dd4c (diff)
feat: got renderer working with cpu
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