mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-11 07:18:12 -05:00
Merge pull request #354 from lioncash/usaduflow
armemu: Fix underflows in USAD8/USADA8
This commit is contained in:
@ -392,6 +392,15 @@ ARMul_NthReg (ARMword instr, unsigned number)
|
||||
return (bit - 1);
|
||||
}
|
||||
|
||||
/* Unsigned sum of absolute difference */
|
||||
u8 ARMul_UnsignedAbsoluteDifference(u8 left, u8 right)
|
||||
{
|
||||
if (left > right)
|
||||
return left - right;
|
||||
|
||||
return right - left;
|
||||
}
|
||||
|
||||
/* Assigns the N and Z flags depending on the value of result. */
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user