Skip to content

Commit

Permalink
Rsp: Update vmov
Browse files Browse the repository at this point in the history
  • Loading branch information
project64 committed Aug 3, 2023
1 parent b5db44c commit 05cd3a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/Project64-rsp/Interpreter Ops.cpp
Expand Up @@ -1983,7 +1983,7 @@ void RSP_Vector_VMOV(void)
{
RSP_ACCUM[i].HW[1] = RSP_Vect[RSPOpC.vt].ue(i, RSPOpC.e);
}
uint8_t Index = 7 - (RSPOpC.de & 0x7);
uint8_t Index = (RSPOpC.de & 0x7);
RSP_Vect[RSPOpC.vd].u16(Index) = RSP_Vect[RSPOpC.vt].ue(Index, RSPOpC.e);
}

Expand Down
2 changes: 1 addition & 1 deletion Source/Project64-rsp/cpu/RSPiInstruction.cpp
Expand Up @@ -506,7 +506,7 @@ void RSPInstruction::DecodeCop2Name(void)
break;
case RSP_VECTOR_VMOV:
strcpy(m_Name, "VMOV");
sprintf(m_Param, "$v%d[%d], $v%d[%d]", m_Instruction.vd, m_Instruction.de & 0x7, m_Instruction.rt, m_Instruction.de & 0x7);
sprintf(m_Param, "$v%d[%d], $v%d[%d]%s", m_Instruction.vd, m_Instruction.de & 0x7, m_Instruction.rt, m_Instruction.de & 0x7, ElementSpecifier(m_Instruction.e));
break;
case RSP_VECTOR_VRSQ:
strcpy(m_Name, "VRSQ");
Expand Down

0 comments on commit 05cd3a8

Please sign in to comment.