pub fn step(&mut self, cpu: &mut Cpu) {

        if !self.break_pc.is_empty() {
            if self.break_pc.contains(&cpu.pc()) {
                self.run = true;
            }
        }

        if !self.break_op.is_empty() {
            if let Ok(instr) = cpu.format_instruction(cpu.pc()) {
                if self.break_op.iter().any(|op| instr.starts_with(op)) {
                    self.run = true;
                }
            }
        }

        if self.run {
            self.run = false;
            self.run(cpu);
        }
    }
/// Perform one step and run the debugger if requested
Perform one step and run the debugger if requested
Perform one step and run the debugger if requested
pub fn step(&mut self, cpu: &mut Cpu) {
        if !self.break_pc.is_empty() {
            if self.break_pc.contains(&cpu.pc()) {
                self.run = true;
            }
        }
        if !self.break_op.is_empty() {
            if let Ok(instr) = cpu.format_instruction(cpu.pc()) {
                if self.break_op.iter().any(|op| instr.starts_with(op)) {
                    self.run = true;
                }
            }
        }
        if self.run {
            self.run = false;
            self.run(cpu);
        }
    }
pub fn step ( & mut self , cpu : & mut Cpu ) { if ! self . break_pc . is_empty ( ) { if self . break_pc . contains ( & cpu . pc ( ) ) { self . run = true ; } } if ! self . break_op . is_empty ( ) { if let Ok ( instr ) = cpu . format_instruction ( cpu . pc ( ) ) { if self . break_op . iter ( ) . any ( | op | instr . starts_with ( op ) ) { self . run = true ; } } } if self . run { self . run = false ; self . run ( cpu ) ; } }
Perform one step and run the debugger if requested
Perform one step and run the debugger if requested
&mut self
cpu
&mut Cpu
&mut self
cpu
&mut Cpu