home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware 1 2 the Maxx
/
sw_1.zip
/
sw_1
/
PROGRAM
/
DJEMU106.ZIP
/
EMU387
/
E66.CC
< prev
next >
Wrap
C/C++ Source or Header
|
1992-04-08
|
437b
|
29 lines
#include "emu.h"
#include "rmov.h"
void emu_66()
{
if (empty())
return;
if (modrm > 0277)
{
// fdivrp st(i),st
int i = modrm & 7;
if (empty(i))
return;
reg t;
r_div(st(), st(i), t);
r_mov(t, st(i));
st().tag = TW_E;
top++;
}
else
{
// fidiv m16int
reg t, t2;
r_mov((short *)get_modrm(), t);
r_div(st(), t, t2);
r_mov(t2, st());
}
}