Skip to content

Commit

Permalink
NES_test: removed noisy debugging printing for unhandled address
Browse files Browse the repository at this point in the history
- also removed warning of repeating clause in `match` in `CPUBus`
  • Loading branch information
Amjad50 committed Jul 18, 2020
1 parent 98a2459 commit 64014b4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nes_test/src/nes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ impl Bus for CPUBus {
0x6000..=0x7FFF => self.battery_ram[(address & 0x1FFF) as usize],
0x8000..=0xFFFF => self.cartridge.borrow().read(address, device),
_ => {
println!("unimplemented read cpu from {:04X}", address);
// println!("unimplemented read cpu from {:04X}", address);
0
}
}
Expand All @@ -123,8 +123,7 @@ impl Bus for CPUBus {
.cartridge
.borrow_mut()
.write(address, data, Device::CPU),
0x4016 => self.contoller.write(address, data, device),
_ => println!("unimplemented write cpu to {:04X}", address),
_ => {} // println!("unimplemented write cpu to {:04X}", address),
};
}
}
Expand Down

0 comments on commit 64014b4

Please sign in to comment.