This commit is contained in:
Werner
2021-11-19 17:55:40 -03:00
parent 8b7501fb91
commit ae70b9db3d
11 changed files with 409 additions and 324 deletions

Binary file not shown.

View File

@ -4,11 +4,8 @@ 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);
let mut vm = Machine::New([0, 0, 0, 0]);
let code = fs::read("Examples/Simple.bin").unwrap();
vm.LoadProgram(&code);
vm.Execute();
}