reactos/lib/fast486/fpu.c

157 lines
2.8 KiB
C
Raw Normal View History

/*
* Fast486 386/486 CPU Emulation Library
* fpu.c
*
* Copyright (C) 2013 Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
/* INCLUDES *******************************************************************/
#include <windef.h>
// #define NDEBUG
#include <debug.h>
#include <fast486.h>
#include "common.h"
#include "opcodes.h"
#include "fpu.h"
/* PUBLIC FUNCTIONS ***********************************************************/
FAST486_OPCODE_HANDLER(Fast486FpuOpcodeD8)
{
FPU_CHECK();
#ifndef FAST486_NO_FPU
// TODO: NOT IMPLEMENTED
UNIMPLEMENTED;
return FALSE;
#else
/* Do nothing */
return TRUE;
#endif
}
FAST486_OPCODE_HANDLER(Fast486FpuOpcodeD9)
{
FPU_CHECK();
#ifndef FAST486_NO_FPU
// TODO: NOT IMPLEMENTED
UNIMPLEMENTED;
return FALSE;
#else
/* Do nothing */
return TRUE;
#endif
}
FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDA)
{
FPU_CHECK();
#ifndef FAST486_NO_FPU
// TODO: NOT IMPLEMENTED
UNIMPLEMENTED;
return FALSE;
#else
/* Do nothing */
return TRUE;
#endif
}
FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDB)
{
FPU_CHECK();
#ifndef FAST486_NO_FPU
// TODO: NOT IMPLEMENTED
UNIMPLEMENTED;
return FALSE;
#else
/* Do nothing */
return TRUE;
#endif
}
FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDC)
{
FPU_CHECK();
#ifndef FAST486_NO_FPU
// TODO: NOT IMPLEMENTED
UNIMPLEMENTED;
return FALSE;
#else
/* Do nothing */
return TRUE;
#endif
}
FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDD)
{
FPU_CHECK();
#ifndef FAST486_NO_FPU
// TODO: NOT IMPLEMENTED
UNIMPLEMENTED;
return FALSE;
#else
/* Do nothing */
return TRUE;
#endif
}
FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDE)
{
FPU_CHECK();
#ifndef FAST486_NO_FPU
// TODO: NOT IMPLEMENTED
UNIMPLEMENTED;
return FALSE;
#else
/* Do nothing */
return TRUE;
#endif
}
FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDF)
{
FPU_CHECK();
#ifndef FAST486_NO_FPU
// TODO: NOT IMPLEMENTED
UNIMPLEMENTED;
return FALSE;
#else
/* Do nothing */
return TRUE;
#endif
}
/* EOF */