mirror of
https://github.com/holub/mame
synced 2025-05-15 18:32:02 +03:00
RSP: Fix sign issue in VCL opcode [angrylion]
This commit is contained in:
parent
073e655c0a
commit
9433e80b41
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user