2004-02-17 00:43:58 +03:00
|
|
|
/*
|
|
|
|
NetWinder Floating Point Emulator
|
|
|
|
(c) Rebel.com, 1998-1999
|
|
|
|
(c) Philip Blundell, 1998
|
|
|
|
|
|
|
|
Direct questions, comments to Scott Bambrough <scottb@netwinder.org>
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "fpa11.h"
|
|
|
|
#include "softfloat.h"
|
|
|
|
#include "fpopcode.h"
|
|
|
|
//#include "fpmodule.h"
|
|
|
|
//#include "fpmodule.inl"
|
|
|
|
|
|
|
|
//#include <asm/uaccess.h>
|
|
|
|
|
|
|
|
static inline
|
2009-05-04 18:19:04 +04:00
|
|
|
void loadSingle(const unsigned int Fn, target_ulong addr)
|
2004-02-17 00:43:58 +03:00
|
|
|
{
|
|
|
|
FPA11 *fpa11 = GET_FPA11();
|
|
|
|
fpa11->fType[Fn] = typeSingle;
|
2007-11-16 13:46:05 +03:00
|
|
|
/* FIXME - handle failure of get_user() */
|
|
|
|
get_user_u32(fpa11->fpreg[Fn].fSingle, addr);
|
2004-02-17 00:43:58 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
static inline
|
2009-05-04 18:19:04 +04:00
|
|
|
void loadDouble(const unsigned int Fn, target_ulong addr)
|
2004-02-17 00:43:58 +03:00
|
|
|
{
|
|
|
|
FPA11 *fpa11 = GET_FPA11();
|
|
|
|
unsigned int *p;
|
|
|
|
p = (unsigned int*)&fpa11->fpreg[Fn].fDouble;
|
|
|
|
fpa11->fType[Fn] = typeDouble;
|
2009-07-27 18:13:06 +04:00
|
|
|
#ifdef HOST_WORDS_BIGENDIAN
|
2007-11-16 13:46:05 +03:00
|
|
|
/* FIXME - handle failure of get_user() */
|
|
|
|
get_user_u32(p[0], addr); /* sign & exponent */
|
|
|
|
get_user_u32(p[1], addr + 4);
|
2005-02-07 15:43:57 +03:00
|
|
|
#else
|
2007-11-16 13:46:05 +03:00
|
|
|
/* FIXME - handle failure of get_user() */
|
|
|
|
get_user_u32(p[0], addr + 4);
|
|
|
|
get_user_u32(p[1], addr); /* sign & exponent */
|
2005-02-07 15:43:57 +03:00
|
|
|
#endif
|
2007-09-17 12:09:54 +04:00
|
|
|
}
|
2004-02-17 00:43:58 +03:00
|
|
|
|
|
|
|
static inline
|
2009-05-04 18:19:04 +04:00
|
|
|
void loadExtended(const unsigned int Fn, target_ulong addr)
|
2004-02-17 00:43:58 +03:00
|
|
|
{
|
|
|
|
FPA11 *fpa11 = GET_FPA11();
|
|
|
|
unsigned int *p;
|
|
|
|
p = (unsigned int*)&fpa11->fpreg[Fn].fExtended;
|
|
|
|
fpa11->fType[Fn] = typeExtended;
|
2007-11-16 13:46:05 +03:00
|
|
|
/* FIXME - handle failure of get_user() */
|
|
|
|
get_user_u32(p[0], addr); /* sign & exponent */
|
|
|
|
get_user_u32(p[1], addr + 8); /* ls bits */
|
|
|
|
get_user_u32(p[2], addr + 4); /* ms bits */
|
2007-09-17 12:09:54 +04:00
|
|
|
}
|
2004-02-17 00:43:58 +03:00
|
|
|
|
|
|
|
static inline
|
2009-05-04 18:19:04 +04:00
|
|
|
void loadMultiple(const unsigned int Fn, target_ulong addr)
|
2004-02-17 00:43:58 +03:00
|
|
|
{
|
|
|
|
FPA11 *fpa11 = GET_FPA11();
|
|
|
|
register unsigned int *p;
|
|
|
|
unsigned long x;
|
|
|
|
|
|
|
|
p = (unsigned int*)&(fpa11->fpreg[Fn]);
|
2007-11-16 13:46:05 +03:00
|
|
|
/* FIXME - handle failure of get_user() */
|
|
|
|
get_user_u32(x, addr);
|
2004-02-17 00:43:58 +03:00
|
|
|
fpa11->fType[Fn] = (x >> 14) & 0x00000003;
|
2007-09-17 12:09:54 +04:00
|
|
|
|
2004-02-17 00:43:58 +03:00
|
|
|
switch (fpa11->fType[Fn])
|
|
|
|
{
|
|
|
|
case typeSingle:
|
|
|
|
case typeDouble:
|
|
|
|
{
|
2007-11-16 13:46:05 +03:00
|
|
|
/* FIXME - handle failure of get_user() */
|
|
|
|
get_user_u32(p[0], addr + 8); /* Single */
|
|
|
|
get_user_u32(p[1], addr + 4); /* double msw */
|
2004-02-17 00:43:58 +03:00
|
|
|
p[2] = 0; /* empty */
|
|
|
|
}
|
2007-09-17 01:08:06 +04:00
|
|
|
break;
|
2007-09-17 12:09:54 +04:00
|
|
|
|
2004-02-17 00:43:58 +03:00
|
|
|
case typeExtended:
|
|
|
|
{
|
2007-11-16 13:46:05 +03:00
|
|
|
/* FIXME - handle failure of get_user() */
|
|
|
|
get_user_u32(p[1], addr + 8);
|
|
|
|
get_user_u32(p[2], addr + 4); /* msw */
|
2007-09-17 12:09:54 +04:00
|
|
|
p[0] = (x & 0x80003fff);
|
2004-02-17 00:43:58 +03:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline
|
2009-05-04 18:19:04 +04:00
|
|
|
void storeSingle(const unsigned int Fn, target_ulong addr)
|
2004-02-17 00:43:58 +03:00
|
|
|
{
|
|
|
|
FPA11 *fpa11 = GET_FPA11();
|
|
|
|
float32 val;
|
|
|
|
register unsigned int *p = (unsigned int*)&val;
|
2007-09-17 12:09:54 +04:00
|
|
|
|
2004-02-17 00:43:58 +03:00
|
|
|
switch (fpa11->fType[Fn])
|
|
|
|
{
|
2007-09-17 01:08:06 +04:00
|
|
|
case typeDouble:
|
2005-03-13 19:55:58 +03:00
|
|
|
val = float64_to_float32(fpa11->fpreg[Fn].fDouble, &fpa11->fp_status);
|
2004-02-17 00:43:58 +03:00
|
|
|
break;
|
|
|
|
|
2007-09-17 01:08:06 +04:00
|
|
|
case typeExtended:
|
2005-03-13 19:55:58 +03:00
|
|
|
val = floatx80_to_float32(fpa11->fpreg[Fn].fExtended, &fpa11->fp_status);
|
2004-02-17 00:43:58 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
default: val = fpa11->fpreg[Fn].fSingle;
|
|
|
|
}
|
2007-09-17 12:09:54 +04:00
|
|
|
|
2007-11-16 13:46:05 +03:00
|
|
|
/* FIXME - handle put_user() failures */
|
|
|
|
put_user_u32(p[0], addr);
|
2007-09-17 12:09:54 +04:00
|
|
|
}
|
2004-02-17 00:43:58 +03:00
|
|
|
|
|
|
|
static inline
|
2009-05-04 18:19:04 +04:00
|
|
|
void storeDouble(const unsigned int Fn, target_ulong addr)
|
2004-02-17 00:43:58 +03:00
|
|
|
{
|
|
|
|
FPA11 *fpa11 = GET_FPA11();
|
|
|
|
float64 val;
|
|
|
|
register unsigned int *p = (unsigned int*)&val;
|
|
|
|
|
|
|
|
switch (fpa11->fType[Fn])
|
|
|
|
{
|
2007-09-17 01:08:06 +04:00
|
|
|
case typeSingle:
|
2005-03-13 19:55:58 +03:00
|
|
|
val = float32_to_float64(fpa11->fpreg[Fn].fSingle, &fpa11->fp_status);
|
2004-02-17 00:43:58 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
case typeExtended:
|
2005-03-13 19:55:58 +03:00
|
|
|
val = floatx80_to_float64(fpa11->fpreg[Fn].fExtended, &fpa11->fp_status);
|
2004-02-17 00:43:58 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
default: val = fpa11->fpreg[Fn].fDouble;
|
|
|
|
}
|
2007-11-16 13:46:05 +03:00
|
|
|
/* FIXME - handle put_user() failures */
|
2009-07-27 18:13:06 +04:00
|
|
|
#ifdef HOST_WORDS_BIGENDIAN
|
2007-11-16 13:46:05 +03:00
|
|
|
put_user_u32(p[0], addr); /* msw */
|
|
|
|
put_user_u32(p[1], addr + 4); /* lsw */
|
2005-02-07 15:43:57 +03:00
|
|
|
#else
|
2007-11-16 13:46:05 +03:00
|
|
|
put_user_u32(p[1], addr); /* msw */
|
|
|
|
put_user_u32(p[0], addr + 4); /* lsw */
|
2005-02-07 15:43:57 +03:00
|
|
|
#endif
|
2007-09-17 12:09:54 +04:00
|
|
|
}
|
2004-02-17 00:43:58 +03:00
|
|
|
|
|
|
|
static inline
|
2009-05-04 18:19:04 +04:00
|
|
|
void storeExtended(const unsigned int Fn, target_ulong addr)
|
2004-02-17 00:43:58 +03:00
|
|
|
{
|
|
|
|
FPA11 *fpa11 = GET_FPA11();
|
|
|
|
floatx80 val;
|
|
|
|
register unsigned int *p = (unsigned int*)&val;
|
2007-09-17 12:09:54 +04:00
|
|
|
|
2004-02-17 00:43:58 +03:00
|
|
|
switch (fpa11->fType[Fn])
|
|
|
|
{
|
2007-09-17 01:08:06 +04:00
|
|
|
case typeSingle:
|
2005-03-13 19:55:58 +03:00
|
|
|
val = float32_to_floatx80(fpa11->fpreg[Fn].fSingle, &fpa11->fp_status);
|
2004-02-17 00:43:58 +03:00
|
|
|
break;
|
|
|
|
|
2007-09-17 01:08:06 +04:00
|
|
|
case typeDouble:
|
2005-03-13 19:55:58 +03:00
|
|
|
val = float64_to_floatx80(fpa11->fpreg[Fn].fDouble, &fpa11->fp_status);
|
2004-02-17 00:43:58 +03:00
|
|
|
break;
|
|
|
|
|
|
|
|
default: val = fpa11->fpreg[Fn].fExtended;
|
|
|
|
}
|
2007-09-17 12:09:54 +04:00
|
|
|
|
2007-11-16 13:46:05 +03:00
|
|
|
/* FIXME - handle put_user() failures */
|
|
|
|
put_user_u32(p[0], addr); /* sign & exp */
|
|
|
|
put_user_u32(p[1], addr + 8);
|
|
|
|
put_user_u32(p[2], addr + 4); /* msw */
|
2007-09-17 12:09:54 +04:00
|
|
|
}
|
2004-02-17 00:43:58 +03:00
|
|
|
|
|
|
|
static inline
|
2009-05-04 18:19:04 +04:00
|
|
|
void storeMultiple(const unsigned int Fn, target_ulong addr)
|
2004-02-17 00:43:58 +03:00
|
|
|
{
|
|
|
|
FPA11 *fpa11 = GET_FPA11();
|
|
|
|
register unsigned int nType, *p;
|
2007-09-17 12:09:54 +04:00
|
|
|
|
2004-02-17 00:43:58 +03:00
|
|
|
p = (unsigned int*)&(fpa11->fpreg[Fn]);
|
|
|
|
nType = fpa11->fType[Fn];
|
2007-09-17 12:09:54 +04:00
|
|
|
|
2004-02-17 00:43:58 +03:00
|
|
|
switch (nType)
|
|
|
|
{
|
|
|
|
case typeSingle:
|
|
|
|
case typeDouble:
|
|
|
|
{
|
2007-11-16 13:46:05 +03:00
|
|
|
put_user_u32(p[0], addr + 8); /* single */
|
|
|
|
put_user_u32(p[1], addr + 4); /* double msw */
|
|
|
|
put_user_u32(nType << 14, addr);
|
2004-02-17 00:43:58 +03:00
|
|
|
}
|
2007-09-17 01:08:06 +04:00
|
|
|
break;
|
2007-09-17 12:09:54 +04:00
|
|
|
|
2004-02-17 00:43:58 +03:00
|
|
|
case typeExtended:
|
|
|
|
{
|
2007-11-16 13:46:05 +03:00
|
|
|
put_user_u32(p[2], addr + 4); /* msw */
|
|
|
|
put_user_u32(p[1], addr + 8);
|
|
|
|
put_user_u32((p[0] & 0x80003fff) | (nType << 14), addr);
|
2004-02-17 00:43:58 +03:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2009-05-04 18:19:04 +04:00
|
|
|
static unsigned int PerformLDF(const unsigned int opcode)
|
2004-02-17 00:43:58 +03:00
|
|
|
{
|
2009-05-04 18:19:04 +04:00
|
|
|
target_ulong pBase, pAddress, pFinal;
|
|
|
|
unsigned int nRc = 1,
|
2004-02-17 00:43:58 +03:00
|
|
|
write_back = WRITE_BACK(opcode);
|
|
|
|
|
|
|
|
//printk("PerformLDF(0x%08x), Fd = 0x%08x\n",opcode,getFd(opcode));
|
|
|
|
|
2009-05-04 18:19:04 +04:00
|
|
|
pBase = readRegister(getRn(opcode));
|
2004-02-17 00:43:58 +03:00
|
|
|
if (REG_PC == getRn(opcode))
|
|
|
|
{
|
2009-05-04 18:19:04 +04:00
|
|
|
pBase += 8;
|
2004-02-17 00:43:58 +03:00
|
|
|
write_back = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
pFinal = pBase;
|
|
|
|
if (BIT_UP_SET(opcode))
|
2009-05-04 18:19:04 +04:00
|
|
|
pFinal += getOffset(opcode) * 4;
|
2004-02-17 00:43:58 +03:00
|
|
|
else
|
2009-05-04 18:19:04 +04:00
|
|
|
pFinal -= getOffset(opcode) * 4;
|
2004-02-17 00:43:58 +03:00
|
|
|
|
|
|
|
if (PREINDEXED(opcode)) pAddress = pFinal; else pAddress = pBase;
|
|
|
|
|
|
|
|
switch (opcode & MASK_TRANSFER_LENGTH)
|
|
|
|
{
|
|
|
|
case TRANSFER_SINGLE : loadSingle(getFd(opcode),pAddress); break;
|
|
|
|
case TRANSFER_DOUBLE : loadDouble(getFd(opcode),pAddress); break;
|
|
|
|
case TRANSFER_EXTENDED: loadExtended(getFd(opcode),pAddress); break;
|
|
|
|
default: nRc = 0;
|
|
|
|
}
|
2007-09-17 12:09:54 +04:00
|
|
|
|
2004-02-17 00:43:58 +03:00
|
|
|
if (write_back) writeRegister(getRn(opcode),(unsigned int)pFinal);
|
|
|
|
return nRc;
|
|
|
|
}
|
|
|
|
|
2009-05-04 18:19:04 +04:00
|
|
|
static unsigned int PerformSTF(const unsigned int opcode)
|
2004-02-17 00:43:58 +03:00
|
|
|
{
|
2009-05-04 18:19:04 +04:00
|
|
|
target_ulong pBase, pAddress, pFinal;
|
|
|
|
unsigned int nRc = 1,
|
2004-02-17 00:43:58 +03:00
|
|
|
write_back = WRITE_BACK(opcode);
|
2007-09-17 12:09:54 +04:00
|
|
|
|
2004-02-17 00:43:58 +03:00
|
|
|
//printk("PerformSTF(0x%08x), Fd = 0x%08x\n",opcode,getFd(opcode));
|
|
|
|
SetRoundingMode(ROUND_TO_NEAREST);
|
2007-09-17 12:09:54 +04:00
|
|
|
|
2009-05-04 18:19:04 +04:00
|
|
|
pBase = readRegister(getRn(opcode));
|
2004-02-17 00:43:58 +03:00
|
|
|
if (REG_PC == getRn(opcode))
|
|
|
|
{
|
2009-05-04 18:19:04 +04:00
|
|
|
pBase += 8;
|
2004-02-17 00:43:58 +03:00
|
|
|
write_back = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
pFinal = pBase;
|
|
|
|
if (BIT_UP_SET(opcode))
|
2009-05-04 18:19:04 +04:00
|
|
|
pFinal += getOffset(opcode) * 4;
|
2004-02-17 00:43:58 +03:00
|
|
|
else
|
2009-05-04 18:19:04 +04:00
|
|
|
pFinal -= getOffset(opcode) * 4;
|
2004-02-17 00:43:58 +03:00
|
|
|
|
|
|
|
if (PREINDEXED(opcode)) pAddress = pFinal; else pAddress = pBase;
|
|
|
|
|
|
|
|
switch (opcode & MASK_TRANSFER_LENGTH)
|
|
|
|
{
|
|
|
|
case TRANSFER_SINGLE : storeSingle(getFd(opcode),pAddress); break;
|
|
|
|
case TRANSFER_DOUBLE : storeDouble(getFd(opcode),pAddress); break;
|
|
|
|
case TRANSFER_EXTENDED: storeExtended(getFd(opcode),pAddress); break;
|
|
|
|
default: nRc = 0;
|
|
|
|
}
|
2007-09-17 12:09:54 +04:00
|
|
|
|
2004-02-17 00:43:58 +03:00
|
|
|
if (write_back) writeRegister(getRn(opcode),(unsigned int)pFinal);
|
|
|
|
return nRc;
|
|
|
|
}
|
|
|
|
|
2009-05-04 18:19:04 +04:00
|
|
|
static unsigned int PerformLFM(const unsigned int opcode)
|
2004-02-17 00:43:58 +03:00
|
|
|
{
|
2009-05-04 18:19:04 +04:00
|
|
|
unsigned int i, Fd,
|
2004-02-17 00:43:58 +03:00
|
|
|
write_back = WRITE_BACK(opcode);
|
2009-05-04 18:19:04 +04:00
|
|
|
target_ulong pBase, pAddress, pFinal;
|
2004-02-17 00:43:58 +03:00
|
|
|
|
2009-05-04 18:19:04 +04:00
|
|
|
pBase = readRegister(getRn(opcode));
|
2004-02-17 00:43:58 +03:00
|
|
|
if (REG_PC == getRn(opcode))
|
|
|
|
{
|
2009-05-04 18:19:04 +04:00
|
|
|
pBase += 8;
|
2004-02-17 00:43:58 +03:00
|
|
|
write_back = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
pFinal = pBase;
|
|
|
|
if (BIT_UP_SET(opcode))
|
2009-05-04 18:19:04 +04:00
|
|
|
pFinal += getOffset(opcode) * 4;
|
2004-02-17 00:43:58 +03:00
|
|
|
else
|
2009-05-04 18:19:04 +04:00
|
|
|
pFinal -= getOffset(opcode) * 4;
|
2004-02-17 00:43:58 +03:00
|
|
|
|
|
|
|
if (PREINDEXED(opcode)) pAddress = pFinal; else pAddress = pBase;
|
|
|
|
|
|
|
|
Fd = getFd(opcode);
|
|
|
|
for (i=getRegisterCount(opcode);i>0;i--)
|
|
|
|
{
|
|
|
|
loadMultiple(Fd,pAddress);
|
2009-05-04 18:19:04 +04:00
|
|
|
pAddress += 12; Fd++;
|
2004-02-17 00:43:58 +03:00
|
|
|
if (Fd == 8) Fd = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (write_back) writeRegister(getRn(opcode),(unsigned int)pFinal);
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2009-05-04 18:19:04 +04:00
|
|
|
static unsigned int PerformSFM(const unsigned int opcode)
|
2004-02-17 00:43:58 +03:00
|
|
|
{
|
2009-05-04 18:19:04 +04:00
|
|
|
unsigned int i, Fd,
|
2004-02-17 00:43:58 +03:00
|
|
|
write_back = WRITE_BACK(opcode);
|
2009-05-04 18:19:04 +04:00
|
|
|
target_ulong pBase, pAddress, pFinal;
|
2007-09-17 12:09:54 +04:00
|
|
|
|
2009-05-04 18:19:04 +04:00
|
|
|
pBase = readRegister(getRn(opcode));
|
2004-02-17 00:43:58 +03:00
|
|
|
if (REG_PC == getRn(opcode))
|
|
|
|
{
|
2009-05-04 18:19:04 +04:00
|
|
|
pBase += 8;
|
2004-02-17 00:43:58 +03:00
|
|
|
write_back = 0;
|
|
|
|
}
|
2007-09-17 12:09:54 +04:00
|
|
|
|
2004-02-17 00:43:58 +03:00
|
|
|
pFinal = pBase;
|
|
|
|
if (BIT_UP_SET(opcode))
|
2009-05-04 18:19:04 +04:00
|
|
|
pFinal += getOffset(opcode) * 4;
|
2004-02-17 00:43:58 +03:00
|
|
|
else
|
2009-05-04 18:19:04 +04:00
|
|
|
pFinal -= getOffset(opcode) * 4;
|
2004-02-17 00:43:58 +03:00
|
|
|
|
|
|
|
if (PREINDEXED(opcode)) pAddress = pFinal; else pAddress = pBase;
|
|
|
|
|
|
|
|
Fd = getFd(opcode);
|
|
|
|
for (i=getRegisterCount(opcode);i>0;i--)
|
|
|
|
{
|
|
|
|
storeMultiple(Fd,pAddress);
|
2009-05-04 18:19:04 +04:00
|
|
|
pAddress += 12; Fd++;
|
2004-02-17 00:43:58 +03:00
|
|
|
if (Fd == 8) Fd = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (write_back) writeRegister(getRn(opcode),(unsigned int)pFinal);
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
#if 1
|
|
|
|
unsigned int EmulateCPDT(const unsigned int opcode)
|
|
|
|
{
|
|
|
|
unsigned int nRc = 0;
|
|
|
|
|
|
|
|
//printk("EmulateCPDT(0x%08x)\n",opcode);
|
2007-09-17 12:09:54 +04:00
|
|
|
|
2004-02-17 00:43:58 +03:00
|
|
|
if (LDF_OP(opcode))
|
|
|
|
{
|
|
|
|
nRc = PerformLDF(opcode);
|
|
|
|
}
|
|
|
|
else if (LFM_OP(opcode))
|
|
|
|
{
|
|
|
|
nRc = PerformLFM(opcode);
|
|
|
|
}
|
|
|
|
else if (STF_OP(opcode))
|
|
|
|
{
|
|
|
|
nRc = PerformSTF(opcode);
|
2007-09-17 01:08:06 +04:00
|
|
|
}
|
2004-02-17 00:43:58 +03:00
|
|
|
else if (SFM_OP(opcode))
|
|
|
|
{
|
|
|
|
nRc = PerformSFM(opcode);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
nRc = 0;
|
|
|
|
}
|
2007-09-17 12:09:54 +04:00
|
|
|
|
2004-02-17 00:43:58 +03:00
|
|
|
return nRc;
|
|
|
|
}
|
|
|
|
#endif
|