pull/2/head
ondra05 2023-05-28 23:38:26 +02:00
parent f99f729be6
commit 64745257b2
No known key found for this signature in database
GPG Key ID: 0DA6D2BB2285E881
1 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
use hbvm::{
bytecode::ops::{opcode::*},
bytecode::ops::{Operations::*},
engine::Engine,
RuntimeErrors, HaltStatus,
};
@ -8,8 +8,8 @@ fn main() -> Result<(), RuntimeErrors> {
// TODO: Grab program from cmdline
#[rustfmt::skip]
let prog: Vec<u8> = vec![
NOP,
JUMP, 0, 0, 0, 0, 0, 0, 0, 0,
NOP as u8,
JUMP as u8, 0, 0, 0, 0, 0, 0, 0, 0,
];
let mut eng = Engine::new(prog);