Merge pull request #718 from parkerlamb/disasm_fixes
PPC disassembly fixes
This commit is contained in:
@@ -86,6 +86,7 @@ struct PPCDecodeData {
|
||||
union {
|
||||
uint32_t value_;
|
||||
struct {
|
||||
uint32_t : 2;
|
||||
uint32_t DS : 14;
|
||||
uint32_t RA : 5;
|
||||
uint32_t RT : 5;
|
||||
|
||||
@@ -1689,9 +1689,9 @@ void PrintDisasm_mtmsrd(const PPCDecodeData& d, StringBuffer* str) {
|
||||
str->AppendFormat("r%d", d.X.RS());
|
||||
}
|
||||
void PrintDisasm_mtspr(const PPCDecodeData& d, StringBuffer* str) {
|
||||
// mtmspr [SPR], [RS]
|
||||
// mtspr [SPR], [RS]
|
||||
size_t str_start = str->length();
|
||||
str->Append("mtmspr");
|
||||
str->Append("mtspr");
|
||||
PadStringBuffer(str, str_start, kNamePad);
|
||||
str->AppendFormat("%d", d.XFX.SPR());
|
||||
str->Append(", ");
|
||||
|
||||
Reference in New Issue
Block a user