lc3-vm/src/main.rs

14 lines
233 B
Rust
Raw Normal View History

2024-01-05 21:31:16 -05:00
//////////////////////////////
////// driver code
//////////////////////////////
2024-01-05 17:18:23 -05:00
2024-01-05 21:31:16 -05:00
mod vm;
use crate::vm::VM;
2024-01-05 14:24:57 -05:00
2024-01-04 22:29:34 -05:00
fn main() {
2024-01-05 17:01:57 -05:00
let mut vm = VM::new();
2024-01-04 22:29:34 -05:00
2024-01-05 21:31:16 -05:00
vm.read_program(&"programs/hello-world.obj".to_string());
2024-01-05 22:17:21 -05:00
vm.execute();
2024-01-04 22:29:34 -05:00
}