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.
- Host: GitHub
- URL: https://github.com/mkashirin/rbvm
- Owner: mkashirin
- License: mit
- Created: 2025-03-15T23:18:17.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-03-24T08:05:59.000Z (11 months ago)
- Last Synced: 2025-03-24T08:33:41.881Z (11 months ago)
- Topics: registerbased, repl, rust, virtualmachine
- Language: Rust
- Homepage:
- Size: 76.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 |
+---------------------------------------------------+
```