I made this VM so I can submit my C coursework in the form of a bunch of bytecode and a machine.h
file.
It is not made as a "useful" bytecode VM hence some of the design choices.
See manual.md for design of the Bytecode VM.
Currently everything except native_call
instruction works (so you can't call a local native function in the bytecode, but you can call libc functions).
Assembler is available at: leslie255/lbvm_asm.
For UNIX-like systems:
# Clone the repo
$ git clone https://github.com/leslie255/lbvm.git
# Cd to the repo
$ cd lbvm
# Use run.py for quickly running an assembly file
# run.py manages the set up work on the first run
$ python3 run.py test.s
This project is licensed under GPLv3.