/// This function is useful for testing the emulator. It will only run while the
/// predicate is true.
This function is useful for testing the emulator. It will only run while the
predicate is true.
This function is useful for testing the emulator . It will only run while the predicate is true .
pub fn run_until<F>(&mut self, predicate: F)
    where
        F: Fn(&Cpu6502) -> bool,
    {
        while !predicate(self) {
            self.tick();
        }
    }
pub fn run_until < F > ( & mut self , predicate : F ) where F : Fn ( & Cpu6502 ) -> bool , { while ! predicate ( self ) { self . tick ( ) ; } }
This function is useful for testing the emulator.
This function is useful for testing the emulator .
&mut self
predicate
F