mirror of
https://github.com/citra-emu/citra.git
synced 2024-12-22 08:40:04 +00:00
Merge pull request #1363 from robturn/master
DisassembleMemHalf: actually use width in determining opcode name
This commit is contained in:
commit
1b9012aea0
@ -738,23 +738,23 @@ std::string ARM_Disasm::DisassembleMemHalf(u32 insn)
|
|||||||
if (is_immed) {
|
if (is_immed) {
|
||||||
if (is_pre) {
|
if (is_pre) {
|
||||||
if (offset == 0) {
|
if (offset == 0) {
|
||||||
return Common::StringFromFormat("%s%sh\tr%d, [r%d]", opname, cond_to_str(cond), rd, rn);
|
return Common::StringFromFormat("%s%s%s\tr%d, [r%d]", opname, cond_to_str(cond), width, rd, rn);
|
||||||
} else {
|
} else {
|
||||||
return Common::StringFromFormat("%s%sh\tr%d, [r%d, #%s%u]%s",
|
return Common::StringFromFormat("%s%s%s\tr%d, [r%d, #%s%u]%s",
|
||||||
opname, cond_to_str(cond), rd, rn, minus, offset, bang);
|
opname, cond_to_str(cond), width, rd, rn, minus, offset, bang);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return Common::StringFromFormat("%s%sh\tr%d, [r%d], #%s%u",
|
return Common::StringFromFormat("%s%s%s\tr%d, [r%d], #%s%u",
|
||||||
opname, cond_to_str(cond), rd, rn, minus, offset);
|
opname, cond_to_str(cond), width, rd, rn, minus, offset);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_pre) {
|
if (is_pre) {
|
||||||
return Common::StringFromFormat("%s%sh\tr%d, [r%d, %sr%d]%s",
|
return Common::StringFromFormat("%s%s%s\tr%d, [r%d, %sr%d]%s",
|
||||||
opname, cond_to_str(cond), rd, rn, minus, rm, bang);
|
opname, cond_to_str(cond), width, rd, rn, minus, rm, bang);
|
||||||
} else {
|
} else {
|
||||||
return Common::StringFromFormat("%s%sh\tr%d, [r%d], %sr%d",
|
return Common::StringFromFormat("%s%s%s\tr%d, [r%d], %sr%d",
|
||||||
opname, cond_to_str(cond), rd, rn, minus, rm);
|
opname, cond_to_str(cond), width, rd, rn, minus, rm);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user