Skip to content

Commit

Permalink
PPU Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
enusbaum committed Nov 13, 2024
1 parent 72d5185 commit 26a7636
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ADNES/PPU/Core.cs
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,7 @@ internal Core(IMapper memoryMapper, DMAWriteDelegate dmaWriteDelegate)
// https://wiki.nesdev.com/w/index.php/PPU_registers#The_PPUDATA_read_buffer_.28post-fetch.29
if (_registerPPUADDR < 0x3F00)
{
var bufferedData = _registerPPUDATABuffer;
_registerPPUDATABuffer = data;
data = bufferedData;
(_registerPPUDATABuffer, data) = (data, _registerPPUDATABuffer);
}
else
{
Expand Down

0 comments on commit 26a7636

Please sign in to comment.