Reduce noise by wram bank switching
This commit is contained in:
parent
65e65be0eb
commit
cd2f9ddfd8
@ -368,9 +368,8 @@ impl Interconnect {
|
|||||||
}
|
}
|
||||||
0xFF70 => {
|
0xFF70 => {
|
||||||
if self.wram_bank != val {
|
if self.wram_bank != val {
|
||||||
println!("Switching wram bank to {:02X}", val);
|
|
||||||
if val > 7 {
|
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 {
|
if val == 0 {
|
||||||
self.wram_bank = 1;
|
self.wram_bank = 1;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user