mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-20 18:42:17 +00:00
- fix crash in OP_RET handling
This commit is contained in:
parent
663e61a4fb
commit
266f838de7
1 changed files with 4 additions and 4 deletions
|
@ -104,8 +104,8 @@ void JitCompiler::EmitRET()
|
|||
Label L_endif = cc.newLabel();
|
||||
|
||||
cc.mov(reg_retnum, retnum);
|
||||
cc.test(reg_retnum, numret);
|
||||
cc.jg(L_endif);
|
||||
cc.cmp(reg_retnum, numret);
|
||||
cc.jge(L_endif);
|
||||
|
||||
cc.mov(location, x86::ptr(ret, retnum * sizeof(VMReturn)));
|
||||
|
||||
|
@ -221,8 +221,8 @@ void JitCompiler::EmitRETI()
|
|||
Label L_endif = cc.newLabel();
|
||||
|
||||
cc.mov(reg_retnum, retnum);
|
||||
cc.test(reg_retnum, numret);
|
||||
cc.jg(L_endif);
|
||||
cc.cmp(reg_retnum, numret);
|
||||
cc.jge(L_endif);
|
||||
|
||||
cc.mov(location, x86::ptr(ret, retnum * sizeof(VMReturn)));
|
||||
cc.mov(x86::dword_ptr(location), BCs);
|
||||
|
|
Loading…
Reference in a new issue