holey-bytes/hbvm/src/main.rs

18 lines
286 B
Rust
Raw Normal View History

use hbvm::{vm::Vm, RuntimeErrors};
2023-04-18 18:08:30 -05:00
fn main() -> Result<(), RuntimeErrors> {
2023-05-23 02:29:31 -05:00
// TODO: Grab program from cmdline
2023-04-22 17:17:49 -05:00
#[rustfmt::skip]
let prog = &[];
2023-04-22 16:06:33 -05:00
unsafe {
let mut vm = Vm::new_unchecked(prog);
vm.run();
}
2023-04-22 16:06:33 -05:00
Ok(())
}
pub fn time() -> u32 {
9
}