RSP: Fix sign issue in VCL opcode [angrylion]

This commit is contained in:
R. Belmont 2010-07-22 02:25:53 +00:00
parent 073e655c0a
commit 9433e80b41
2 changed files with 2 additions and 2 deletions

View File

@ -1892,7 +1892,7 @@ static void handle_vector_ops(rsp_state *rsp, UINT32 op)
{
if (rsp->flag[2] & (1 << (del)))
{
if (((UINT32)(INT16)(s1) + (UINT32)(INT16)(s2)) > 0x10000)
if (((UINT32)(UINT16)(s1) + (UINT32)(UINT16)(s2)) > 0x10000)
{
W_ACCUM_L(del, s1);
CLEAR_COMPARE_FLAG(del);

View File

@ -5151,7 +5151,7 @@ INLINE void cfunc_rsp_vcl(void *param)
{
if (rsp->flag[2] & (1 << (del)))
{
if (((UINT32)(INT16)(s1) + (UINT32)(INT16)(s2)) > 0x10000)
if (((UINT32)(UINT16)(s1) + (UINT32)(UINT16)(s2)) > 0x10000)
{
W_ACCUM_L(del, s1);
CLEAR_COMPARE_FLAG(del);