https://github.com/tkmru/cibo-wasm
https://github.com/tkmru/cibo-wasm
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/tkmru/cibo-wasm
- Owner: tkmru
- License: mit
- Created: 2019-06-13T03:57:03.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-28T18:46:15.000Z (over 6 years ago)
- Last Synced: 2025-08-01T16:03:48.127Z (2 months ago)
- Language: Go
- Size: 2.33 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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
```