chore: replace select unreachable! macros with todo! and unreachable!

This commit is contained in:
2021-03-22 21:52:28 -05:00
parent 9301a36682
commit 2813b762dd
3 changed files with 7 additions and 10 deletions

View File

@@ -120,7 +120,7 @@ impl Bus {
// Sprite Attribute Table
unimplemented!("Unable to read {:#06X} in the Sprite Attribute Table", addr);
}
0xFEA0..=0xFEFF => unimplemented!("{:#06X} is not allowed to be used", addr),
0xFEA0..=0xFEFF => unreachable!("{:#06X} is not allowed to be used", addr),
0xFF00..=0xFF7F => {
// IO Registers
match addr {
@@ -204,12 +204,9 @@ impl Bus {
}
0xFE00..=0xFE9F => {
// Sprite Attribute Table
unimplemented!(
"Unable to write to {:#06X} in the Sprite Attribute Table",
addr
);
unimplemented!("Unable to write to {:#06X} in Sprite Attribute Table", addr);
}
0xFEA0..=0xFEFF => unimplemented!("{:#06X} is not allowed to be used", addr),
0xFEA0..=0xFEFF => unreachable!("{:#06X} is not allowed to be used", addr),
0xFF00..=0xFF7F => {
// IO Registers
match addr {