Fix LOOPZ and LOOPNZ
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@865
This commit is contained in:
parent
8a3d68cbaa
commit
d8c23d9b98
1 changed files with 2 additions and 2 deletions
|
@ -316,10 +316,10 @@ switch (inst.code.op) {
|
|||
if (--reg_cx) break;
|
||||
goto nextopcode;
|
||||
case O_LOOPZ:
|
||||
if (--reg_cx && !get_ZF()) break;
|
||||
if (--reg_cx && get_ZF()) break;
|
||||
goto nextopcode;
|
||||
case O_LOOPNZ:
|
||||
if (--reg_cx && get_ZF()) break;
|
||||
if (--reg_cx && !get_ZF()) break;
|
||||
goto nextopcode;
|
||||
case O_JCXZ:
|
||||
if (reg_cx) goto nextopcode;
|
||||
|
|
Loading…
Add table
Reference in a new issue