Skip to content

Files

Latest commit

17f844b · Oct 25, 2023

History

History
27 lines (17 loc) · 775 Bytes

Readme.md

File metadata and controls

27 lines (17 loc) · 775 Bytes

VOLE interpreter written in Rust

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)

Deviations from the original VOLE instruction set

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