1
0
Fork 0

fixed a bug in mul.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@497
This commit is contained in:
Peter Veenstra 2002-11-13 20:47:01 +00:00
parent 7dba8a97b8
commit ef0654b332

View file

@ -438,7 +438,7 @@ switch(Fetchb()) {
flags.type=t_MUL;
if (rm >= 0xc0 ) {GetEArd;temp.u=(Bit64s)reg_eax * (Bit64u)(*eard);}
else {GetEAa;temp.u=(Bit64u)reg_eax * (Bit64u)LoadMd(eaa);}
reg_eax=(Bit32u)(temp.u & 0xffffffff);reg_eax=(Bit32u)(temp.u >> 32);
reg_eax=(Bit32u)(temp.u & 0xffffffff);reg_edx=(Bit32u)(temp.u >> 32);
flags.cf=flags.of=(reg_edx !=0);
break;
}