games/mix: fix SLAX and SRAX instructions (thanks nicolagi)

MIX shift instructions shift by bytes not bits.
This commit is contained in:
Alex Musolino 2020-11-28 23:02:28 +10:30
parent 0b9c6fa117
commit 2619be4d4d

View file

@ -668,9 +668,9 @@ mixslrax(int m, int left)
rax |= rx & MASK5;
rx &= ~MASK5;
if(left)
rax <<= m;
rax <<= m*BITS;
else
rax >>= m;
rax >>= m*BITS;
rx |= rax & MASK5;
ra |= rax>>5*BITS & MASK5;
}