verbose for banned write

This commit is contained in:
Alex Janka 2023-03-03 09:35:56 +11:00
parent 1f1fb3ff57
commit 105fca6624

View file

@ -185,7 +185,7 @@ impl Memory {
0xFF4B => self.gpu.update_wx(data),
0xFF03 | 0xFF08..0xFF0F | 0xFF44 => {
// read-only addresses
println!("BANNED write: {data:#X} to {address:#X}");
verbose_println!("BANNED write: {data:#X} to {address:#X}");
}
0x0..0xFF00 | 0xFF4C..=u16::MAX => panic!("passed wrong address to set_io"),
}