Android: Update how Addu cause android studio was not sign extending result

This commit is contained in:
zilmar 2023-11-30 21:12:53 +10:30
parent da092545e6
commit 5671f2b759
1 changed files with 1 additions and 1 deletions

View File

@ -1780,7 +1780,7 @@ void R4300iOp::SPECIAL_ADD()
void R4300iOp::SPECIAL_ADDU()
{
m_GPR[m_Opcode.rd].DW = m_GPR[m_Opcode.rs].W[0] + m_GPR[m_Opcode.rt].W[0];
m_GPR[m_Opcode.rd].DW = (int32_t)(m_GPR[m_Opcode.rs].UW[0] + m_GPR[m_Opcode.rt].UW[0]);
}
void R4300iOp::SPECIAL_SUB()