module main // must be named same as the file! import src/cpu import src/renderer import src/renderers/js 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(()) } () }