forked from AbleOS/holey-bytes
a
This commit is contained in:
parent
7eaa01f53c
commit
fb78e0a44a
|
@ -1,5 +1,5 @@
|
||||||
use hbvm::{
|
use hbvm::{
|
||||||
bytecode::ops::{opcode::*},
|
bytecode::ops::{Operations::*},
|
||||||
engine::Engine,
|
engine::Engine,
|
||||||
RuntimeErrors, HaltStatus,
|
RuntimeErrors, HaltStatus,
|
||||||
};
|
};
|
||||||
|
@ -8,8 +8,8 @@ fn main() -> Result<(), RuntimeErrors> {
|
||||||
// TODO: Grab program from cmdline
|
// TODO: Grab program from cmdline
|
||||||
#[rustfmt::skip]
|
#[rustfmt::skip]
|
||||||
let prog: Vec<u8> = vec![
|
let prog: Vec<u8> = vec![
|
||||||
NOP,
|
NOP as u8,
|
||||||
JUMP, 0, 0, 0, 0, 0, 0, 0, 0,
|
JUMP as u8, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||||
];
|
];
|
||||||
|
|
||||||
let mut eng = Engine::new(prog);
|
let mut eng = Engine::new(prog);
|
||||||
|
|
Loading…
Reference in a new issue