Adding an error message on invalid instructions

This commit is contained in:
Zoe Roux
2021-02-04 12:07:26 +01:00
parent 04f9b9a8fc
commit 845a8c26f0
11 changed files with 78 additions and 17 deletions
+2
View File
@@ -211,6 +211,8 @@ namespace ComSquare::PPU
this->_registers._setini.raw = data;
break;
//TODO adding the rest of the registers. oaf !
case ppuRegisters::stat77: // some roms write here but it is useless
break;
default:
throw InvalidAddress("PPU Internal Registers write", addr + this->_start);
}