mirror of
https://github.com/guilhermewerner/machine
synced 2025-06-16 13:14:18 +00:00
15 lines
230 B
Rust
15 lines
230 B
Rust
#![allow(non_snake_case)]
|
|
|
|
use ::Machine::*;
|
|
use std::fs;
|
|
|
|
fn main() {
|
|
let mut vm = Machine::New(0x00);
|
|
|
|
let bytecode = fs::read("Examples/Simple.bin").unwrap();
|
|
|
|
vm.LoadProgram(&bytecode, 0x00);
|
|
|
|
vm.Execute();
|
|
}
|