Implement PADDUH.

This commit is contained in:
Jean-Philip Desjardins 2016-06-24 00:03:54 -04:00
parent 4fee4366bf
commit 18a61d68f8
3 changed files with 14 additions and 2 deletions

View File

@ -831,6 +831,17 @@ void CMA_EE::PEXTUW()
PullVector(m_nRD);
}
//14
void CMA_EE::PADDUH()
{
if(m_nRD == 0) return;
PushVector(m_nRS);
PushVector(m_nRT);
m_codeGen->MD_AddHUS();
PullVector(m_nRD);
}
//15
void CMA_EE::PSUBUH()
{
@ -1755,7 +1766,7 @@ CMA_EE::InstructionFuncConstant CMA_EE::m_pOpMmi1[0x20] =
//0x08
&CMA_EE::Illegal, &CMA_EE::Illegal, &CMA_EE::PCEQB, &CMA_EE::Illegal, &CMA_EE::Illegal, &CMA_EE::Illegal, &CMA_EE::Illegal, &CMA_EE::Illegal,
//0x10
&CMA_EE::PADDUW, &CMA_EE::Illegal, &CMA_EE::PEXTUW, &CMA_EE::Illegal, &CMA_EE::Illegal, &CMA_EE::PSUBUH, &CMA_EE::PEXTUH, &CMA_EE::Illegal,
&CMA_EE::PADDUW, &CMA_EE::Illegal, &CMA_EE::PEXTUW, &CMA_EE::Illegal, &CMA_EE::PADDUH, &CMA_EE::PSUBUH, &CMA_EE::PEXTUH, &CMA_EE::Illegal,
//0x18
&CMA_EE::PADDUB, &CMA_EE::PSUBUB, &CMA_EE::PEXTUB, &CMA_EE::QFSRV, &CMA_EE::Illegal, &CMA_EE::Illegal, &CMA_EE::Illegal, &CMA_EE::Illegal,
};

View File

@ -115,6 +115,7 @@ private:
void PCEQB();
void PADDUW();
void PEXTUW();
void PADDUH();
void PSUBUH();
void PEXTUH();
void PADDUB();

View File

@ -161,7 +161,7 @@ INSTRUCTION CMA_EE::m_cReflMmi1[32] =
{ NULL, NULL, NULL, NULL, NULL, NULL },
{ "PEXTUW", NULL, CopyMnemonic, ReflOpRdRsRt, NULL, NULL },
{ NULL, NULL, NULL, NULL, NULL, NULL },
{ NULL, NULL, NULL, NULL, NULL, NULL },
{ "PADDUH", NULL, CopyMnemonic, ReflOpRdRsRt, NULL, NULL },
{ "PSUBUH", NULL, CopyMnemonic, ReflOpRdRsRt, NULL, NULL },
{ "PEXTUH", NULL, CopyMnemonic, ReflOpRdRsRt, NULL, NULL },
{ NULL, NULL, NULL, NULL, NULL, NULL },