Skip to content

A simplistic virtual machine and assembler implemented in C++.

Notifications You must be signed in to change notification settings

Feathergunner/VM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simplistic virtual machine and assembler implemented in C++. The basic stuff works. A general bus system with which multi-core-machines or keyboard input could be implemented is currently work in progress.

A (very basic) documentation can be found in doc.pdf.

To compile and run the test program Prim:

  1. Make asm
    compiles main_asm.cpp, creates a program called asm

  2. Make vm
    compiles main_vm.cpp, creates a program called vm

  3. run asm
    compiles the programm in "Prim.txt" from assembly-code to machine-code. Creates a new file "mc_Prim.txt".

  4. run vm
    runs the Virtual machine, which is initialized by the program from "mc_Prim.txt"

  5. enjoy :)

  6. see the file ram.txt which is displays the status of the ram of the vm at termination.

See main_asm.cpp and main_vm.cpp for some general settings and to change input- and output- filenames. See include/Instructions_VM.hpp for an overview of all instructions provided by the virtual machine.

About

A simplistic virtual machine and assembler implemented in C++.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published