aboutsummaryrefslogtreecommitdiff
path: root/src/main.effekt
blob: 627ae8eb76350f648ffb947c5c7327fc394119e5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
  def test(rom: ByteArray) = {
    cpu::run(rom) {r}
  }
  r.init(test)
  ()
}