From 9a8e4117be8d30109229600346e7d9561c52a3e3 Mon Sep 17 00:00:00 2001 From: Astatin Date: Thu, 3 Apr 2025 18:35:03 +0200 Subject: Separate core from desktop target --- src/interrupts_timers.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/interrupts_timers.rs') 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 GBState { pub fn check_interrupts(&mut self) -> Result<(), MemError> { if self.mem.ime { let interrupts = self.mem.io[0x0f] & self.mem.interrupts_register & 0b11111; -- cgit v1.2.3-70-g09d2