PPU: Fixed broken vram data register
This commit is contained in:
parent
4bea25ecc7
commit
645cce2d47
1 changed files with 2 additions and 2 deletions
|
@ -183,7 +183,7 @@ void Ppu::Write(uint32_t addr, uint8_t value)
|
|||
//VMDATAL - VRAM Data Write low byte
|
||||
_vram[_vramAddress << 1] = value;
|
||||
if(!_vramAddrIncrementOnSecondReg) {
|
||||
_vramAddress = (_vramIncrementValue + _vramIncrementValue) & 0x7FFF;
|
||||
_vramAddress = (_vramAddress + _vramIncrementValue) & 0x7FFF;
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -191,7 +191,7 @@ void Ppu::Write(uint32_t addr, uint8_t value)
|
|||
//VMDATAH - VRAM Data Write high byte
|
||||
_vram[(_vramAddress << 1) + 1] = value;
|
||||
if(_vramAddrIncrementOnSecondReg) {
|
||||
_vramAddress = (_vramIncrementValue + _vramIncrementValue) & 0x7FFF;
|
||||
_vramAddress = (_vramAddress + _vramIncrementValue) & 0x7FFF;
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue