From 12405c3944ce3e5435ad6c7c8a6a089400dc743c Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 1 Feb 2015 01:21:28 -0800 Subject: [PATCH] Disassemble the "continue previous" prim. --- GPU/GeDisasm.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/GPU/GeDisasm.cpp b/GPU/GeDisasm.cpp index 1e049dcba7..deb00fb397 100644 --- a/GPU/GeDisasm.cpp +++ b/GPU/GeDisasm.cpp @@ -110,8 +110,8 @@ void GeDisassembleOp(u32 pc, u32 op, u32 prev, char *buffer, int bufsize) { case GE_CMD_PRIM: { u32 count = data & 0xFFFF; - u32 type = data >> 16; - static const char* types[7] = { + u32 type = (data >> 16) & 7; + static const char* types[8] = { "POINTS", "LINES", "LINE_STRIP", @@ -119,6 +119,7 @@ void GeDisassembleOp(u32 pc, u32 op, u32 prev, char *buffer, int bufsize) { "TRIANGLE_STRIP", "TRIANGLE_FAN", "RECTANGLES", + "CONTINUE_PREVIOUS", }; if (gstate.vertType & GE_VTYPE_IDX_MASK) snprintf(buffer, bufsize, "DRAW PRIM %s: count= %i vaddr= %08x, iaddr= %08x", type < 7 ? types[type] : "INVALID", count, gstate_c.vertexAddr, gstate_c.indexAddr);