mirror of
https://github.com/holub/mame
synced 2025-04-18 22:49:58 +03:00
i960: don't preserve sign bit when shifting integer left (#13507)
This commit is contained in:
parent
49e7a4a464
commit
5954767b0b
@ -1157,7 +1157,7 @@ void i960_cpu_device::execute_op(uint32_t opcode)
|
||||
m_icount--;
|
||||
t1 = get_1_ri(opcode);
|
||||
t2 = get_2_ri(opcode);
|
||||
set_ri(opcode, (t2 & 0x80000000) | (t1 >= 32 ? 0 : (t2<<t1) & 0x7fffffff)); // sign is preserved
|
||||
set_ri(opcode, t1 >= 32 ? 0 : ((int32_t)t2) << t1);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user