Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/neknaj/cpu-circuitgame
https://github.com/neknaj/cpu-circuitgame
Last synced: about 8 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/neknaj/cpu-circuitgame
- Owner: neknaj
- Created: 2025-01-10T09:41:25.000Z (9 days ago)
- Default Branch: master
- Last Pushed: 2025-01-18T11:44:26.000Z (1 day ago)
- Last Synced: 2025-01-18T12:30:31.452Z (1 day ago)
- Language: TypeScript
- Homepage: https://github.com/neknaj/circuitgame
- Size: 158 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# CPU on Circuit Game
making CPU on [Circuit Game](https://neknaj.github.io/circuitgame/)## Build CircuitGame CLI Tool
- Clone
```sh
git clone https://github.com/neknaj/circuitgame
```
- Build
```sh
cd circuitgame
git pull
cargo build --release
cd ..
cp ./circuitgame/target/release/circuitgame_bin ./ncg
./ncg -i circuit/turing_complete/turing_complete.ncg -s true -d doc/turing_complete.md
```## Develop
### Open Server and Debug in Web Browser
- run
```sh
./ncg -i circuit/sample.ncg -d doc/sample.md -s 8081
```
- open in your browser
https://neknaj.github.io/circuitgame/?socket=ws://localhost:8081
### Create Document
```sh
./ncg -i circuit/sample.ncg -d doc/sample.ncg
```
### Transpile
- one module
```sh
./ncg -i circuit/sample.ncg -o test/module/sample.ts -m fAddr
```
- all modules
```sh
./ncg -i circuit/sample.ncg -o test/module/sample.ts -m .+
```## Help(2025-1-12)
```sh
ncg --help
``````sh
Usage: ncg [OPTIONS]Options:
-i, --input Input file
-o, --output
-d, --docOut
-m, --module
-s, --server
-w, --watch [possible values: true, false]
--vm [possible values: true, false]
-h, --help Print help
```## License
This project is licensed under the MIT License.