Quentin Legot
3762547402
Fix some warning which appear on clippy Fix print with 2 OPIW operations Fix doc in mod.rs
15 lines
330 B
Rust
15 lines
330 B
Rust
mod simulator;
|
|
|
|
use simulator::machine::Machine;
|
|
|
|
fn main() {
|
|
let mut m = Machine::_init_machine();
|
|
m.main_memory[4] = 43;
|
|
m.main_memory[5] = 150;
|
|
let a : u8 = 128;
|
|
let b : i8 = a as i8;
|
|
let c : u8 = b as u8;
|
|
println!("aaa {c}");
|
|
println!("read_memory : {}", Machine::read_memory(&mut m, 2, 4));
|
|
}
|