- fixed bad code for OP_SRL_KR.

This commit is contained in:
Christoph Oelckers 2018-09-02 18:20:08 +02:00
parent 207988bb1b
commit 4571aa52f0

View file

@ -1033,7 +1033,7 @@ static int Exec(VMFrameStack *stack, const VMOP *pc, VMReturn *ret, int numret)
NEXTOP; NEXTOP;
OP(SRL_KR): OP(SRL_KR):
ASSERTD(a); ASSERTKD(B); ASSERTD(C); ASSERTD(a); ASSERTKD(B); ASSERTD(C);
reg.d[a] = (unsigned)konstd[B] >> C; reg.d[a] = (unsigned)konstd[B] >> reg.d[C];
NEXTOP; NEXTOP;
OP(SRA_RR): OP(SRA_RR):