RomOnlyComputer now has a GUI

This commit is contained in:
2025-07-17 11:45:58 -04:00
parent cad8d5eaa3
commit 8e2ca81489
13 changed files with 150 additions and 40 deletions
+2 -1
View File
@@ -8,7 +8,7 @@ impl Hm62256 {
pub fn tick(&mut self, address_bus: u16, data_bus: u8, read_mode: bool, cs: bool) -> (u16, u8) {
println!("HM62256RAM TICK START -> 0x{address_bus:04x} 0x{data_bus:02x} {read_mode} {cs}");
if !(address_bus.gt( &self.offset) && address_bus.le(&self.max_address())) {
if !(address_bus >= self.offset && address_bus < self.max_address()) {
return (address_bus, data_bus);
}
@@ -26,6 +26,7 @@ impl Hm62256 {
return (address_bus, data_bus);
}
// ok. lets see what we are dealing with
self.data_bus = if read_mode {
self.data[addr as usize]