Skip to content

Repository files navigation

cpu_emulator

Simple 4 register CPU emulator, ASM compiler and cache simulator written in C#.

NOTE: .NET 8.0 is required to run the project

The program can be built and run using the "run.sh" script. You need to first make the script executable.

Linux

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

Example:

./run.sh -in cpu_test.txt -o cpu_test
./run.sh -in cache_test.txt -o cache_test

Instruction set

You can check out the supported instruction set here.

Available registers

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.

About

Simple 4 register CPU emulator

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages