home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Supreme Volume 6 #1
/
swsii.zip
/
swsii
/
201
/
DJGPP3.ZIP
/
EMU387
/
E65.CC
< prev
next >
Wrap
C/C++ Source or Header
|
1991-04-22
|
459b
|
30 lines
#include "emu.h"
#include "rmov.h"
void emu_65()
{
if (empty())
return;
if (modrm > 0277)
{
// fsubr st(i),st
int i = modrm & 7;
if (empty(i))
return;
reg tmp;
r_sub(st(i), st(), tmp);
r_mov(tmp, st(i));
st().tag = TW_E;
top++;
return;
}
else
{
// fisubr m16int
reg t1, t2;
r_mov((short *)get_modrm(), t1);
r_sub(t1, st(), t2);
r_mov(t2, st());
}
}