adding unit tests for TileRenderer but 8bpp test isn't finished

This commit is contained in:
Clément Le Bihan
2021-07-09 01:17:37 +02:00
parent 3a70bb9af0
commit 3002f9272e
4 changed files with 178 additions and 3 deletions
-1
View File
@@ -65,7 +65,6 @@ namespace ComSquare::PPU
uint8_t TileRenderer::read2BPPValue(uint16_t tileRowAddress, uint8_t pixelIndex)
{
// TODO unit test this
size_t size = this->_ram.getSize();
uint8_t highByte = this->_ram.read(tileRowAddress % size);
uint8_t lowByte = this->_ram.read((tileRowAddress + 1) % size);