This commit is contained in:
2025-07-22 15:51:21 -04:00
parent d5efabdd36
commit b40c3c503f
8 changed files with 122 additions and 36 deletions
+4
View File
@@ -1,4 +1,5 @@
use crate::periph::at28c256::At28C256;
use crate::periph::backplane::Backplane;
pub mod backplane;
pub mod new;
@@ -16,8 +17,11 @@ pub struct RomOnlyComputer {
impl RomOnlyComputer {
pub fn tick2(&mut self, address: u16, control: u8, data: u8) -> (u8) {
// tick the parts...
println!("WIDETICK: A:${address:04x} D:${data:02x} C:b{control:08b}");
let (_, new_data) = self.rom.tick(address, data, control == 0x01);
println!("\nNew Data : {new_data:02x}");
self.set_data_bus(new_data);
new_data
}
}