1
0
Fork 0

Change fpu for Elvira. Added isRemovable to drive for dott.cd and alike.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2047
This commit is contained in:
Peter Veenstra 2004-11-03 23:13:55 +00:00
parent b089c22997
commit e9df6e56ab
8 changed files with 43 additions and 13 deletions

View file

@ -16,7 +16,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* $Id: fpu_instructions.h,v 1.24 2004-10-13 19:26:26 qbix79 Exp $ */
/* $Id: fpu_instructions.h,v 1.25 2004-11-03 23:13:55 qbix79 Exp $ */
static void FPU_FINIT(void) {
@ -322,6 +322,8 @@ static void FPU_ST80(PhysPt addr,Bitu reg)
Bit64s exp80final= (exp80>>52) - BIAS64 + BIAS80;
Bit64s mant80 = fpu.regs[reg].ll&LONGTYPE(0x000fffffffffffff);
Bit64s mant80final= (mant80 << 11);
// Elvira wants the 8 and tcalc doesn't
if(fpu.regs[reg].d != 0) mant80final |= LONGTYPE(0x8000000000000000);
test.begin= (static_cast<Bit16s>(sign80)<<15)| static_cast<Bit16s>(exp80final);
test.eind.ll=mant80final;
mem_writed(addr,test.eind.l.lower);