diff options
Diffstat (limited to 'src/interrupts_timers.rs')
-rw-r--r-- | src/interrupts_timers.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/interrupts_timers.rs b/src/interrupts_timers.rs index 95a0757..f4ac3c2 100644 --- a/src/interrupts_timers.rs +++ b/src/interrupts_timers.rs @@ -1,9 +1,10 @@ use crate::display::DisplayInterrupt; use crate::state::{GBState, MemError}; +use crate::io::{Serial, Audio}; const TIMA_TIMER_SPEEDS: [u64; 4] = [1024, 16, 64, 256]; -impl GBState { +impl<S: Serial, A: Audio> GBState<S, A> { pub fn check_interrupts(&mut self) -> Result<(), MemError> { if self.mem.ime { let interrupts = self.mem.io[0x0f] & self.mem.interrupts_register & 0b11111; |