summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/arm/disassembler/arm_disasm.cpp18
-rw-r--r--src/video_core/command_processor.cpp3
2 files changed, 10 insertions, 11 deletions
diff --git a/src/core/arm/disassembler/arm_disasm.cpp b/src/core/arm/disassembler/arm_disasm.cpp
index 76408e9fa..5ad1f1c29 100644
--- a/src/core/arm/disassembler/arm_disasm.cpp
+++ b/src/core/arm/disassembler/arm_disasm.cpp
@@ -738,23 +738,23 @@ std::string ARM_Disasm::DisassembleMemHalf(u32 insn)
738 if (is_immed) { 738 if (is_immed) {
739 if (is_pre) { 739 if (is_pre) {
740 if (offset == 0) { 740 if (offset == 0) {
741 return Common::StringFromFormat("%s%sh\tr%d, [r%d]", opname, cond_to_str(cond), rd, rn); 741 return Common::StringFromFormat("%s%s%s\tr%d, [r%d]", opname, cond_to_str(cond), width, rd, rn);
742 } else { 742 } else {
743 return Common::StringFromFormat("%s%sh\tr%d, [r%d, #%s%u]%s", 743 return Common::StringFromFormat("%s%s%s\tr%d, [r%d, #%s%u]%s",
744 opname, cond_to_str(cond), rd, rn, minus, offset, bang); 744 opname, cond_to_str(cond), width, rd, rn, minus, offset, bang);
745 } 745 }
746 } else { 746 } else {
747 return Common::StringFromFormat("%s%sh\tr%d, [r%d], #%s%u", 747 return Common::StringFromFormat("%s%s%s\tr%d, [r%d], #%s%u",
748 opname, cond_to_str(cond), rd, rn, minus, offset); 748 opname, cond_to_str(cond), width, rd, rn, minus, offset);
749 } 749 }
750 } 750 }
751 751
752 if (is_pre) { 752 if (is_pre) {
753 return Common::StringFromFormat("%s%sh\tr%d, [r%d, %sr%d]%s", 753 return Common::StringFromFormat("%s%s%s\tr%d, [r%d, %sr%d]%s",
754 opname, cond_to_str(cond), rd, rn, minus, rm, bang); 754 opname, cond_to_str(cond), width, rd, rn, minus, rm, bang);
755 } else { 755 } else {
756 return Common::StringFromFormat("%s%sh\tr%d, [r%d], %sr%d", 756 return Common::StringFromFormat("%s%s%s\tr%d, [r%d], %sr%d",
757 opname, cond_to_str(cond), rd, rn, minus, rm); 757 opname, cond_to_str(cond), width, rd, rn, minus, rm);
758 } 758 }
759} 759}
760 760
diff --git a/src/video_core/command_processor.cpp b/src/video_core/command_processor.cpp
index 35b976c60..59c75042c 100644
--- a/src/video_core/command_processor.cpp
+++ b/src/video_core/command_processor.cpp
@@ -486,9 +486,8 @@ void ProcessCommandList(const u32* list, u32 size) {
486 486
487 u32 value = *g_state.cmd_list.current_ptr++; 487 u32 value = *g_state.cmd_list.current_ptr++;
488 const CommandHeader header = { *g_state.cmd_list.current_ptr++ }; 488 const CommandHeader header = { *g_state.cmd_list.current_ptr++ };
489 u32 cmd = header.cmd_id;
490 489
491 WritePicaReg(cmd, value, header.parameter_mask); 490 WritePicaReg(header.cmd_id, value, header.parameter_mask);
492 491
493 for (unsigned i = 0; i < header.extra_data_length; ++i) { 492 for (unsigned i = 0; i < header.extra_data_length; ++i) {
494 u32 cmd = header.cmd_id + (header.group_commands ? i + 1 : 0); 493 u32 cmd = header.cmd_id + (header.group_commands ? i + 1 : 0);