games/mix: fix SLAX and SRAX instructions (thanks nicolagi)
MIX shift instructions shift by bytes not bits.
This commit is contained in:
parent
0b9c6fa117
commit
2619be4d4d
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue