BurritOS/src/main.rs

12 lines
246 B
Rust
Raw Normal View History

2023-01-11 14:58:12 +01:00
mod simulator;
use simulator::machine::Machine;
2023-03-01 15:11:35 +01:00
use simulator::{mem_cmp, loader};
2022-10-19 16:39:38 +02:00
2022-10-05 16:30:21 +02:00
fn main() {
2023-02-15 18:01:50 +01:00
let path = "test_file_section.txt".to_string();
2023-03-01 15:11:35 +01:00
let mut m = loader::load(&path, 4);
Machine::print_memory(&mut m);
2023-02-15 18:01:50 +01:00
Machine::run(m);
2022-10-05 16:30:21 +02:00
}