An open API service indexing awesome lists of open source software.

https://github.com/mkashirin/rbvm

Register-based virtual machine.
https://github.com/mkashirin/rbvm

registerbased repl rust virtualmachine

Last synced: 11 months ago
JSON representation

Register-based virtual machine.

Awesome Lists containing this project

README

          

RBVM

Elementary register-based virtual machine (RBVM) implemented in Rust.

## Usage

To start up a REPL execute the following:
```shell
rbvm repl
```
To run a file with a program:
```shell
rbvm run
```

## Opcode specification

RBVM instructions are built as the following specification describes:
```
+---------------------------------------------------+
| 32 bits -> |
|---------------------------------------------------|
| Opcode | 24-bit pad -> |
| Opcode | Register | 16-bit pad -> |
| Opcode | Register | Register | 8-bit pad |
| Opcode | Register | Integer | 8-bit pad |
| Opcode | Register | Register | Register |
+---------------------------------------------------+
```