(&mut self)
| 54 | } |
| 55 | |
| 56 | pub fn execute_until_output(&mut self) -> i64 { |
| 57 | match self.execute() { |
| 58 | ExitCode::Output(o) => o, |
| 59 | _ => panic!("assumed CPU would exit with output"), |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | pub fn push_input<T: Into<i64>>(&mut self, input: T) { |
| 64 | self.input.push_back(input.into()); |