From 91b73dafd5ac5235201cc018b1270d28c6198f31 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Sun, 8 Jan 2017 14:00:28 +0300 Subject: [PATCH] [rsx/wip] Print bytecode in shader when BRB op is encountered --- rpcs3/Emu/RSX/Common/VertexProgramDecompiler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/rpcs3/Emu/RSX/Common/VertexProgramDecompiler.cpp b/rpcs3/Emu/RSX/Common/VertexProgramDecompiler.cpp index e32ed2ec62..032ca53476 100644 --- a/rpcs3/Emu/RSX/Common/VertexProgramDecompiler.cpp +++ b/rpcs3/Emu/RSX/Common/VertexProgramDecompiler.cpp @@ -674,6 +674,7 @@ std::string VertexProgramDecompiler::Decompile() LOG_ERROR(RSX, "Unimplemented sca_opcode BRB d0=0x%X, d1=0x%X, d2=0x%X, d3=0x%X", d0.HEX, d1.HEX, d2.HEX, d3.HEX); u32 jump_position = find_jump_lvl(GetAddr()); + AddCode(fmt::format("//BRB opcode, d0=0x%X, d1=0x%X, d2=0x%X, d3=0x%X", d0.HEX, d1.HEX, d2.HEX, d3.HEX)); AddCode("if (!$bconst) //BRB"); //If only the cond flags are set, we can just use $ifcond AddCode("{"); m_cur_instr->open_scopes++;