GE Debugger: Fix bad read on step at start of VRAM.

This commit is contained in:
Unknown W. Brackets 2022-08-23 19:50:01 -07:00
parent a901fa4315
commit 27d00199c8

View File

@ -2708,7 +2708,8 @@ void GPUCommon::ResetListState(int listID, DisplayListState state) {
GPUDebugOp GPUCommon::DissassembleOp(u32 pc, u32 op) {
char buffer[1024];
GeDisassembleOp(pc, op, Memory::Read_U32(pc - 4), buffer, sizeof(buffer));
u32 prev = Memory::IsValidAddress(pc - 4) ? Memory::ReadUnchecked_U32(pc - 4) : 0;
GeDisassembleOp(pc, op, prev, buffer, sizeof(buffer));
GPUDebugOp info;
info.pc = pc;