fn print_current_instructions(cpu: &Cpu) {
    let pc = cpu.pc();
    if pc > 0 {
        println!("{:>19} {}", "|", format_instruction(cpu, pc - 4));
    }
    println!("  PC 0x{:04X} ----> | {}", pc, format_instruction(cpu, pc));
    for i in 1..4 {
        println!("{:>19} {}", "|", format_instruction(cpu, pc + i * 4));
    }
}
/// Print the instructions around the current program counter
Print the instructions around the current program counter
Print the instructions around the current program counter
fn print_current_instructions(cpu: &Cpu) {
    let pc = cpu.pc();
    if pc > 0 {
        println!("{:>19} {}", "|", format_instruction(cpu, pc - 4));
    }
    println!("  PC 0x{:04X} ----> | {}", pc, format_instruction(cpu, pc));
    for i in 1..4 {
        println!("{:>19} {}", "|", format_instruction(cpu, pc + i * 4));
    }
}
fn print_current_instructions ( cpu : & Cpu ) { let pc = cpu . pc ( ) ; if pc > 0 { println ! ( " " " " format_instruction ( cpu pc 4 ) ) ; } println ! ( " " pc format_instruction ( cpu pc ) ) ; for i in 1 .. 4 { println ! ( " " " " format_instruction ( cpu pc i 4 ) ) ; } }
Print the instructions around the current program counter
Print the instructions around the current program counter
cpu
&Cpu
cpu
&Cpu