https://github.com/bronzdoc/svm
:computer: simple virtual machine
https://github.com/bronzdoc/svm
Last synced: 7 months ago
JSON representation
:computer: simple virtual machine
- Host: GitHub
- URL: https://github.com/bronzdoc/svm
- Owner: bronzdoc
- Created: 2016-04-16T23:22:28.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-25T19:44:15.000Z (about 10 years ago)
- Last Synced: 2025-02-18T06:42:47.155Z (over 1 year ago)
- Language: C
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SVM - Simple virtual machine
# Sample program
```
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
SET A 0 ; sets register A to 0
HLT ; stop the program
```