From 1231f6dafe32e2b45f2773713bed1c4747a19232 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 4 Jul 2020 01:28:18 +1000 Subject: [PATCH] GPU: Handle GP1 command mirrors --- src/core/gpu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/gpu.cpp b/src/core/gpu.cpp index 3d879fb8e..db64df683 100644 --- a/src/core/gpu.cpp +++ b/src/core/gpu.cpp @@ -884,7 +884,7 @@ u32 GPU::ReadGPUREAD() void GPU::WriteGP1(u32 value) { - const u8 command = Truncate8(value >> 24); + const u32 command = (value >> 24) & 0x3Fu; const u32 param = value & UINT32_C(0x00FFFFFF); switch (command) {