Vole is a fictional machine language used for teaching Computer Science students.
See here for the instruction set PDF
Try it out by running:
cargo run -- ./examples/fibonacci.vole
or
cargo run -- ./examples/toplama.vole
(Explained in Turkish)
This interpreter adds 2 extra instructions for printing values into stdout:
- 0xDM0R prints the value of register R into stdout using the mode M
- 0xEMXY prints the value of memory cell XY into stdout using the mode M
Printing modes:
- 0xB -> Binary
- 0xC -> Character
- 0xE -> hExadecimal
- 0xF -> Floating point
- Anything else -> Decimal