move instruction increment
This commit is contained in:
@@ -553,8 +553,7 @@ impl MachineState {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
self.interms[t - 1] = Number::Integer(Rc::new(n1.div_floor(&n2)));
|
self.interms[t - 1] = Number::Integer(Rc::new(n1.div_floor(&n2)));
|
||||||
self.p += 1;
|
|
||||||
},
|
},
|
||||||
_ => {
|
_ => {
|
||||||
let atom_tbl = self.atom_tbl.clone();
|
let atom_tbl = self.atom_tbl.clone();
|
||||||
@@ -565,6 +564,8 @@ impl MachineState {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
self.p += 1;
|
||||||
},
|
},
|
||||||
&ArithmeticInstruction::IDiv(ref a1, ref a2, t) => {
|
&ArithmeticInstruction::IDiv(ref a1, ref a2, t) => {
|
||||||
let n1 = try_or_fail!(self, self.get_number(a1));
|
let n1 = try_or_fail!(self, self.get_number(a1));
|
||||||
|
|||||||
Reference in New Issue
Block a user