pub fn run(args: Cli) -> Result<(), Box<dyn std::error::Error>> {
    let mut chip8 = CHIP8::new(args.game_name());
    chip8.run(args.game_path(), args.if_print_instruction())?;

    Ok(())
}
/// run the CHIP-8 emulator
run the CHIP-8 emulator
run the CHIP - 8 emulator
pub fn run(args: Cli) -> Result<(), Box<dyn std::error::Error>> {
    let mut chip8 = CHIP8::new(args.game_name());
    chip8.run(args.game_path(), args.if_print_instruction())?;
    Ok(())
}
pub fn run ( args : Cli ) -> Result < ( ) , Box < dyn std :: error :: Error > > { let mut chip8 = CHIP8 :: new ( args . game_name ( ) ) ; chip8 . run ( args . game_path ( ) , args . if_print_instruction ( ) ) ? ; Ok ( ( ) ) }
run the CHIP-8 emulator
run the CHIP - 8 emulator
args
Cli
args
Cli