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;
|
rax |= rx & MASK5;
|
||||||
rx &= ~MASK5;
|
rx &= ~MASK5;
|
||||||
if(left)
|
if(left)
|
||||||
rax <<= m;
|
rax <<= m*BITS;
|
||||||
else
|
else
|
||||||
rax >>= m;
|
rax >>= m*BITS;
|
||||||
rx |= rax & MASK5;
|
rx |= rax & MASK5;
|
||||||
ra |= rax>>5*BITS & MASK5;
|
ra |= rax>>5*BITS & MASK5;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue