TitanHZZ / vm

Simple stack based virtual machine.
MIT License
1 stars 0 forks source link

vm

Simple vm implementation.

Quick Start

Before building and using this project, you will need to install cmake.

$ mkdir build
$ cmake --build ./build --target all
$ ./build/vasma -i examples/fibonacci.vasm -o fib.vm
$ ./build/vme -i fib.vm

Components

vasm

Assembly language for the virtual machine.
For examples look in the examples folder.

vm

Byte code (executable) file format, compiled with vasma.

vasma

'vasma' is the vasm assembler that generates byte code from a source file to be ran by vme.

vme

The vasm executor, used to run vm files.

dvasm

The vasm disassembler. Get source code back from an executable file.