Skip to content
/ vm Public

My approach to creating a simple register-based virtual machine

License

Notifications You must be signed in to change notification settings

BergerAPI/vm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Virtual Machine

My approach to creating a simple stack-based virtual machine

Building

It's pretty easy to set this thing up, as I provide you with a simple Python script that automatically runs cmake and make.

$ python3 ./build.py

Note that this was only tested on Arch-Linux.

Instructions

  • push (push onto the stack)
  • pop (pop the first element on the stack)
  • add (adds the last 2 elements on the stack together and removes them)
  • syscall (runs a system call)

System Calls

  • 0 (Prints the last entry on the stack)

About

My approach to creating a simple register-based virtual machine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published