rustzx-core 0.16.0

ZX Spectrum emulator core library
Documentation
use bitflags::bitflags;

bitflags! {
    /// Emulation events
    #[derive(Default)]
    pub struct EmulationEvents: u8 {
        /// Set when tape fast load trigger is detected
        const TAPE_FAST_LOAD_TRIGGER_DETECTED = 0b00000001;
        /// Set when PC breakpoint is reached
        const PC_BREAKPOINT = 0b00000010;
    }
}

impl EmulationEvents {
    pub fn take(&mut self) -> Self {
        let events = *self;
        self.bits = 0;
        events
    }
}