diff --git a/src/cpu.rs b/src/cpu.rs index d0bf0d41968306311c523652dd491aabeb69300d..b6b0a32fa314d83aa03b78afa852973366b13f52 100644 --- a/src/cpu.rs +++ b/src/cpu.rs @@ -106,8 +106,7 @@ impl Cpu { // is going to be used in the fetching phase let pc = self.pc; - //@todo maybe remove this option as it may - // spend valuable resources + #[cfg(feature = "debug")] if pc >= 0x8000 && pc < 0x9fff { panic!("Invalid PC area at 0x{:04x}", pc); }