Reduce noise by wram bank switching

This commit is contained in:
Kevin Hamacher 2020-02-21 18:51:33 +01:00
parent 65e65be0eb
commit cd2f9ddfd8

View File

@ -368,9 +368,8 @@ impl Interconnect {
}
0xFF70 => {
if self.wram_bank != val {
println!("Switching wram bank to {:02X}", val);
if val > 7 {
panic!("R u sure this is correct?");
panic!("Trying to switch to wram bank {} which is non-existing", val);
}
if val == 0 {
self.wram_bank = 1;