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/opcodes.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/opcodes.rs') diff --git a/src/opcodes.rs b/src/opcodes.rs index 6c41449..26e98c5 100644 --- a/src/opcodes.rs +++ b/src/opcodes.rs @@ -1,8 +1,9 @@ use crate::state::{flag, reg, GBState, MemError}; +use crate::io::{Serial, Audio}; // The opcodes functions are returning the number of cycles used. -impl GBState { +impl GBState { fn r_16b_from_pc(&mut self) -> Result { let p: u16 = self.mem.r(self.cpu.pc)? as u16 | ((self.mem.r(self.cpu.pc + 1)? as u16) << 8); self.cpu.pc += 2; -- cgit v1.2.3-70-g09d2