Satisfy clippy

old-bit-manip
Nick Krichevsky 2023-11-18 19:31:12 -05:00
parent e0745e149f
commit 8293244d6c
2 changed files with 5 additions and 0 deletions

View File

@ -18,6 +18,10 @@ pub struct Processor {
}
impl Processor {
/// Run the next instruction on the processor, advancing the program counter
///
/// # Panics
/// Panics if the program counter points outside of valid memory
pub fn run_next_instruction(&mut self) {
let pc = self.registers.program_counter;
let memory_view = self

View File

@ -1,5 +1,6 @@
//! The `misc` module holds instructions that I couldn't think of a better category for
#[allow(clippy::module_name_repetitions)]
#[derive(Debug, Clone, Copy)]
pub enum MiscInstruction {
SetCarryFlag,