2023-06-06 15:03:37 -05:00
|
|
|
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]
|
2023-06-06 15:03:37 -05:00
|
|
|
let prog = &[];
|
2023-04-22 16:06:33 -05:00
|
|
|
|
2023-06-06 15:03:37 -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
|
|
|
|
}
|