Command Line
(1) Prerequisites
- Use Linux and have node.js and npm installed
- Donwload the repository -->
git clone https://github.com/creatorsim/creator.git
- Enter into the creator directory-->
cd creator
- Install the necessary packages -->
npm install terser jshint colors yargs readline-sync
(2) Compile and run a program
./creator.sh -a <architercture file> -s <assembly file>
Example:
./creator.sh -a architecture/MIPS_32.json -s examples/MIPS/example2.txt
Output:
Save the final state execution into a file
./creator.sh -a <architercture file> -s <assembly file> -o min > <output file>
Example:
./creator.sh -a ./architecture/MIPS_32.json -s ./examples/MIPS/example2.txt -o min > output.txt
Compare final state execution and the state saved on file
./creator.sh -a <architercture file> -s <assembly file> -o min -r <compare file>
Example:
./creator.sh -a ./architecture/MIPS_32.json -s ./examples/MIPS/example2.txt -o min -r output.txt
.