An open API service indexing awesome lists of open source software.

https://github.com/tkmru/cibo-wasm


https://github.com/tkmru/cibo-wasm

Last synced: 25 days ago
JSON representation

Awesome Lists containing this project

README

          

# cibo-wasm
Demo web page to run [cibo](https://github.com/tkmru/cibo) as WebAssembly on browser.
`cibo` is cpu emulator written by golang.

Demo Page is [here](https://tkmru.dev/cibo-wasm/demo/).

## Usage
Three files in `./demo/` need to be served from a web server.
For example, with `goexec`:

```
$ goexec 'http.ListenAndServe(":8080", http.FileServer(http.Dir(".")))'
```

## How to build
`GOOS=js` and `GOARCH=wasm` environment variables to compile for WebAssembly.

```
$ GOOS=js GOARCH=wasm go build -o demo/cibo.wasm cibo-wasm.go
```