An emulator that utilizes its own instruction set arcitecture and even comes with an assembler.
You can use this emulator as an entry into learning assembly, or even model your own emulator after this for educational purposes.
To get started simply clone this repository
git clone https://github.com/Jelvani/emulatorTo get started, navigate to the directory of the reposity in Linux and run:
makeNow that the code is compiled, you can run the sample fibonnacci program that comes with the repository. First you must use the assembler to generate the machine code that is to be run:
./assembler fibonacci.txtThis will produce a file called output.txt
This file contains the machine code generated by the assembler. We can now have the emulator run this program by calling:
./vm output.txtYou should see an output containing the state of each register after the execution of each intruction.
- 0.0.5
- Alpha Release
- TODO: Add access to memory
- Alborz Jelvani - Initial Work - Personal Website
- Fork it (https://github.com/Jelvani/emulator)
- Create your feature branch (
git checkout -b feature/fooBar) - Commit your changes (
git commit -am 'Add some fooBar') - Push to the branch (
git push origin feature/fooBar) - Create a new Pull Request