An attempt to create a simple virtual machine. It can right now run the stuff in /programs
.
Mostly follows this blogpost, but in Kotlin instead of JavaScript
Disclaimer: I probably would‘t depend on this being correctly implemented.
- Registers are 64 bit
- Memory is a represented as an array of bytes
gcc -S -masm=intel -o out.s in.c