1
0
Fork 0

Fix LOOPZ and LOOPNZ

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@865
This commit is contained in:
Sjoerd van der Berg 2003-04-04 16:32:03 +00:00
parent 8a3d68cbaa
commit d8c23d9b98

View file

@ -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;