prep to do big tick method

This commit is contained in:
2025-07-21 13:41:17 -04:00
parent 7498489b03
commit d5efabdd36
5 changed files with 31 additions and 11 deletions
+9
View File
@@ -11,4 +11,13 @@ pub struct RomOnlyComputer {
pub(crate) data_bus: u8,
pub(crate) address_bus: u16,
pub(crate) read_mode: bool,
}
impl RomOnlyComputer {
pub fn tick2(&mut self, address: u16, control: u8, data: u8) -> (u8) {
// tick the parts...
let (_, new_data) = self.rom.tick(address, data, control == 0x01);
new_data
}
}
+1 -1
View File
@@ -5,4 +5,4 @@ impl RomOnlyComputer {
pub fn rom_chunks(&self, size: usize) -> Chunks<u8> {
self.rom.chunks(size)
}
}
}