Remove TODOs that were addressed

This commit is contained in:
Wesley Moore 2017-12-23 22:39:43 +11:00
parent dd4d9a7f6f
commit 54b3860012

View file

@ -27,7 +27,6 @@ impl Operand {
fn value(&self, machine: &Machine) -> isize {
match *self {
// TODO: Sdd a get to Machine
Operand::Register(ref reg) => machine.registers.get(reg).map(|val| *val).unwrap_or(0),
Operand::Immediate(val) => val,
}
@ -79,7 +78,6 @@ impl Program {
}
}
// TODO: Machine executes programs and instructions
#[derive(Debug)]
struct Machine {
pid: usize,