pub fn throw_interrupt(&mut self, interrupt: InterruptType) -> bool {
        // Check to see if we are in a STOP event
        if self.stopped && interrupt != InterruptType::KEYPAD {
            return false;
        }

        //panic!("Throwing: {:?}", interrupt);

        // Set the IF flag
        self.mem.ioregs.iflag |= 1 << (interrupt as u8);
        self.mem.dirty_interrupts = true;

        true
    }
/// Registers that a interrupt should be thrown.
Registers that a interrupt should be thrown.
Registers that a interrupt should be thrown .
pub fn throw_interrupt(&mut self, interrupt: InterruptType) -> bool {
        // Check to see if we are in a STOP event
        if self.stopped && interrupt != InterruptType::KEYPAD {
            return false;
        }
        //panic!("Throwing: {:?}", interrupt);
        // Set the IF flag
        self.mem.ioregs.iflag |= 1 << (interrupt as u8);
        self.mem.dirty_interrupts = true;
        true
    }
pub fn throw_interrupt ( & mut self , interrupt : InterruptType ) -> bool { // Check to see if we are in a STOP event if self . stopped && interrupt != InterruptType :: KEYPAD { return false ; } //panic!("Throwing: {:?}", interrupt); // Set the IF flag self . mem . ioregs . iflag |= 1 << ( interrupt as u8 ) ; self . mem . dirty_interrupts = true ; true }
Registers that a interrupt should be thrown.
Registers that a interrupt should be thrown .
&mut self
interrupt
InterruptType
&mut self
interrupt
InterruptType