mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
Fix disassembly of vmfvc and vmtvc
This commit is contained in:
@@ -138,12 +138,20 @@ namespace MIPSDis
|
||||
sprintf(out, "%s%s\t%s, %s",name,vr>127?"c":"", RN(rt), VN(vr, V_Single));
|
||||
}
|
||||
|
||||
void Dis_Vmftvc(MIPSOpcode op, char *out)
|
||||
void Dis_Vmfvc(MIPSOpcode op, char *out)
|
||||
{
|
||||
int vr = op & 0xFF;
|
||||
int vd = _VD;
|
||||
int vr = (op >> 8) & 0x7F;
|
||||
const char* name = MIPSGetName(op);
|
||||
sprintf(out, "%s\t%s, %s", name, VN(vd, V_Single), VN(vr + 128, V_Single));
|
||||
}
|
||||
|
||||
void Dis_Vmtvc(MIPSOpcode op, char *out)
|
||||
{
|
||||
int vr = op & 0x7F;
|
||||
int vs = _VS;
|
||||
const char *name = MIPSGetName(op);
|
||||
sprintf(out, "%s\t%s, %s", name, VN(vs, V_Single), VN(vr, V_Single));
|
||||
sprintf(out, "%s\t%s, %s", name, VN(vs, V_Single), VN(vr + 128, V_Single));
|
||||
}
|
||||
|
||||
void Dis_VPFXST(MIPSOpcode op, char *out)
|
||||
|
||||
@@ -24,7 +24,8 @@ extern u32 disPC;
|
||||
namespace MIPSDis
|
||||
{
|
||||
void Dis_Mftv(MIPSOpcode op, char *out);
|
||||
void Dis_Vmftvc(MIPSOpcode op, char *out);
|
||||
void Dis_Vmfvc(MIPSOpcode op, char *out);
|
||||
void Dis_Vmtvc(MIPSOpcode op, char *out);
|
||||
|
||||
void Dis_SV(MIPSOpcode op, char *out);
|
||||
void Dis_SVQ(MIPSOpcode op, char *out);
|
||||
|
||||
@@ -746,8 +746,8 @@ const MIPSInstruction tableVFPU9[32] = // 110100 00010 xxxxx . ....... . .......
|
||||
INVALID,
|
||||
|
||||
//16
|
||||
INSTR("vmfvc", JITFUNC(Comp_Vmfvc), Dis_Vmftvc, Int_Vmfvc, IN_OTHER|IN_VFPU_CC|OUT_OTHER|IS_VFPU),
|
||||
INSTR("vmtvc", JITFUNC(Comp_Vmtvc), Dis_Vmftvc, Int_Vmtvc, IN_OTHER|OUT_VFPU_CC|OUT_OTHER|IS_VFPU),
|
||||
INSTR("vmfvc", JITFUNC(Comp_Vmfvc), Dis_Vmfvc, Int_Vmfvc, IN_OTHER|IN_VFPU_CC|OUT_OTHER|IS_VFPU),
|
||||
INSTR("vmtvc", JITFUNC(Comp_Vmtvc), Dis_Vmtvc, Int_Vmtvc, IN_OTHER|OUT_VFPU_CC|OUT_OTHER|IS_VFPU),
|
||||
INVALID,
|
||||
INVALID,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user