move apu
This commit is contained in:
parent
8a04f5e507
commit
d6af9d31b3
|
@ -1,7 +0,0 @@
|
|||
pub(super) struct Apu {}
|
||||
|
||||
impl Apu {
|
||||
pub(super) fn init() -> Self {
|
||||
Self {}
|
||||
}
|
||||
}
|
7
src/processor/memory/mmio/apu.rs
Normal file
7
src/processor/memory/mmio/apu.rs
Normal file
|
@ -0,0 +1,7 @@
|
|||
pub struct Apu {}
|
||||
|
||||
impl Apu {
|
||||
fn init() -> Self {
|
||||
Self {}
|
||||
}
|
||||
}
|
|
@ -1,2 +1,4 @@
|
|||
mod apu;
|
||||
mod joypad;
|
||||
pub use apu::Apu;
|
||||
pub use joypad::{Joypad, JoypadBank};
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use self::{apu::Apu, gpu::Gpu, memory::Memory, timer::Timers};
|
||||
use self::{gpu::Gpu, memory::Memory, timer::Timers};
|
||||
use crate::{
|
||||
util::{clear_bit, get_bit},
|
||||
verbose_println,
|
||||
|
@ -6,7 +6,6 @@ use crate::{
|
|||
use gilrs::Gilrs;
|
||||
use minifb::Window;
|
||||
|
||||
mod apu;
|
||||
pub mod gpu;
|
||||
mod instructions;
|
||||
pub mod memory;
|
||||
|
@ -36,7 +35,6 @@ pub struct Cpu {
|
|||
halted: bool,
|
||||
timers: Timers,
|
||||
gamepad_handler: Gilrs,
|
||||
apu: Apu,
|
||||
}
|
||||
|
||||
// Hz
|
||||
|
@ -64,7 +62,6 @@ impl Cpu {
|
|||
halted: false,
|
||||
timers: Timers::init(),
|
||||
gamepad_handler,
|
||||
apu: Apu::init(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue