Skip to content

Commit

Permalink
Closes #16
Browse files Browse the repository at this point in the history
  • Loading branch information
LLeny committed Dec 7, 2024
1 parent a69941f commit 94c6be4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cartridge/cartridge_generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl CartridgeGeneric {

fn read(&mut self, pins: u32) -> u32 {
let addr = self.data_address(pins);
let data = self.banks[0][addr];
let data = *self.banks[0].get(addr).unwrap_or(&0xff);
trace!("Read 0x{:06x} data:0x{:02x}", addr, data);
write_data_pins(pins, data)
}
Expand Down

0 comments on commit 94c6be4

Please sign in to comment.