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
/
E04.CC
< prev
next >
Wrap
C/C++ Source or Header
|
1991-09-11
|
422b
|
28 lines
#include "emu.h"
#include "rmov.h"
void emu_04()
{
if (empty())
return;
if (modrm > 0277)
{
// fsub st,st(i)
int i = modrm & 7;
if (empty(i))
return;
reg tmp;
r_sub(st(), st(i), tmp);
r_mov(tmp, st());
return;
}
else
{
// fsub m32real
reg t1, t2;
r_mov((float *)get_modrm(), t1);
r_sub(st(), t1, t2);
r_mov(t2, st());
}
}