Comment out the unused 'Pause' instruction result
This commit is contained in:
11
src/core.rs
11
src/core.rs
@@ -17,7 +17,7 @@ pub(crate) type Exception = ();
|
|||||||
pub(crate) enum InstructionResult {
|
pub(crate) enum InstructionResult {
|
||||||
Normal,
|
Normal,
|
||||||
Exception(Exception),
|
Exception(Exception),
|
||||||
Pause,
|
// Pause,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct Core {
|
pub struct Core {
|
||||||
@@ -72,11 +72,10 @@ impl Core {
|
|||||||
eprintln!("Exception from instruction");
|
eprintln!("Exception from instruction");
|
||||||
eprintln!("PC: {:016x}, instr: {:08x}", self.pc, instr.0);
|
eprintln!("PC: {:016x}, instr: {:08x}", self.pc, instr.0);
|
||||||
break;
|
break;
|
||||||
}
|
} // InstructionResult::Pause => {
|
||||||
InstructionResult::Pause => {
|
// eprintln!("Instruction asked for pause");
|
||||||
eprintln!("Instruction asked for pause");
|
// break;
|
||||||
break;
|
// }
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
eprintln!("Invalid Instruction {:08x} at PC: {:x}", instr.0, self.pc);
|
eprintln!("Invalid Instruction {:08x} at PC: {:x}", instr.0, self.pc);
|
||||||
|
|||||||
Reference in New Issue
Block a user