Toy virtual machine
Find a file
2025-10-09 21:18:41 +02:00
libs/kick initial commit 2025-10-09 21:18:41 +02:00
src initial commit 2025-10-09 21:18:41 +02:00
tests initial commit 2025-10-09 21:18:41 +02:00
.gitignore initial commit 2025-10-09 21:18:41 +02:00
Cargo.lock initial commit 2025-10-09 21:18:41 +02:00
Cargo.toml initial commit 2025-10-09 21:18:41 +02:00
out initial commit 2025-10-09 21:18:41 +02:00
README.md initial commit 2025-10-09 21:18:41 +02:00
spec.md initial commit 2025-10-09 21:18:41 +02:00
test.bin initial commit 2025-10-09 21:18:41 +02:00

DEKEJIT

EXPERIMENTAL!! NOTHING WORKS AND MAKES SENSE!!!

This is an experimental 16-bit virtual machine.

A lenghty description can be found here.

If you want to have a great time, you can try experimenting with it:

Installation

To install the program, run cargo install --path . .

This currently builds the virtual machine, which can execute binary files, and an assembler which can turn text files into binary files.

Usage

dekejit build <assemby_file> <output_file> will read the provided <assembly_file> and write a binary file <output_file> which can be executed using dekejit run <binary_file>

A few example files can be found in tests/assembly/.

Future

Right now the only possible way to use the virtual machine is to manually write the assembly. In the future, small compilers for toy languages will be built that target my toy assembly.