mirror of
https://github.com/guilhermewerner/machine
synced 2025-06-16 05:04:18 +00:00
Update operations
This commit is contained in:
BIN
Examples/Bytecode.bin
Normal file
BIN
Examples/Bytecode.bin
Normal file
Binary file not shown.
Binary file not shown.
@ -5,7 +5,7 @@ use std::fs;
|
||||
|
||||
fn main() {
|
||||
let mut vm = Machine::New([0, 0, 0, 0]);
|
||||
let code = fs::read("Examples/Simple.bin").unwrap();
|
||||
let code = fs::read("Examples/Bytecode.bin").unwrap();
|
||||
vm.LoadProgram(&code);
|
||||
vm.Execute();
|
||||
}
|
||||
|
Reference in New Issue
Block a user