Fixing the PHA

This commit is contained in:
Anonymus Raccoon
2020-05-28 03:45:37 +02:00
parent 5ef1ba8d4f
commit 627fac8f2d
4 changed files with 19 additions and 4 deletions
+2 -2
View File
@@ -45,7 +45,7 @@ namespace ComSquare::PPU
case ppuRegisters::stat78:
return 0;
default:
throw InvalidAddress("PPU Internal Registers read ", addr);
throw InvalidAddress("PPU Internal Registers read ", addr + this->getStart());
}
}
@@ -215,7 +215,7 @@ namespace ComSquare::PPU
break;
//TODO adding the rest of the registers. oaf !
default:
throw InvalidAddress("PPU Internal Registers write", addr);
throw InvalidAddress("PPU Internal Registers write", addr + this->getStart());
}
}