Merge pull request #4387 from aldelaro5/gpr1-and-gpr2-friendly-labels

Add precision about the names of r1, r2 and r13 for the register view
This commit is contained in:
shuffle2 2016-11-03 02:29:40 -07:00 committed by GitHub
commit ab9f539233
1 changed files with 4 additions and 4 deletions

View File

@ -2289,10 +2289,10 @@ std::string GekkoDisassembler::Disassemble(u32 opcode, u32 current_instruction_a
return m_opcode.append("\t").append(m_operands); return m_opcode.append("\t").append(m_operands);
} }
static const char* gprnames[] = {" r0", " r1", " r2", " r3", " r4", " r5", " r6", " r7", static const char* gprnames[] = {
" r8", " r9", "r10", "r11", "r12", "r13", "r14", "r15", " r0", " r1 (sp)", " r2 (rtoc)", " r3", " r4", " r5", " r6", " r7", " r8", " r9", "r10",
"r16", "r17", "r18", "r19", "r20", "r21", "r22", "r23", "r11", "r12", "r13", "r14", "r15", "r16", "r17", "r18", "r19", "r20", "r21",
"r24", "r25", "r26", "r27", "r28", "r29", "r30", "r31"}; "r22", "r23", "r24", "r25", "r26", "r27", "r28", "r29", "r30", "r31"};
const char* GekkoDisassembler::GetGPRName(u32 index) const char* GekkoDisassembler::GetGPRName(u32 index)
{ {