From 26a7636c551bca0640e3060d3b48882d2520ecb8 Mon Sep 17 00:00:00 2001 From: "Eric P. Nusbaum" Date: Wed, 13 Nov 2024 15:14:28 -0500 Subject: [PATCH] PPU Cleanup --- ADNES/PPU/Core.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ADNES/PPU/Core.cs b/ADNES/PPU/Core.cs index eca7996..991f771 100644 --- a/ADNES/PPU/Core.cs +++ b/ADNES/PPU/Core.cs @@ -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 {