home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
vol_300
/
359_11
/
patch5.000
/
EMU387
/
E47.CC
< prev
next >
Wrap
C/C++ Source or Header
|
1991-09-11
|
403b
|
27 lines
#include "emu.h"
#include "rmov.h"
void emu_47()
{
if (empty())
return;
if (modrm > 0277)
{
// fdiv st(i),st
reg t;
int i = modrm & 7;
if (empty(i))
return;
r_div(st(), st(i), t);
r_mov(t, st(i));
}
else
{
// fdivr m64real
reg t, t2;
r_mov((double *)get_modrm(), t);
r_div(t, st(), t2);
r_mov(t2, st());
}
}