mirror of
https://github.com/guilhermewerner/machine
synced 2025-06-16 13:14:18 +00:00
32 bits
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user