diff options
author | Astatin <[email protected]> | 2025-04-03 18:35:03 +0200 |
---|---|---|
committer | Astatin <[email protected]> | 2025-04-03 18:35:03 +0200 |
commit | 9a8e4117be8d30109229600346e7d9561c52a3e3 (patch) | |
tree | 6d2531b675e609d3d5d734732f1328769dddf557 /src/interrupts_timers.rs | |
parent | c1fb610e198d785aa57440b86c69587e5caaf563 (diff) |
Separate core from desktop target
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; |