/// Performs a single step in the code.
///
/// If the step was successful, returns whether the
/// machine was halted. Note that if the machine is already
/// halted when this method is called, there will be an error.
Performs a single step in the code.
If the step was successful, returns whether the
machine was halted. Note that if the machine is already
halted when this method is called, there will be an error.
Performs a single step in the code . If the step was successful returns whether the machine was halted . Note that if the machine is already halted when this method is called there will be an error .
pub fn step(&mut self) -> Result<bool> {
        // Load the instruction and increment the program counter
        let ins = self.current_instruction()?;
        self.pc += 1;
        self.execute(ins)?;
        Ok(self.halted)
    }
pub fn step ( & mut self ) -> Result < bool > { // Load the instruction and increment the program counter let ins = self . current_instruction ( ) ? ; self . pc += 1 ; self . execute ( ins ) ? ; Ok ( self . halted ) }
Performs a single step in the code.
Performs a single step in the code .
&mut self