Simple 4 register CPU emulator, ASM compiler and cache simulator written in C#.
The program can be built and run using the "run.sh" script. You need to first make the script executable.
chmod +x run.sh
For info on how to run the program, do the following:
./run.sh -h
In order to run the tests you can either use the run.sh script with the -t argument or use
dotnet test
./run.sh -in cpu_test.txt -o cpu_test
./run.sh -in cache_test.txt -o cache_test
You can check out the supported instruction set here.
This file contains active registers. Default number of registers is 4, but the emulator supports up to 16. If the user wants to simulate more registers, the registers should be added to the file following the current pattern.