home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Supreme Volume 6 #1
/
swsii.zip
/
swsii
/
201
/
DJGPP3.ZIP
/
EMU387
/
E46.CC
< prev
next >
Wrap
C/C++ Source or Header
|
1991-04-28
|
401b
|
27 lines
#include "emu.h"
#include "rmov.h"
void emu_46()
{
if (empty())
return;
if (modrm > 0277)
{
// fdivr st(i),st
int i = modrm&7;
if (empty(i))
return;
reg t;
r_div(st(i), st(), t);
r_mov(t, st(i));
}
else
{
// fdiv m64real
reg t, t2;
r_mov((double *)get_modrm(), t);
r_div(st(), t, t2);
r_mov(t2, st());
}
}