home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware 1 2 the Maxx
/
sw_1.zip
/
sw_1
/
PROGRAM
/
DJEMU106.ZIP
/
EMU387
/
E05.CC
< prev
next >
Wrap
C/C++ Source or Header
|
1991-04-22
|
424b
|
28 lines
#include "emu.h"
#include "rmov.h"
void emu_05()
{
if (empty())
return;
if (modrm > 0277)
{
// fsubr st,st(i)
int i = modrm & 7;
if (empty(i))
return;
reg tmp;
r_sub(st(i), st(), tmp);
r_mov(tmp, st());
return;
}
else
{
// fsubr m32real
reg t1, t2;
r_mov((float *)get_modrm(), t1);
r_sub(t1, st(), t2);
r_mov(t2, st());
}
}