Print read/writes to unhandled sound registers

Former-commit-id: f63a98b61866c872ef52dd972db3ef28054be432
This commit is contained in:
Yonatan Goldschmidt 2019-11-28 00:55:14 +02:00 committed by Michel Heily
parent 29df4231e9
commit 41deb1631c

View file

@ -105,12 +105,15 @@ impl Bus for IoDevices {
REG_POSTFLG => io.post_boot_flag as u16,
REG_HALTCNT => 0,
REG_KEYINPUT => io.keyinput as u16,
REG_SOUND1CNT_L..=DMA_BASE => {
println!(
"Unimplemented read from {:x} {}",
io_addr,
io_reg_string(io_addr)
);
0
}
_ => {
// println!(
// "Unimplemented read from {:x} {}",
// io_addr,
// io_reg_string(io_addr)
// );
0
}
}
@ -253,12 +256,14 @@ impl Bus for IoDevices {
io.haltcnt = HaltState::Halt;
}
}
REG_SOUND1CNT_L..=DMA_BASE => {
println!(
"Unimplemented write to {:x} {}",
io_addr,
io_reg_string(io_addr)
);
}
_ => {
// println!(
// "Unimplemented write to {:x} {}",
// io_addr,
// io_reg_string(io_addr)
// );
}
}
}