A toy virtual machine based on the blog post https://felixangell.com/blogs/virtual-machine-in-c
- PUSH
- POP
- MOV
- ADD
- MUL
- DIV
- SUB
- XOR
- CMP (Compare)
- JMP (Jump)
- GT (Greater Than)
- LT (Less Than)
- HTL (End of program)
- CALL (Call a O.S. function)
- EAX (General)
- EBX (General)
- ECX (General)
- SP (Stack Pointer)
- IP (Instruction Pointer)
- ZF (Zero Flag)
- 256 positions
- 512 positions
- 1024 positions
- Implements CLI
- Read from a file (.asm or .dotm)
- Ignore comments
- Labels
; Add two numbers
PUSH 5
PUSH 5
ADD
POP
HLT ; End of program