chore: reorganize select parts of codebase

This commit is contained in:
2021-06-27 20:28:29 -05:00
parent c5aafab3ef
commit fc4a898177
8 changed files with 90 additions and 234 deletions

View File

@@ -18,12 +18,12 @@ pub struct Bus {
pub ppu: Ppu,
work_ram: WorkRam,
var_ram: VariableWorkRam,
timer: Timer,
pub(crate) timer: Timer,
int: Interrupt,
snd: Sound,
high_ram: HighRam,
serial: Serial,
pub joypad: Joypad,
pub(crate) joypad: Joypad,
}
impl Default for Bus {
@@ -79,10 +79,6 @@ impl Bus {
self.oam_write_byte(dest_addr, byte);
}
}
pub(crate) fn timer(&self) -> Timer {
self.timer
}
}
impl Bus {