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/opcodes.rs | |
parent | c1fb610e198d785aa57440b86c69587e5caaf563 (diff) |
Separate core from desktop target
Diffstat (limited to 'src/opcodes.rs')
-rw-r--r-- | src/opcodes.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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<S: Serial, A: Audio> GBState<S, A> { fn r_16b_from_pc(&mut self) -> Result<u16, MemError> { 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; |