https://github.com/statusfailed/cpu-mzisa
A toy CPU simulator for a made-up instruction set.
https://github.com/statusfailed/cpu-mzisa
Last synced: 12 months ago
JSON representation
A toy CPU simulator for a made-up instruction set.
- Host: GitHub
- URL: https://github.com/statusfailed/cpu-mzisa
- Owner: statusfailed
- Created: 2017-05-07T21:37:08.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-07T21:47:42.000Z (almost 9 years ago)
- Last Synced: 2025-01-31T08:19:03.923Z (about 1 year ago)
- Language: Haskell
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CPU-MzISA
A toy CPU simulator.
It doesn't even have branches yet, and the code is littered with debug
statements.
I don't know why you're even here.
## Build
Get [stack](https://docs.haskellstack.org/en/stable/install_and_upgrade/).
Now run
stack build
## Run
stack exec cpu-exe
Press enter to step the CPU, i.e. execute the next instruction.
This will run the fibonacci program.
## Name
The name was generated with
cat /dev/urandom | base64 | head -c 5
Amazingly, it included the string "ISA".