pub fn emulate(path: &str) -> Result<CpuState, std::io::Error> {
    let mut cpu = util::CpuState::init(path)?;

    start_pipeline(&mut cpu);
    cpu.print_registers();
    Ok(cpu)
}
/// Executes the emulator given the instruction vector
Executes the emulator given the instruction vector
Executes the emulator given the instruction vector
pub fn emulate(path: &str) -> Result<CpuState, std::io::Error> {
    let mut cpu = util::CpuState::init(path)?;
    start_pipeline(&mut cpu);
    cpu.print_registers();
    Ok(cpu)
}
pub fn emulate ( path : & str ) -> Result < CpuState , std :: io :: Error > { let mut cpu = util :: CpuState :: init ( path ) ? ; start_pipeline ( & mut cpu ) ; cpu . print_registers ( ) ; Ok ( cpu ) }
Executes the emulator given the instruction vector
Executes the emulator given the instruction vector
path
&str