simulate some instructions

This commit is contained in:
Baptiste
2022-11-09 17:35:16 +01:00
parent c5291b7a3b
commit 240f029881
2 changed files with 31 additions and 7 deletions

View File

@ -1,12 +1,10 @@
mod decode;
mod print;
mod machine;
use machine::Machine;
fn main() {
let instr = decode::decode(98);
println!("{}", print::print(instr, 0));
let mut m = machine::Machine::_init_machine();
let mut m = Machine::_init_machine();
m.instructions[0] = 0x37;
machine::Machine::oneInstruction(m);
Machine::oneInstruction(m);
}