.
├── CHANGELOG.md
├── README.md
├── qcpu
├── qcpu_assembler
├── qcpu_simulator
├── qcpu_syntax
Make sure you have cargo installed.
# Linux/MacOS
curl https://sh.rustup.rs -sSf | sh
# Windows
winget install -e --id Rustlang.Rustup
Then install the qcpu package.
cargo install --path ./qcpu # <- if you're in the root directory, otherwise just make sure the path is correct
qcpu asm -s <input_file> -o <output_file>
qcpu disasm -b <input_file_in_binary> -o <output_file>
qcpu sim -b <input_file_in_binary>
qcpu sim -s <input_file_in_assembly> # Just-in-time compilation (You get to have labels in the output)
qcpu sim -s <input_file_in_assembly> --it # Interactive mode
qcpu sim -s <input_file_in_assembly> --it -m 65536 # Interactive mode with 65536 bytes of memory