mirror of
https://github.com/guilhermewerner/machine
synced 2025-06-15 20:54:20 +00:00
12 lines
222 B
Rust
12 lines
222 B
Rust
#![allow(non_snake_case)]
|
|
|
|
use ::Machine::*;
|
|
use std::fs;
|
|
|
|
fn main() {
|
|
let mut vm = Machine::New([0, 0, 0, 0]);
|
|
let code = fs::read("Examples/Bytecode.bin").unwrap();
|
|
vm.LoadProgram(&code);
|
|
vm.Execute();
|
|
}
|