Skip to content

wilgnne/stack-vm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to stack-vm 👋

License: MIT Twitter: WilgnneK

A simple stack-based virtual machine created for educational porposes

The Instruction Set

PSH 5       ; pushes 5 to the stack
PSH 10      ; pushes 10 to the stack
ADD         ; pops two values on top of the stack, adds them pushes to stack
POP         ; pops the value on the stack, will also print it for debugging
HLT         ; stop the program

Requirements

You'll need a few bits of software to compile the VM:

  • clang, gcc, - some C compiler
  • make - GNU make

Usage

make all && ./bin/ss-vm

Author

👤 Wilgnne Khawan

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❤️ by readme-md-generator